diff options
author | Frederico Linhares <fred@linhares.blue> | 2022-09-16 12:03:04 -0300 |
---|---|---|
committer | Frederico Linhares <fred@linhares.blue> | 2022-09-16 12:03:04 -0300 |
commit | 3d6ca447a7104c499e92fc954affdaf4bf011388 (patch) | |
tree | d759fbd39d3d66a2457ea92fc4eeb2c31b2cbe4f /src/vk/graphics_pipeline_3d_layout.hpp | |
parent | 0d0868611389b8dded0c1dfef7a530a4b6e1f148 (diff) |
feat Create View
Diffstat (limited to 'src/vk/graphics_pipeline_3d_layout.hpp')
-rw-r--r-- | src/vk/graphics_pipeline_3d_layout.hpp | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/src/vk/graphics_pipeline_3d_layout.hpp b/src/vk/graphics_pipeline_3d_layout.hpp index 296bdb2..d45a778 100644 --- a/src/vk/graphics_pipeline_3d_layout.hpp +++ b/src/vk/graphics_pipeline_3d_layout.hpp @@ -22,9 +22,32 @@ namespace VK { +struct UBOWorld3D_Vert +{ + glm::vec4 ambient_light_color; +}; + +struct UBOWorld3D_Frag +{ + glm::vec3 directional_light_direction; + glm::vec4 directional_light_color; +}; + +struct UBOView3D +{ + glm::mat4 view; + glm::mat4 proj; +}; + +struct UBOModelInstance +{ + glm::mat4 instances[128]; +}; + struct GraphicsPipeline3DLayout { - VkDescriptorSetLayout descriptor_set_world_view; + VkDescriptorSetLayout descriptor_set_world; + VkDescriptorSetLayout descriptor_set_view; VkDescriptorSetLayout descriptor_set_model_instance; VkPipelineLayout pipeline; VkRenderPass render_pass; |