summaryrefslogtreecommitdiff
path: root/src/vk/graphics_pipeline.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/vk/graphics_pipeline.hpp')
-rw-r--r--src/vk/graphics_pipeline.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vk/graphics_pipeline.hpp b/src/vk/graphics_pipeline.hpp
index c7cc0a0..dffd6fb 100644
--- a/src/vk/graphics_pipeline.hpp
+++ b/src/vk/graphics_pipeline.hpp
@@ -34,7 +34,7 @@ namespace VK
struct GraphicsPipeline
{
VkDescriptorSetLayout descriptor_set_layout_model_instance;
- VkDescriptorSetLayout descriptor_set_layout_view_projection;
+ VkDescriptorSetLayout descriptor_set_layout_world_view;
VkPipelineLayout pipeline_layout;
// Depth image.
@@ -44,9 +44,10 @@ struct GraphicsPipeline
// FIXME: if this vector get resized, it will cause a segmentation fault!
std::vector<UniformBuffer> ub_view_projection;
+ std::vector<UniformBuffer> ub_directional_light;
VkDescriptorPool descriptor_pool;
- std::vector<VkDescriptorSet> view_projection_descriptor_sets;
+ std::vector<VkDescriptorSet> world_view_descriptor_sets;
VkRenderPass render_pass;
std::vector<VkFramebuffer> swapchain_framebuffers;