std140 implementation
This commit is contained in:
18
include/opengl/metadata/material_metadata.hpp
Normal file
18
include/opengl/metadata/material_metadata.hpp
Normal 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;
|
||||
};
|
||||
|
||||
}
|
||||
@@ -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{};
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user