Skip to content

Commit 1ecb970

Browse files
committed
WGPUOptionalBool for bool field members
1 parent 637c5ef commit 1ecb970

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WGPUCore.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ function createEntry(::Type{GPUDepthStencilState}; args...)
679679
a = CStruct(WGPUDepthStencilState)
680680
if length(args) > 0 && args != C_NULL
681681
a.format = args[:format]
682-
a.depthWriteEnabled = args[:depthWriteEnabled]
682+
a.depthWriteEnabled = WGPUOptionalBool(args[:depthWriteEnabled])
683683
a.depthCompare = args[:depthCompare]
684684
a.stencilReadMask = get(args, :stencilReadMask, 0xffffffff)
685685
a.stencilWriteMask = get(args, :stencilWriteMask, 0xffffffff)

0 commit comments

Comments
 (0)