-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[glsl-in] Atomics support #4372
Copy link
Copy link
Open
Labels
area: naga front-endTranslation to Naga IRTranslation to Naga IRhelp requiredWe need community help to make this happen.We need community help to make this happen.lang: GLSLOpenGL Shading LanguageOpenGL Shading LanguagenagaShader TranslatorShader Translatortype: enhancementNew feature or requestNew feature or request
Description
Naga's GLSL frontend does not currently handle atomic operations. For example, this shader:
#version 460 core
layout(std430, binding = 0) buffer Buffer {
uint x;
} buf;
void main() {
atomicAdd(buf.x, 1);
}Produces this error:
error: Unknown function 'atomicAdd'
┌─ shader.comp:8:5
│
8 │ atomicAdd(buf.x, 1);
│ ^^^^^^^^^^^^^^^^^^^
(I couldn't find an existing tracking issue for this, though gfx-rs/naga#1154 and gfx-rs/naga#929 are related.)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area: naga front-endTranslation to Naga IRTranslation to Naga IRhelp requiredWe need community help to make this happen.We need community help to make this happen.lang: GLSLOpenGL Shading LanguageOpenGL Shading LanguagenagaShader TranslatorShader Translatortype: enhancementNew feature or requestNew feature or request