summaryrefslogtreecommitdiff
path: root/src/vk/graphics_pipeline_2d_wired.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.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.cpp')
-rw-r--r--src/vk/graphics_pipeline_2d_wired.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/vk/graphics_pipeline_2d_wired.cpp b/src/vk/graphics_pipeline_2d_wired.cpp
index 3247b78..51431b4 100644
--- a/src/vk/graphics_pipeline_2d_wired.cpp
+++ b/src/vk/graphics_pipeline_2d_wired.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.
@@ -332,16 +332,16 @@ GraphicsPipeline2DWired::draw(
{
auto &rect{view->rectangles_to_draw[current_frame][i]};
- ODOVector4D position{rect.position};
- ODOVector3D color{rect.color};
+ UDOVector4D position{rect.position};
+ UDOVector3D color{rect.color};
vkCmdPushConstants(
draw_command_buffer,
cg_core.vk_graphics_pipeline_2d_wired_layout->pipeline,
- VK_SHADER_STAGE_VERTEX_BIT, 0, sizeof(ODOVector4D), &position);
+ VK_SHADER_STAGE_VERTEX_BIT, 0, sizeof(UDOVector4D), &position);
vkCmdPushConstants(
draw_command_buffer,
cg_core.vk_graphics_pipeline_2d_wired_layout->pipeline,
- VK_SHADER_STAGE_FRAGMENT_BIT, sizeof(ODOVector4D), sizeof(ODOVector3D),
+ VK_SHADER_STAGE_FRAGMENT_BIT, sizeof(UDOVector4D), sizeof(UDOVector3D),
&color);
vkCmdDrawIndexed(
draw_command_buffer, Rectangle::VertexCount, 1, 0, 0, 0);