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 { pub inline fn deviceCreateSampler(device: *gpu.Device, descriptor: ?*const gpu.Sampler.Descriptor) *gpu.Sampler {
_ = device; return @ptrCast(*gpu.Sampler, procs.deviceCreateSampler.?(
_ = descriptor; @ptrCast(c.WGPUDevice, device),
unreachable; @ptrCast(*const c.WGPUSamplerDescriptor, descriptor),
));
} }
pub inline fn deviceCreateShaderModule(device: *gpu.Device, descriptor: *const gpu.ShaderModule.Descriptor) *gpu.ShaderModule { pub inline fn deviceCreateShaderModule(device: *gpu.Device, descriptor: *const gpu.ShaderModule.Descriptor) *gpu.ShaderModule {