gpu: implement Dawn deviceReference
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
babe2ed373
commit
981ebae5c0
1 changed files with 2 additions and 4 deletions
|
|
@ -601,13 +601,11 @@ pub const Interface = gpu.Interface(struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub inline fn deviceReference(device: *gpu.Device) void {
|
pub inline fn deviceReference(device: *gpu.Device) void {
|
||||||
_ = device;
|
procs.deviceReference.?(@ptrCast(c.WGPUDevice, device));
|
||||||
unreachable;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub inline fn deviceRelease(device: *gpu.Device) void {
|
pub inline fn deviceRelease(device: *gpu.Device) void {
|
||||||
_ = device;
|
procs.deviceRelease.?(@ptrCast(c.WGPUDevice, device));
|
||||||
unreachable;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub inline fn externalTextureDestroy(external_texture: *gpu.ExternalTexture) void {
|
pub inline fn externalTextureDestroy(external_texture: *gpu.ExternalTexture) void {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue