First Commit

This commit is contained in:
2025-11-18 14:18:26 -07:00
parent 33eb6e3707
commit 27277ec342
6106 changed files with 3571167 additions and 0 deletions

31
3rdparty/sdl/SDL/test/testgpu/cube.hlsl vendored Normal file
View File

@@ -0,0 +1,31 @@
#define REG(reg, space) register(reg, space)
cbuffer UBO : REG(b0, space1)
{
float4x4 ModelViewProj;
};
struct VSInput
{
float3 Position : TEXCOORD0;
float3 Color : TEXCOORD1;
};
struct VSOutput
{
float4 Color : TEXCOORD0;
float4 Position : SV_Position;
};
VSOutput VSMain(VSInput input)
{
VSOutput output;
output.Color = float4(input.Color, 1.0f);
output.Position = mul(ModelViewProj, float4(input.Position, 1.0f));
return output;
}
float4 PSMain(VSOutput input) : SV_Target0
{
return input.Color;
}