diff options
Diffstat (limited to 'src/blucat/descriptor_set_layout.cpp')
-rw-r--r-- | src/blucat/descriptor_set_layout.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/blucat/descriptor_set_layout.cpp b/src/blucat/descriptor_set_layout.cpp index 0fc5208..7d32346 100644 --- a/src/blucat/descriptor_set_layout.cpp +++ b/src/blucat/descriptor_set_layout.cpp @@ -18,7 +18,7 @@ #include <array> -#include "../core.hpp" +#include "core.hpp" namespace { @@ -49,7 +49,7 @@ load_world(void *obj) layout_info.pBindings = set_layouts.data(); if(vkCreateDescriptorSetLayout( - cg_core.vk_device_with_swapchain->device, &layout_info, nullptr, + BluCat::core.vk_device_with_swapchain->device, &layout_info, nullptr, &self->world) != VK_SUCCESS) throw CommandError{ "Failed to create Vulkan descriptor set layout for world view."}; @@ -61,7 +61,7 @@ unload_world(void *obj) auto self = static_cast<BluCat::DescriptorSetLayout*>(obj); vkDestroyDescriptorSetLayout( - cg_core.vk_device_with_swapchain->device, self->world, nullptr); + BluCat::core.vk_device_with_swapchain->device, self->world, nullptr); } void @@ -85,7 +85,7 @@ load_view(void *obj) layout_info.pBindings = layout_bindings.data(); if(vkCreateDescriptorSetLayout( - cg_core.vk_device_with_swapchain->device, &layout_info, nullptr, + BluCat::core.vk_device_with_swapchain->device, &layout_info, nullptr, &self->view) != VK_SUCCESS) throw CommandError{ "Failed to create Vulkan descriptor set layout for view."}; @@ -97,7 +97,7 @@ unload_view(void *obj) auto self = static_cast<BluCat::DescriptorSetLayout*>(obj); vkDestroyDescriptorSetLayout( - cg_core.vk_device_with_swapchain->device, self->view, nullptr); + BluCat::core.vk_device_with_swapchain->device, self->view, nullptr); } void @@ -122,7 +122,7 @@ load_texture(void *obj) layout_info.pBindings = layout_bindings.data(); if(vkCreateDescriptorSetLayout( - cg_core.vk_device_with_swapchain->device, &layout_info, nullptr, + BluCat::core.vk_device_with_swapchain->device, &layout_info, nullptr, &self->texture) != VK_SUCCESS) throw CommandError{ "Failed to create Vulkan descriptor set layout for textures."}; @@ -134,7 +134,7 @@ unload_texture(void *obj) auto self = static_cast<BluCat::DescriptorSetLayout*>(obj); vkDestroyDescriptorSetLayout( - cg_core.vk_device_with_swapchain->device, self->texture, nullptr); + BluCat::core.vk_device_with_swapchain->device, self->texture, nullptr); } void @@ -157,7 +157,7 @@ load_model(void *obj) layout_info.pBindings = layout_bindings.data(); if(vkCreateDescriptorSetLayout( - cg_core.vk_device_with_swapchain->device, &layout_info, nullptr, + BluCat::core.vk_device_with_swapchain->device, &layout_info, nullptr, &self->model) != VK_SUCCESS) throw CommandError{ "Failed to create Vulkan descriptor set layout for model instance."}; @@ -169,7 +169,7 @@ unload_model(void *obj) auto self = static_cast<BluCat::DescriptorSetLayout*>(obj); vkDestroyDescriptorSetLayout( - cg_core.vk_device_with_swapchain->device, self->model, nullptr); + BluCat::core.vk_device_with_swapchain->device, self->model, nullptr); } const CommandChain loader{ |