gpu: implement Dawn deviceCreateTexture

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-30 17:20:32 -07:00 committed by Stephen Gutekanst
parent 556c917a08
commit 5cc96a4b8e

View file

@ -512,9 +512,10 @@ pub const Interface = gpu.Interface(struct {
}
pub inline fn deviceCreateTexture(device: *gpu.Device, descriptor: *const gpu.Texture.Descriptor) *gpu.Texture {
_ = device;
_ = descriptor;
unreachable;
return @ptrCast(*gpu.Texture, procs.deviceCreateTexture.?(
@ptrCast(c.WGPUDevice, device),
@ptrCast(*const c.WGPUTextureDescriptor, descriptor),
));
}
pub inline fn deviceDestroy(device: *gpu.Device) void {