rt64/examples/shaders/RenderInterfaceTestSpecPS.hlsl
David Chavez 61aa08f517
Add Metal Support (#9)
Co-authored-by: Isaac Marovitz <isaacryu@icloud.com>
Co-authored-by: tanmaysachan <tnmysachan@gmail.com>
Co-authored-by: Dario <dariosamo@gmail.com>
2025-03-11 06:15:21 +01:00

7 lines
211 B
HLSL

[[vk::constant_id(0)]] const uint useRed = 0;
float4 PSMain() : SV_TARGET {
return useRed ? float4(1.0, 0.0, 0.0, 1.0) // Red if true
: float4(0.0, 1.0, 0.0, 1.0); // Green if false
}