mirror of
https://github.com/rt64/rt64.git
synced 2024-12-29 12:31:50 +00:00
21cfeae50c
* 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
9 lines
263 B
HLSL
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);
|
|
} |