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:
22
lib/All/SPIRV-Reflect/tests/hlsl/counter_buffers.hlsl
Normal file
22
lib/All/SPIRV-Reflect/tests/hlsl/counter_buffers.hlsl
Normal file
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
Build with DXC using -fspv-reflect to enable counter buffers
|
||||
|
||||
dxc -spirv -fspv-reflect -T ps_5_0 -Fo counter_buffers.spv counter_buffers.hlsl
|
||||
|
||||
*/
|
||||
|
||||
struct Data {
|
||||
float4 f4;
|
||||
int i;
|
||||
};
|
||||
|
||||
ConsumeStructuredBuffer<Data> MyBufferIn : register(u3, space2);
|
||||
AppendStructuredBuffer<Data> MyBufferOut : register(u4, space2);
|
||||
|
||||
float4 main(float4 PosCS : SV_Position) : SV_TARGET0
|
||||
{
|
||||
Data val = MyBufferIn.Consume();
|
||||
MyBufferOut.Append(val);
|
||||
|
||||
return val.f4;
|
||||
}
|
||||
Reference in New Issue
Block a user