HLSL: add precise keyword
This commit is contained in:
parent
fcc0aa3b64
commit
36e87d0871
4 changed files with 119 additions and 0 deletions
14
Test/hlsl.precise.frag
Normal file
14
Test/hlsl.precise.frag
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
|
||||
struct PS_OUTPUT { precise float4 color : SV_Target0; };
|
||||
|
||||
precise float precisefloat;
|
||||
|
||||
void MyFunction(in precise float myfloat, out precise float3 myfloat3) { }
|
||||
|
||||
PS_OUTPUT main()
|
||||
{
|
||||
PS_OUTPUT ps_output;
|
||||
ps_output.color = 1.0;
|
||||
return ps_output;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue