SPIRV-Cross/shaders-msl/comp/writable-ssbo.comp

10 строки
205 B
Plaintext

#version 450
layout(set = 0, binding = 0) buffer myBlock {
int a;
float b;
} myStorage;
void main() {
myStorage.a = (myStorage.a + 1) % 256;
myStorage.b = mod((myStorage.b + 0.02), 1.0);
}