1// [config] 2// expect_result: fail 3// glsl_version: 3.30 4// require_extensions: GL_ARB_bindless_texture 5// check_link: true 6// [end config] 7 8#version 330 9#extension GL_ARB_bindless_texture: require 10 11// The ARB_bindless_texture spec says: 12// 13// "If both bindless_sampler and bound_sampler, or bindless_image and 14// bound_image, are declared at global scope in any compilation unit, a link- 15// time error will be generated. In the absence of these qualifiers, sampler 16// and image uniforms are considered "bound". Additionally, if 17// GL_ARB_bindless_texture is not enabled, these uniforms are considered 18// "bound"." 19 20layout (bindless_sampler) uniform; 21layout (bound_sampler) uniform; 22 23void main() 24{ 25} 26