Debian Codegraph @

third_party/spirv-cross/shaders-hlsl/frag/image-query.frag

raw
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
13 void main()
14 {
15 int a = textureSize(uSampler1D, 0);
16 ivec2 b = textureSize(uSampler2D, 0);
17 ivec3 c = textureSize(uSampler2DArray, 0);
18 ivec3 d = textureSize(uSampler3D, 0);
19 ivec2 e = textureSize(uSamplerCube, 0);
20 ivec3 f = textureSize(uSamplerCubeArray, 0);
21 int g = textureSize(uSamplerBuffer);
22 ivec2 h = textureSize(uSamplerMS);
23 ivec3 i = textureSize(uSamplerMSArray);
24
25 int l0 = textureQueryLevels(uSampler1D);
26 int l1 = textureQueryLevels(uSampler2D);
27 int l2 = textureQueryLevels(uSampler2DArray);
28 int l3 = textureQueryLevels(uSampler3D);
29 int l4 = textureQueryLevels(uSamplerCube);
30 int l5 = textureQueryLevels(uSamplerCubeArray);
31 int s0 = textureSamples(uSamplerMS);
32 int s1 = textureSamples(uSamplerMSArray);
33 }