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

[naga] Translate bools in the workgroup address space to u32s #6570

Open
teoxoy opened this issue Nov 20, 2024 · 0 comments
Open

[naga] Translate bools in the workgroup address space to u32s #6570

teoxoy opened this issue Nov 20, 2024 · 0 comments
Labels
area: naga back-end Outputs of naga shader conversion naga Shader Translator

Comments

@teoxoy
Copy link
Member

teoxoy commented Nov 20, 2024

Many GPUs cannot implement single-byte writes without introducing potential data races.
By specifying that a bool value occupies 4 bytes with 4 byte alignment,
implementations can support adjacent boolean values in memory without introducing data races.

from gpuweb/gpuweb#4974

@teoxoy teoxoy added area: naga back-end Outputs of naga shader conversion naga Shader Translator labels Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: naga back-end Outputs of naga shader conversion naga Shader Translator
Projects
Status: Todo
Development

No branches or pull requests

1 participant