yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
ab8960fd
16.5.0
1#version 450 core 2 3layout ( binding = 1 ) uniform texture2D tex2D ; 4layout ( binding = 1 ) uniform texture2DMS texMS ; 5layout ( binding = 0 ) uniform textureBuffer buf ; 6 7void testBad () 8{ 9vec4 tex2DFetch = texelFetch ( tex2D , ivec2 ( 0 , 0 ) , 0 ) ; 10vec4 texMSFetch = texelFetch ( texMS , ivec2 ( 0 , 0 ) , 0 ) ; 11 12// Allowed by KHR_vulkan_glsl without the extension. All others should 13// error. 14vec4 bufFetch = texelFetch ( buf , 0 ) ; 15 16vec4 tex2DFetchOffset = texelFetchOffset ( tex2D , ivec2 ( 0 , 0 ) , 0 , ivec2 ( 0 , 0 )) ; 17 18ivec2 tex2DSize = textureSize ( tex2D , 0 ) ; 19ivec2 texMSSize = textureSize ( texMS ) ; 20int bufSize = textureSize ( buf ) ; 21 22int tex2DLevels = textureQueryLevels ( tex2D ) ; 23 24int texMSSamples = textureSamples ( texMS ) ; 25} 26 27#extension GL_EXT_samplerless_texture_functions : enable 28 29void main () 30{ 31// These should all succeed. 32 33vec4 tex2DFetch = texelFetch ( tex2D , ivec2 ( 0 , 0 ) , 0 ) ; 34vec4 texMSFetch = texelFetch ( texMS , ivec2 ( 0 , 0 ) , 0 ) ; 35vec4 bufFetch = texelFetch ( buf , 0 ) ; 36 37vec4 tex2DFetchOffset = texelFetchOffset ( tex2D , ivec2 ( 0 , 0 ) , 0 , ivec2 ( 0 , 0 )) ; 38 39ivec2 tex2DSize = textureSize ( tex2D , 0 ) ; 40ivec2 texMSSize = textureSize ( texMS ) ; 41int bufSize = textureSize ( buf ) ; 42 43int tex2DLevels = textureQueryLevels ( tex2D ) ; 44 45int texMSSamples = textureSamples ( texMS ) ; 46}