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:
33
lib/All/SPIRV-Reflect/tests/hlsl/structuredbuffer.hlsl
Normal file
33
lib/All/SPIRV-Reflect/tests/hlsl/structuredbuffer.hlsl
Normal file
@@ -0,0 +1,33 @@
|
||||
|
||||
struct SepNormal {
|
||||
float x;
|
||||
float y;
|
||||
float z;
|
||||
};
|
||||
|
||||
struct Rgb {
|
||||
float r[5];
|
||||
float g[5];
|
||||
float b[5];
|
||||
};
|
||||
|
||||
struct Uv {
|
||||
float u;
|
||||
float v;
|
||||
};
|
||||
|
||||
struct Data {
|
||||
float3 Position;
|
||||
SepNormal Normal;
|
||||
Rgb Colors[3];
|
||||
Uv TexCoords;
|
||||
float Scales[3];
|
||||
uint Id;
|
||||
};
|
||||
|
||||
StructuredBuffer<Data> MyData : register(t0);
|
||||
|
||||
float4 main() : SV_Target
|
||||
{
|
||||
return float4(MyData[0].Position, 1);
|
||||
}
|
||||
Reference in New Issue
Block a user