gpu: implement Dawn deviceCreateTexture
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
556c917a08
commit
5cc96a4b8e
1 changed files with 4 additions and 3 deletions
|
|
@ -512,9 +512,10 @@ pub const Interface = gpu.Interface(struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub inline fn deviceCreateTexture(device: *gpu.Device, descriptor: *const gpu.Texture.Descriptor) *gpu.Texture {
|
pub inline fn deviceCreateTexture(device: *gpu.Device, descriptor: *const gpu.Texture.Descriptor) *gpu.Texture {
|
||||||
_ = device;
|
return @ptrCast(*gpu.Texture, procs.deviceCreateTexture.?(
|
||||||
_ = descriptor;
|
@ptrCast(c.WGPUDevice, device),
|
||||||
unreachable;
|
@ptrCast(*const c.WGPUTextureDescriptor, descriptor),
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
pub inline fn deviceDestroy(device: *gpu.Device) void {
|
pub inline fn deviceDestroy(device: *gpu.Device) void {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue