-
-
Notifications
You must be signed in to change notification settings - Fork 409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebGPU wrong size for bool #1593
Comments
Is this still a problem on the latest master builds? Use the experimental nuget feed to get the latest release This is likely coming about due to the use of stdbool in webgpu.h |
I have tried the experimental nuget feed now it did not fix the problem. I don't know how silks binding generation tools works but the "generator.json" file has "$include.dxTypeMap": "build/dx_typemap.json" inside the webgpu typeMaps. |
looks like movement is happening to remove the |
merged upstream, we just need to wait for wgpu-native to update now |
@Beyley are we go for 2.18 here? upstream has been closed. |
wgpu-native has had no movement for updating, so our options for WebGPU right now are: |
Summary
silk uses bool32 for booleans in WebGPU i have done some tests and using bool32 leads to wrong field offset for RenderBundleEncoderDescriptor and maybe other struct.
Steps to reproduce
Her are two program that you can compare to see the problem
C
result:
sizeof WGPURenderBundleEncoderDescriptor 48
nextInChain 0
label 8
colorFormatsCount 16
colorFormats 24
depthStencilFormat 32
sampleCount 36
depthReadOnly 40
stencilReadOnly 41
C#
result:
RenderBundleEncoderDescriptor sizeOf: 48
NextInChain :0
Label :8
ColorFormatsCount :16
ColorFormats :24
DepthStencilFormat :32
SampleCount :36
DepthReadOnly :40
StencilReadOnly :44
RenderBundleEncoderDescriptorBool8 sizeOf: 48
NextInChain :0
Label :8
ColorFormatsCount :16
ColorFormats :24
DepthStencilFormat :32
SampleCount :36
DepthReadOnly :40
StencilReadOnly :41
The text was updated successfully, but these errors were encountered: