gpu: implement Dawn deviceCreateSampler

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-30 17:18:41 -07:00 committed by Stephen Gutekanst
parent b5a2631fdf
commit c0da16fb79

View file

@ -490,9 +490,10 @@ pub const Interface = gpu.Interface(struct {
}
pub inline fn deviceCreateSampler(device: *gpu.Device, descriptor: ?*const gpu.Sampler.Descriptor) *gpu.Sampler {
_ = device;
_ = descriptor;
unreachable;
return @ptrCast(*gpu.Sampler, procs.deviceCreateSampler.?(
@ptrCast(c.WGPUDevice, device),
@ptrCast(*const c.WGPUSamplerDescriptor, descriptor),
));
}
pub inline fn deviceCreateShaderModule(device: *gpu.Device, descriptor: *const gpu.ShaderModule.Descriptor) *gpu.ShaderModule {