hlsl.intrinsic.frexp.vert 547 B

1234567891011121314151617181920212223242526272829
  1. float VertexShaderFunctionS(float inF0, float inF1)
  2. {
  3. frexp(inF0, inF1);
  4. return 0.0;
  5. }
  6. float2 VertexShaderFunction2(float2 inF0, float2 inF1)
  7. {
  8. frexp(inF0, inF1);
  9. return float2(1,2);
  10. }
  11. float3 VertexShaderFunction3(float3 inF0, float3 inF1)
  12. {
  13. frexp(inF0, inF1);
  14. return float3(1,2,3);
  15. }
  16. float4 VertexShaderFunction4(float4 inF0, float4 inF1)
  17. {
  18. frexp(inF0, inF1);
  19. return float4(1,2,3,4);
  20. }
  21. // TODO: FXC doesn't accept this with (), but glslang doesn't accept it without.
  22. #define MATFNS() \
  23. frexp(inF0, inF1);