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

@@ -7,10 +7,11 @@
namespace zgl
{
struct material_handle
// TODO implement
struct material_handle : resource_handle
{
std::optional<texture_handle> texture{ std::nullopt };
std::optional<surface_properties_handle> surface_properties{ std::nullopt };
std::optional<alpha_handle> alpha{ std::nullopt };
inline void bind() const;
inline static void unbind();
};
}