gpu: implement Dawn externalTextureReference

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-30 15:21:11 -07:00 committed by Stephen Gutekanst
parent 981ebae5c0
commit 62e839520c

View file

@ -620,13 +620,11 @@ pub const Interface = gpu.Interface(struct {
}
pub inline fn externalTextureReference(external_texture: *gpu.ExternalTexture) void {
_ = external_texture;
unreachable;
procs.externalTextureReference.?(@ptrCast(c.WGPUExternalTexture, external_texture));
}
pub inline fn externalTextureRelease(external_texture: *gpu.ExternalTexture) void {
_ = external_texture;
unreachable;
procs.externalTextureRelease.?(@ptrCast(c.WGPUExternalTexture, external_texture));
}
pub inline fn instanceCreateSurface(instance: *gpu.Instance, descriptor: *const gpu.Surface.Descriptor) *gpu.Surface {