rt64/examples/shaders/RenderInterfaceTestPostPS.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

11 lines
276 B
HLSL

//
// RT64
//
Texture2D<float4> gTexture : register(t1);
SamplerState gSampler : register(s2);
float4 PSMain(in float4 pos : SV_Position, in float2 uv : TEXCOORD) : SV_TARGET {
float4 result = float4(gTexture.SampleLevel(gSampler, uv, 0).rgb, 1.0f);
return result;
}