diff options
Diffstat (limited to 'src/vk/graphics_pipeline_2d_wired.cpp')
-rw-r--r-- | src/vk/graphics_pipeline_2d_wired.cpp | 10 |
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); |