grovesNL / glow

GL on Whatever: a set of bindings to run GL anywhere and avoid target-specific code
Apache License 2.0
1.17k stars 130 forks source link

Missing glGetProgramResourceiv #236

Closed kvark closed 1 year ago

kvark commented 1 year ago

The program resource API seems to be incomplete. I see that get_shader_storage_block_index calls glGetProgramResourceIndex with SHADER_STORAGE_BLOCK. But there is no analogue to get_active_uniform_block_parameter_i32 with UNIFORM_BLOCK_BINDING for storage blocks. I think glow should just expose get_program_resource_i32 or similar in a generic way. It's a part of GL ES 3.1.