summaryrefslogtreecommitdiff
path: root/src/vk/graphics_pipeline_2d_wired_layout.cpp
diff options
context:
space:
mode:
authorFrederico Linhares <fred@linhares.blue>2023-09-28 15:25:13 -0300
committerFrederico Linhares <fred@linhares.blue>2023-09-28 15:54:55 -0300
commit6899fac50a2992053e6eea627cb83da1d40e3d79 (patch)
tree0dfe0cb3df481582c5c7ad58de77fda080d0d8cf /src/vk/graphics_pipeline_2d_wired_layout.cpp
parent607255a8fd901da7a3d6dcdafe9c0585f8c81521 (diff)
styl Rename ODO structures to UDO
* src/vk/uniform_data_object.hpp: I do not remember why I named these structs ODO. UDO makes more sense as they represents "uniform data objects."
Diffstat (limited to 'src/vk/graphics_pipeline_2d_wired_layout.cpp')
-rw-r--r--src/vk/graphics_pipeline_2d_wired_layout.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vk/graphics_pipeline_2d_wired_layout.cpp b/src/vk/graphics_pipeline_2d_wired_layout.cpp
index 8e06641..3f259e3 100644
--- a/src/vk/graphics_pipeline_2d_wired_layout.cpp
+++ b/src/vk/graphics_pipeline_2d_wired_layout.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright 2022 Frederico de Oliveira Linhares
+ * Copyright 2022-2023 Frederico de Oliveira Linhares
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -74,11 +74,11 @@ load_pipeline(void *obj)
std::array<VkPushConstantRange, 2> push_constants;
push_constants[0].stageFlags = VK_SHADER_STAGE_VERTEX_BIT;
push_constants[0].offset = 0;
- push_constants[0].size = sizeof(VK::ODOVector4D);
+ push_constants[0].size = sizeof(VK::UDOVector4D);
push_constants[1].stageFlags = VK_SHADER_STAGE_FRAGMENT_BIT;
- push_constants[1].offset = sizeof(VK::ODOVector4D);
- push_constants[1].size = sizeof(VK::ODOVector3D);
+ push_constants[1].offset = sizeof(VK::UDOVector4D);
+ push_constants[1].size = sizeof(VK::UDOVector3D);
VkPipelineLayoutCreateInfo pipeline_layout_info{};
pipeline_layout_info.sType = VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO;