yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
46a4d98ba
master
1// precise-keyword.slang.hlsl 2//TEST_IGNORE_FILE: 3 4float4 main ( float2 v_0 : V ) : SV_TARGET 5{ 6float _S1 = v_0 . x ; 7 precisefloat z_0 ; 8 9if ( _S1 > 0.00000000000000000000 ) 10{ 11z_0 = _S1 * v_0 . y + _S1 ; 12} 13else 14{ 15float _S2 = v_0 . y ; 16z_0 = _S2 * _S1 + _S2 ; 17} 18 19return ( float4 ) z_0 ; 20}