I am trying to switch my rendering pipeline to be using the GL_NV_command_list extension.
The current issue I am running into is, that GL_NV_command_list forbids using shaders with shader storage buffers.
The specification sais, that an alternative exists:
- How can I use textures, images, shader storage or atomic counter buffers in combination with state objects?
Shader storage […] are currently not directly exposed, however NV_gpu_shader5 allows storing pointers to such buffers inside uniform buffers
However, in the specification of gpu_shader5 I couldn’t find any informations how to do this http://developer.download.nvidia.com/opengl/specs/GL_NV_gpu_shader5.txt
The nearest thing I could find was the NV_shader_buffer_load extension which doesn’t work with uniform buffer blocks and so is useless for command_lists.
Is there any way I can get the functionality of shader storage buffers (arrays with unknown length at compile time) to work with command-lists?