-
Notifications
You must be signed in to change notification settings - Fork 7
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 buffers of MemoryType::Upload can't be created #104
Comments
Example WebGPU error message:
|
Thus far, when I've run into this it has turned out that Switching to |
aleino-nv
added a commit
to aleino-nv/slang
that referenced
this issue
Nov 13, 2024
csyonghe
pushed a commit
to shader-slang/slang
that referenced
this issue
Nov 13, 2024
* Update Slang-RHI to get WGPU backend fixes * render-test: Use device local memory type for vertex buffers This helps to avoid shader-slang/slang-rhi#104 * Fix bug in WGSL emitter layout code. There was a "kinds" vs. "kind flags" mismatch, and also getBindingOffsetForKinds was not being used. This patch enables a bunch of tests for WGPU. This helps to address issue #4943. * format code --------- Co-authored-by: slangbot <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is a WebGPU limitation that mappable buffers can't have any other usages. (The spec mentions this clearly.)
Currently in Slang-RHI, if a buffer with
MemoryType::Upload
is created then this constraint will be violated and buffer creation just fails.The text was updated successfully, but these errors were encountered: