1// [config] 2// expect_result: fail 3// glsl_version: 3.30 4// require_extensions: GL_ARB_bindless_texture 5// [end config] 6 7#version 330 8#extension GL_ARB_bindless_texture: require 9 10// The ARB_bindless_texture spec says: 11// 12// "Replace Section 4.1.7 (Samplers), p. 25" 13// 14// "As function parameters, samplers may be only passed to samplers of 15// matching type." 16 17void f(inout sampler2D p) 18{ 19} 20 21void main() 22{ 23 sampler1D u; 24 f(u); 25} 26