| 1 |
#version 450 |
| 2 |
|
| 3 |
layout(binding = 0) uniform usampler1D uSampler1DUint; |
| 4 |
layout(binding = 0) uniform isampler1D uSampler1DInt; |
| 5 |
layout(binding = 0) uniform sampler1D uSampler1DFloat; |
| 6 |
layout(binding = 1) uniform sampler2D uSampler2D; |
| 7 |
layout(binding = 2) uniform isampler2DArray uSampler2DArray; |
| 8 |
layout(binding = 3) uniform sampler3D uSampler3D; |
| 9 |
layout(binding = 4) uniform samplerCube uSamplerCube; |
| 10 |
layout(binding = 5) uniform usamplerCubeArray uSamplerCubeArray; |
| 11 |
layout(binding = 6) uniform samplerBuffer uSamplerBuffer; |
| 12 |
layout(binding = 7) uniform isampler2DMS uSamplerMS; |
| 13 |
layout(binding = 8) uniform sampler2DMSArray uSamplerMSArray; |
| 14 |
|
| 15 |
void main() |
| 16 |
{ |
| 17 |
int a = textureSize(uSampler1DUint, 0); |
| 18 |
a = textureSize(uSampler1DInt, 0); |
| 19 |
a = textureSize(uSampler1DFloat, 0); |
| 20 |
|
| 21 |
ivec3 c = textureSize(uSampler2DArray, 0); |
| 22 |
ivec3 d = textureSize(uSampler3D, 0); |
| 23 |
ivec2 e = textureSize(uSamplerCube, 0); |
| 24 |
ivec3 f = textureSize(uSamplerCubeArray, 0); |
| 25 |
int g = textureSize(uSamplerBuffer); |
| 26 |
ivec2 h = textureSize(uSamplerMS); |
| 27 |
ivec3 i = textureSize(uSamplerMSArray); |
| 28 |
|
| 29 |
int l1 = textureQueryLevels(uSampler2D); |
| 30 |
int l2 = textureQueryLevels(uSampler2DArray); |
| 31 |
int l3 = textureQueryLevels(uSampler3D); |
| 32 |
int l4 = textureQueryLevels(uSamplerCube); |
| 33 |
int s0 = textureSamples(uSamplerMS); |
| 34 |
int s1 = textureSamples(uSamplerMSArray); |
| 35 |
} |