summaryrefslogtreecommitdiff
path: root/src/blucat/descriptor_set_layout.cpp
diff options
context:
space:
mode:
authorFrederico Linhares <fred@linhares.blue>2024-05-16 14:22:35 -0300
committerFrederico Linhares <fred@linhares.blue>2024-05-16 14:22:35 -0300
commitd5a2b6bca9f9cc57dcca19962d5ba9b83d26da3e (patch)
treefa4decb441b0cc5cd189183166a324079f37c45a /src/blucat/descriptor_set_layout.cpp
parent43821b0cffc5aa419c0218992f06f8962ae54a13 (diff)
refa Move BluCan initialization to BluCat folderHEADmaster
Diffstat (limited to 'src/blucat/descriptor_set_layout.cpp')
-rw-r--r--src/blucat/descriptor_set_layout.cpp18
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{