gpu: implement Dawn deviceCreateExternalTexture

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-30 17:14:30 -07:00 committed by Stephen Gutekanst
parent b5880aca8c
commit c8e9ade16c

View file

@ -447,9 +447,10 @@ pub const Interface = gpu.Interface(struct {
}
pub inline fn deviceCreateExternalTexture(device: *gpu.Device, external_texture_descriptor: *const gpu.ExternalTexture.Descriptor) *gpu.ExternalTexture {
_ = device;
_ = external_texture_descriptor;
unreachable;
return @ptrCast(*gpu.ExternalTexture, procs.deviceCreateExternalTexture.?(
@ptrCast(c.WGPUDevice, device),
@ptrCast(*const c.WGPUExternalTextureDescriptor, external_texture_descriptor),
));
}
pub inline fn deviceCreatePipelineLayout(device: *gpu.Device, pipeline_layout_descriptor: *const gpu.PipelineLayout.Descriptor) *gpu.PipelineLayout {