UnityTypes.hlsl 696 B

123456789101112131415161718192021
  1. #ifndef UNIVERSAL_UNITY_TYPES_HLSL
  2. #define UNIVERSAL_UNITY_TYPES_HLSL
  3. // Match UnityEngine.TextureWrapMode
  4. #define URP_TEXTURE_WRAP_MODE_REPEAT 0
  5. #define URP_TEXTURE_WRAP_MODE_CLAMP 1
  6. #define URP_TEXTURE_WRAP_MODE_MIRROR 2
  7. #define URP_TEXTURE_WRAP_MODE_MIRROR_ONCE 3
  8. // Additional NULL case for shaders
  9. #define URP_TEXTURE_WRAP_MODE_NONE -1
  10. // Match UnityEngine.LightType
  11. #define URP_LIGHT_TYPE_SPOT 0
  12. #define URP_LIGHT_TYPE_DIRECTIONAL 1
  13. #define URP_LIGHT_TYPE_POINT 2
  14. // Area and Rectangle are aliases
  15. #define URP_LIGHT_TYPE_AREA 3
  16. #define URP_LIGHT_TYPE_RECTANGLE 3
  17. #define URP_LIGHT_TYPE_DISC 4
  18. #endif //UNIVERSAL_UNITY_TYPES_HLSL