GPUShaderCreateInfo: Remove push_constant indexing

This is too much impractical and offers no real benefit.
This commit is contained in:
2022-01-27 08:48:37 +01:00
parent a7f7b0b77e
commit 5abab0a41a
41 changed files with 123 additions and 138 deletions

View File

@@ -437,10 +437,7 @@ GLShaderInterface::GLShaderInterface(GLuint program, const shader::ShaderCreateI
}
for (const ShaderCreateInfo::PushConst &uni : info.push_constants_) {
copy_input_name(input, uni.name, name_buffer_, name_buffer_offset);
/* Until we make use of explicit uniform location. */
if (true || !GLContext::explicit_location_support) {
input->location = glGetUniformLocation(program, name_buffer_ + input->name_offset);
}
input->location = glGetUniformLocation(program, name_buffer_ + input->name_offset);
input->binding = -1;
input++;
}