GPUShaderCreateInfo: Remove push_constant indexing
This is too much impractical and offers no real benefit.
This commit is contained in:
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user