gpu: implement Dawn deviceCreateShaderModule
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
c0da16fb79
commit
163efbbad9
1 changed files with 4 additions and 3 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue