Rework API graphique Vulkan - EnTT pour ECS + Chargement modèle 3D assimp + SDL3 pour events input et fenetre + mesh texture camera transform ok + attention tous les assets nouveaus ne sont pas commités et il y a du code test en dur dans scene addentity + restructuration globale
This commit is contained in:
18
lib/All/SPIRV-Reflect/tests/variable_access/atomics_1.slang
Normal file
18
lib/All/SPIRV-Reflect/tests/variable_access/atomics_1.slang
Normal file
@@ -0,0 +1,18 @@
|
||||
struct SSBOData {
|
||||
Atomic<int> a;
|
||||
Atomic<int> b; // UNUSED
|
||||
Atomic<int> c;
|
||||
Atomic<int> d; // UNUSED
|
||||
Atomic<int> e; // UNUSED
|
||||
Atomic<int> f;
|
||||
};
|
||||
|
||||
[[vk::binding(0, 0)]]
|
||||
RWStructuredBuffer<SSBOData> ssbo;
|
||||
|
||||
[shader("compute")]
|
||||
void main() {
|
||||
uint x = ssbo[0].a.load();
|
||||
ssbo[0].c.exchange(0);
|
||||
ssbo[0].f.store(0);
|
||||
}
|
||||
Reference in New Issue
Block a user