Squashed 'external/SDL/' content from commit f317581c91

git-subtree-dir: external/SDL
git-subtree-split: f317581c91961ee628446886dd4df87e9c16ac79
This commit is contained in:
SimoneN64
2024-09-04 22:32:48 +02:00
commit 8821e99ab5
1913 changed files with 947421 additions and 0 deletions

35
test/testgpu/cube.hlsl Normal file
View File

@@ -0,0 +1,35 @@
#if D3D12
#define REG(reg, space) register(reg, space)
#else
#define REG(reg, space) register(reg)
#endif
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;
}