mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 19:22:30 +00:00
chore(build): use SDL3
This commit is contained in:
parent
9d04a35d87
commit
b3c0734a9e
3286 changed files with 866354 additions and 554996 deletions
31
vendor/sdl-3.2.10/test/testgpu/cube.hlsl
vendored
Normal file
31
vendor/sdl-3.2.10/test/testgpu/cube.hlsl
vendored
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue