Skip to content
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

Fix shader binding bug #356

Merged
merged 1 commit into from
Jul 30, 2024
Merged

Fix shader binding bug #356

merged 1 commit into from
Jul 30, 2024

Conversation

djeedai
Copy link
Owner

@djeedai djeedai commented Jul 30, 2024

Fix a bug where the render shader attempts to bind the Spawner storage buffer as read-only, but that struct is defined as containing an atomic variable, which according to the WGSL specification requires write access. Add a pipeline define SPAWNER_READONLY to redefine that struct field as non-atomic, to allow read-only binding.

Fix a bug where the render shader attempts to bind the `Spawner` storage
buffer as read-only, but that struct is defined as containing an atomic
variable, which according to the WGSL specification requires write
access. Add a pipeline define `SPAWNER_READONLY` to redefine that struct
field as non-atomic, to allow read-only binding.
@djeedai djeedai added C - bug Something isn't working A - shaders Compute and render shaders labels Jul 30, 2024
@djeedai djeedai merged commit 05016ec into main Jul 30, 2024
13 checks passed
@djeedai djeedai deleted the u/spawner-rw branch July 30, 2024 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A - shaders Compute and render shaders C - bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant