|
2 | 2 | #define UNITY_UV_STARTS_AT_TOP 1 |
3 | 3 | #define UNITY_REVERSED_Z 0 |
4 | 4 | #define UNITY_GATHER_SUPPORTED 0 |
5 | | -#define UNITY_3D_TEXTURES_SUPPORTED 0 |
6 | 5 | #define UNITY_CAN_READ_POSITION_IN_FRAGMENT_PROGRAM 0 |
7 | 6 |
|
8 | 7 | #define TEXTURE2D_SAMPLER2D(textureName, samplerName) sampler2D textureName |
9 | | -#define TEXTURE3D_SAMPLER3D(textureName, samplerName) sampler3D textureName |
10 | 8 |
|
11 | 9 | #define TEXTURE2D(textureName) sampler2D textureName |
12 | 10 | #define SAMPLER2D(samplerName) |
13 | 11 |
|
14 | | -#define TEXTURE3D(textureName) sampler3D textureName |
15 | | -#define SAMPLER3D(samplerName) |
16 | | - |
17 | 12 | #define TEXTURE2D_ARGS(textureName, samplerName) sampler2D textureName |
18 | 13 | #define TEXTURE2D_PARAM(textureName, samplerName) textureName |
19 | 14 |
|
20 | | -#define TEXTURE3D_ARGS(textureName, samplerName) sampler3D textureName |
21 | | -#define TEXTURE3D_PARAM(textureName, samplerName) textureName |
22 | | - |
23 | 15 | #define SAMPLE_TEXTURE2D(textureName, samplerName, coord2) tex2D(textureName, coord2) |
24 | 16 | #define SAMPLE_TEXTURE2D_LOD(textureName, samplerName, coord2, lod) tex2Dlod(textureName, float4(coord2, 0.0, lod)) |
25 | 17 |
|
26 | | -#define SAMPLE_TEXTURE3D(textureName, samplerName, coord3) tex3D(textureName, coord3) |
27 | | - |
28 | 18 | #define LOAD_TEXTURE2D(textureName, texelSize, icoord2) tex2D(textureName, icoord2 / texelSize) |
29 | 19 | #define LOAD_TEXTURE2D_LOD(textureName, texelSize, icoord2) tex2Dlod(textureName, float4(icoord2 / texelSize, 0.0, lod)) |
30 | 20 |
|
31 | 21 | #define SAMPLE_DEPTH_TEXTURE(textureName, samplerName, coord2) tex2D<float>(textureName, coord2).r |
32 | 22 | #define SAMPLE_DEPTH_TEXTURE_LOD(textureName, samplerName, coord2, lod) tex2Dlod<float>(textureName, float4(coord2, 0.0, lod)).r |
33 | 23 |
|
| 24 | +// 3D textures are not supported on Vita, use 2D to avoid compile errors. |
| 25 | +#define TEXTURE3D_SAMPLER3D(textureName, samplerName) sampler2D textureName |
| 26 | +#define TEXTURE3D(textureName) sampler2D textureName |
| 27 | +#define SAMPLER3D(samplerName) |
| 28 | +#define TEXTURE3D_ARGS(textureName, samplerName) sampler2D textureName |
| 29 | +#define TEXTURE3D_PARAM(textureName, samplerName) textureName |
| 30 | +#define SAMPLE_TEXTURE3D(textureName, samplerName, coord3) tex2D(textureName, coord3) |
| 31 | + |
34 | 32 | #define UNITY_BRANCH |
35 | 33 | #define UNITY_FLATTEN |
36 | 34 | #define UNITY_UNROLL |
|
0 commit comments