diff options
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; |