std140 implementation

This commit is contained in:
ZY4N
2025-03-27 19:47:32 +01:00
parent 70893c083b
commit 6f60cc11c8
45 changed files with 789 additions and 234 deletions

View File

@@ -10,14 +10,14 @@ class shader_program_lookup
public:
void add(
const shader_program_handle& shader_program_handle,
std::span<const shader_program_variable> all_attributes,
std::span<const shader_program_variable> all_uniforms
std::span<const shader_uniform> all_attributes,
std::span<const shader_uniform> all_uniforms
);
[[nodiscard]] std::optional<shader_program_handle> find(
shader_program_handle::attribute_support_type attributes,
shader_program_handle::uniform_support_type uniforms,
std::span<const shader_program_variable> all_attributes
std::span<const shader_uniform> all_attributes
) const;
void print();
@@ -27,7 +27,7 @@ private:
[[nodiscard]] static attribute_locations_type attribute_location_flags(
shader_program_handle::attribute_support_type attributes,
std::span<const shader_program_variable> all_attributes
std::span<const shader_uniform> all_attributes
);
struct attribute_entry_type