3 layout(binding = 1) uniform texture2D tex2D;
4 layout(binding = 1) uniform texture2DMS texMS;
5 layout(binding = 0) uniform textureBuffer buf;
9 vec4 tex2DFetch = texelFetch(tex2D, ivec2(0, 0), 0);
10 vec4 texMSFetch = texelFetch(texMS, ivec2(0, 0), 0);
12 // Allowed by KHR_vulkan_glsl without the extension. All others should
14 vec4 bufFetch = texelFetch(buf, 0);
16 vec4 tex2DFetchOffset = texelFetchOffset(tex2D, ivec2(0, 0), 0, ivec2(0, 0));
18 ivec2 tex2DSize = textureSize(tex2D, 0);
19 ivec2 texMSSize = textureSize(texMS);
20 int bufSize = textureSize(buf);
22 int tex2DLevels = textureQueryLevels(tex2D);
24 int texMSSamples = textureSamples(texMS);
27 #extension GL_EXT_samplerless_texture_functions : enable
31 // These should all succeed.
33 vec4 tex2DFetch = texelFetch(tex2D, ivec2(0, 0), 0);
34 vec4 texMSFetch = texelFetch(texMS, ivec2(0, 0), 0);
35 vec4 bufFetch = texelFetch(buf, 0);
37 vec4 tex2DFetchOffset = texelFetchOffset(tex2D, ivec2(0, 0), 0, ivec2(0, 0));
39 ivec2 tex2DSize = textureSize(tex2D, 0);
40 ivec2 texMSSize = textureSize(texMS);
41 int bufSize = textureSize(buf);
43 int tex2DLevels = textureQueryLevels(tex2D);
45 int texMSSamples = textureSamples(texMS);