gpu: fix descriptor parameter type to nativeCreateSwapChain
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
0b63ea0ed0
commit
c13097cae6
2 changed files with 3 additions and 3 deletions
|
|
@ -343,7 +343,7 @@ const device_vtable = Device.VTable{
|
|||
}
|
||||
}).createShaderModule,
|
||||
.nativeCreateSwapChain = (struct {
|
||||
pub fn nativeCreateSwapChain(ptr: *anyopaque, surface: ?Surface, descriptor: SwapChain.Descriptor) SwapChain {
|
||||
pub fn nativeCreateSwapChain(ptr: *anyopaque, surface: ?Surface, descriptor: *const SwapChain.Descriptor) SwapChain {
|
||||
const desc = c.WGPUSwapChainDescriptor{
|
||||
.nextInChain = null,
|
||||
.label = if (descriptor.label) |l| @ptrCast([*c]const u8, l) else null,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue