gpu: implement Dawn deviceCreateShaderModule

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

View file

@ -497,9 +497,10 @@ pub const Interface = gpu.Interface(struct {
} }
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 {
_ = device; return @ptrCast(*gpu.ShaderModule, procs.deviceCreateShaderModule.?(
_ = descriptor; @ptrCast(c.WGPUDevice, device),
unreachable; @ptrCast(*const c.WGPUShaderModuleDescriptor, descriptor),
));
} }
pub inline fn deviceCreateSwapChain(device: *gpu.Device, surface: ?*gpu.Surface, descriptor: *const gpu.SwapChain.Descriptor) *gpu.SwapChain { pub inline fn deviceCreateSwapChain(device: *gpu.Device, surface: ?*gpu.Surface, descriptor: *const gpu.SwapChain.Descriptor) *gpu.SwapChain {