rt64/examples/shaders/RenderInterfaceTestPostVS.hlsl
David Chavez 21cfeae50c
Standalone Graphics Test (#4)
* Add graphics test [WIP]

* Ignore IDEA files

* Explicit cast from size_t to uint64_t

* Build statically when buiding examples

* Remove unused file

* Runs on ARM64 Linux

* Update .gitignore
2024-05-14 21:35:45 -03:00

9 lines
263 B
HLSL

//
// RT64
//
void VSMain(in uint id : SV_VertexID, out float4 pos : SV_Position, out float2 uv : TEXCOORD0) {
uv.x = (id == 2) ? 2.0f : 0.0f;
uv.y = (id == 1) ? 2.0f : 0.0f;
pos = float4(uv * float2(2.0f, -2.0f) + float2(-1.0f, 1.0f), 1.0f, 1.0f);
}