blob: fde87c9daa34be8ac5c270b470eb4e5bb32ad07a [file] [log] [blame]
Rex Xu86e49d12017-03-29 17:04:58 +08001
2float PixelShaderFunctionS(float inF0, float inF1)
3{
4 float r000 = frexp(inF0, inF1);
5 return 0.0;
6}
7
8float2 PixelShaderFunction2(float2 inF0, float2 inF1)
9{
10 float2 r000 = frexp(inF0, inF1);
11 return float2(1,2);
12}
13
14float3 PixelShaderFunction3(float3 inF0, float3 inF1)
15{
16 float3 r000 = frexp(inF0, inF1);
17 return float3(1,2,3);
18}
19
20float4 PixelShaderFunction(float4 inF0, float4 inF1)
21{
22 float4 r000 = frexp(inF0, inF1);
23 return float4(1,2,3,4);
24}
25
26// TODO: FXC doesn't accept this with (), but glslang doesn't accept it without.
27#define MATFNS(MT) \
28 MT r000 = frexp(inF0, inF1);
29
30struct PS_OUTPUT { float4 color : SV_Target0; };
31
32PS_OUTPUT main()
33{
34 PS_OUTPUT ps_output;
35 ps_output.color = 1.0;
36 return ps_output;
37};