D3D9.hlsl 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // ALso used for Direct3D 11 "feature level 9.x" target for Windows Store and Windows Phone
  2. #define UNITY_UV_STARTS_AT_TOP 1
  3. #define UNITY_REVERSED_Z 0
  4. #define UNITY_GATHER_SUPPORTED 0
  5. #define UNITY_CAN_READ_POSITION_IN_FRAGMENT_PROGRAM 1
  6. #define TEXTURE2D_SAMPLER2D(textureName, samplerName) sampler2D textureName
  7. #define TEXTURE3D_SAMPLER3D(textureName, samplerName) sampler3D textureName
  8. #define TEXTURE2D(textureName) sampler2D textureName
  9. #define SAMPLER2D(samplerName)
  10. #define TEXTURE3D(textureName) sampler3D textureName
  11. #define SAMPLER3D(samplerName)
  12. #define TEXTURE2D_ARGS(textureName, samplerName) sampler2D textureName
  13. #define TEXTURE2D_PARAM(textureName, samplerName) textureName
  14. #define TEXTURE3D_ARGS(textureName, samplerName) sampler3D textureName
  15. #define TEXTURE3D_PARAM(textureName, samplerName) textureName
  16. #define SAMPLE_TEXTURE2D(textureName, samplerName, coord2) tex2D(textureName, coord2)
  17. #define SAMPLE_TEXTURE2D_LOD(textureName, samplerName, coord2, lod) tex2Dlod(textureName, float4(coord2, 0.0, lod))
  18. #define SAMPLE_TEXTURE3D(textureName, samplerName, coord3) tex3D(textureName, coord3)
  19. #define LOAD_TEXTURE2D(textureName, texelSize, icoord2) tex2D(textureName, icoord2 / texelSize)
  20. #define LOAD_TEXTURE2D_LOD(textureName, texelSize, icoord2) tex2Dlod(textureName, float4(icoord2 / texelSize, 0.0, lod))
  21. #define SAMPLE_DEPTH_TEXTURE(textureName, samplerName, coord2) SAMPLE_TEXTURE2D(textureName, samplerName, coord2).r
  22. #define SAMPLE_DEPTH_TEXTURE_LOD(textureName, samplerName, coord2, lod) SAMPLE_TEXTURE2D_LOD(textureName, samplerName, coord2, lod).r
  23. #define UNITY_BRANCH
  24. #define UNITY_FLATTEN
  25. #define UNITY_UNROLL
  26. #define UNITY_LOOP
  27. #define UNITY_FASTOPT
  28. #define CBUFFER_START(name)
  29. #define CBUFFER_END
  30. #define FXAA_HLSL_3 1
  31. #define SMAA_HLSL_3 1