std140 implementation
This commit is contained in:
@@ -9,7 +9,7 @@ namespace zgl
|
||||
{
|
||||
|
||||
shader_program_handle::attribute_support_type shader_program_handle::check_attribute_support(
|
||||
const std::span<const shader_program_variable> attributes
|
||||
const std::span<const shader_uniform> attributes
|
||||
) const {
|
||||
auto attribute_candidates = attribute_support_type{};
|
||||
|
||||
@@ -76,7 +76,7 @@ shader_program_handle::attribute_support_type shader_program_handle::check_attri
|
||||
}
|
||||
|
||||
shader_program_handle::uniform_support_type shader_program_handle::check_uniform_support(
|
||||
const std::span<const shader_program_variable> uniforms
|
||||
const std::span<const shader_uniform> uniforms
|
||||
) const {
|
||||
auto uniform_candidates = uniform_support_type{};
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ inline void shader_program_handle::unbind()
|
||||
glUseProgram(0);
|
||||
}
|
||||
|
||||
template<shader_program_variable::info_type VariableInfo, typename T>
|
||||
template<shader_uniform::info_type VariableInfo, typename T>
|
||||
void shader_program_handle::set_uniform(const T& value) const
|
||||
{
|
||||
if constexpr (std::same_as<T, glm::mat4x4>)
|
||||
|
||||
Reference in New Issue
Block a user