| 1 |
#version 450 |
| 2 |
|
| 3 |
layout(binding = 0) uniform sampler1D uSampler1D; |
| 4 |
layout(binding = 1) uniform sampler2D uSampler2D; |
| 5 |
layout(binding = 2) uniform sampler2DArray uSampler2DArray; |
| 6 |
layout(binding = 3) uniform sampler3D uSampler3D; |
| 7 |
layout(binding = 4) uniform samplerCube uSamplerCube; |
| 8 |
layout(binding = 5) uniform samplerCubeArray uSamplerCubeArray; |
| 9 |
layout(binding = 6) uniform samplerBuffer uSamplerBuffer; |
| 10 |
layout(binding = 7) uniform sampler2DMS uSamplerMS; |
| 11 |
layout(binding = 8) uniform sampler2DMSArray uSamplerMSArray; |
| 12 |
layout(binding = 9, r32f) uniform readonly writeonly image1D uImage1D; |
| 13 |
layout(binding = 10, r32f) uniform readonly writeonly image2D uImage2D; |
| 14 |
layout(binding = 11, r32f) uniform readonly writeonly image2DArray uImage2DArray; |
| 15 |
layout(binding = 12, r32f) uniform readonly writeonly image3D uImage3D; |
| 16 |
layout(binding = 13, r32f) uniform readonly writeonly imageCube uImageCube; |
| 17 |
layout(binding = 14, r32f) uniform readonly writeonly imageCubeArray uImageCubeArray; |
| 18 |
layout(binding = 15, r32f) uniform readonly writeonly imageBuffer uImageBuffer; |
| 19 |
layout(binding = 16, r32f) uniform readonly writeonly image2DMS uImageMS; |
| 20 |
layout(binding = 17, r32f) uniform readonly writeonly image2DMSArray uImageMSArray; |
| 21 |
|
| 22 |
void main() |
| 23 |
{ |
| 24 |
int a = textureSize(uSampler1D, 0); |
| 25 |
ivec2 b = textureSize(uSampler2D, 0); |
| 26 |
ivec3 c = textureSize(uSampler2DArray, 0); |
| 27 |
ivec3 d = textureSize(uSampler3D, 0); |
| 28 |
ivec2 e = textureSize(uSamplerCube, 0); |
| 29 |
ivec3 f = textureSize(uSamplerCubeArray, 0); |
| 30 |
int g = textureSize(uSamplerBuffer); |
| 31 |
ivec2 h = textureSize(uSamplerMS); |
| 32 |
ivec3 i = textureSize(uSamplerMSArray); |
| 33 |
int l0 = textureQueryLevels(uSampler1D); |
| 34 |
int l1 = textureQueryLevels(uSampler2D); |
| 35 |
int l2 = textureQueryLevels(uSampler2DArray); |
| 36 |
int l3 = textureQueryLevels(uSampler3D); |
| 37 |
int l4 = textureQueryLevels(uSamplerCube); |
| 38 |
int l5 = textureQueryLevels(uSamplerCubeArray); |
| 39 |
a = imageSize(uImage1D); |
| 40 |
b = imageSize(uImage2D); |
| 41 |
c = imageSize(uImage2DArray); |
| 42 |
d = imageSize(uImage3D); |
| 43 |
e = imageSize(uImageCube); |
| 44 |
f = imageSize(uImageCubeArray); |
| 45 |
g = imageSize(uImageBuffer); |
| 46 |
h = imageSize(uImageMS); |
| 47 |
i = imageSize(uImageMSArray); |
| 48 |
int s0 = textureSamples(uSamplerMS); |
| 49 |
int s1 = textureSamples(uSamplerMSArray); |
| 50 |
int s2 = imageSamples(uImageMS); |
| 51 |
int s3 = imageSamples(uImageMSArray); |
| 52 |
} |
| 53 |
|