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

@@ -0,0 +1,18 @@
#pragma once
#include "opengl/handles/texture_handle.hpp"
namespace zgl
{
struct material_metadata
{
texture_handle ambient_color_texture_handle;
texture_handle diffuse_color_texture_handle;
texture_handle specular_color_texture_handle;
texture_handle shininess_texture_handle;
texture_handle alpha_texture_handle;
texture_handle bump_texture_handle;
};
}

View File

@@ -0,0 +1,17 @@
#pragma once
#include <cinttypes>
#include <array>
namespace zgl
{
template<std::size_t Count>
struct uniform_buffer_alignment_metadata
{
std::array<std::size_t, Count> byte_offsets{};
std::size_t byte_size{};
};
}