Files
SDL3_fork/test/testgpu/overlay.vert.hlsl
Colin Sames f4255e15bb
Some checks failed
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
add SDL3 repository to game engine
2026-04-03 16:14:58 +02:00

26 lines
499 B
HLSL

#include "overlay.hlsli"
static const uint verts[6] = {0, 1, 2, 0, 2, 3};
static const float2 uvs[4] = {
{0.0f, 0.0f},
{1.0f, 0.0f},
{1.0f, 1.0f},
{0.0f, 1.0f}
};
static const float2 pos[4] = {
{-1.0f, 1.0f},
{1.0f, 1.0f},
{1.0f, -1.0f},
{-1.0f, -1.0f}
};
VSOutput main(uint id : SV_VertexID)
{
VSOutput output;
uint vert = verts[id];
output.uv = uvs[vert];
output.pos = float4(pos[vert], 0.0f, 1.0f);
return output;
}