Public
Authored by Rhys Perry

dEQP-VK.descriptor_indexing.uniform_texel_buffer

#version 450
#extension GL_EXT_nonuniform_qualifier : require	
#extension GL_EXT_texture_buffer : require	
layout(set=0,binding=3) uniform samplerBuffer data[];
layout(location = 0) out vec4     FragColor;	
layout(location = 0) in flat vec4 position;	
layout(location = 1) in flat vec2 normalpos;	
layout(location = 2) in flat int  vIndex;		
layout(location = 3) in flat int  rIndex;		
layout(location = 4) in flat int  gIndex;		
layout(location = 5) in flat int  bIndex;		
layout(location = 6) in flat int  aIndex;		
void main()									
{												
  FragColor = texelFetch(data[nonuniformEXT(rIndex)], 0);
}					
Edited
spirv.txt 2.94 KB
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment