Validate.hlsl 803 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. // Wait for a fix from Trunk #error not supported yet
  2. /*
  3. #define REQUIRE_DEFINED(X_) \
  4. #ifndef X_ \
  5. #error X_ must be defined (in) the platform include \
  6. #endif X_ \
  7. REQUIRE_DEFINED(UNITY_UV_STARTS_AT_TOP)
  8. REQUIRE_DEFINED(UNITY_REVERSED_Z)
  9. REQUIRE_DEFINED(UNITY_NEAR_CLIP_VALUE)
  10. REQUIRE_DEFINED(FACE)
  11. REQUIRE_DEFINED(CBUFFER_START)
  12. REQUIRE_DEFINED(CBUFFER_END)
  13. REQUIRE_DEFINED(INITIALIZE_OUTPUT)
  14. */
  15. // Default values for things that have not been defined in the platform headers
  16. // default flow control attributes
  17. #ifndef UNITY_BRANCH
  18. # define UNITY_BRANCH
  19. #endif
  20. #ifndef UNITY_FLATTEN
  21. # define UNITY_FLATTEN
  22. #endif
  23. #ifndef UNITY_UNROLL
  24. # define UNITY_UNROLL
  25. #endif
  26. #ifndef UNITY_UNROLLX
  27. # define UNITY_UNROLLX(_x)
  28. #endif
  29. #ifndef UNITY_LOOP
  30. # define UNITY_LOOP
  31. #endif