Open cameni opened 1 year ago
With t.frag as
void fn(out samplerBuffer bufs[4]) {}
glslangValidator.exe t.frag gives:
t.frag WARNING: 0:2: '#extension' : extension not supported: GL_ARB_bindless_texture ERROR: 0:3: 'samplerBuffer' : samplers and atomic_uints cannot be output parameters ERROR: 0:3: '' : compilation terminated ERROR: 2 compilation errors. No code generated.
So, unfortunately, it appears that glslang does not currently support this extension.
Was this fixed in https://github.com/KhronosGroup/glslang/pull/3066?
@arcady-lunarg Can you please confirm?
Running glslangValidator on the sample code still produces the same error. This is somewhat surprising, given that it looks like #3066 added code that seems like it should have allowed it to work.
What is the current status of this?
This has not been fixed yet.
This has not been fixed yet.
Thank you for the response. We definitely will make immediate use of this if it becomes available.
The following example glsl code
Will produce ERROR: 'samplerBuffer' : samplers and atomic_uints cannot be output parameters
from here: https://github.com/KhronosGroup/glslang/blob/980ac50813fb567b6af6b89282eae850b328c967/glslang/MachineIndependent/ParseHelper.cpp#L4172
However, specs for ARB_bindless_texture says that
I assume this means ARB_bindless_textures extension is not supported yet? In their recent drivers AMD started using the reference GLSL parser and hence this issue appeared.