mirror of
https://gitea.windcorp.ru/Wind-Corporation/Progressia.git
synced 2025-04-21 19:30:46 +03:00
TMP / Fixed vulkan_render_pass.cpp
This commit is contained in:
parent
7c5f0406d0
commit
6345edd9c7
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
namespace progressia::desktop {
|
namespace progressia::desktop {
|
||||||
|
|
||||||
RenderPass::RenderPass(Vulkan &vulkan) : vulkan(vulkan) {
|
RenderPass::RenderPass(Vulkan &vulkan) : vk(), vulkan(vulkan) {
|
||||||
|
|
||||||
std::vector<VkAttachmentDescription> attachmentDescriptions;
|
std::vector<VkAttachmentDescription> attachmentDescriptions;
|
||||||
std::vector<VkAttachmentReference> attachmentReferences;
|
std::vector<VkAttachmentReference> attachmentReferences;
|
||||||
@ -14,8 +14,8 @@ RenderPass::RenderPass(Vulkan &vulkan) : vulkan(vulkan) {
|
|||||||
|
|
||||||
for (std::size_t i = 0; i < attachments.size(); i++) {
|
for (std::size_t i = 0; i < attachments.size(); i++) {
|
||||||
const auto &attachment = attachments[i];
|
const auto &attachment = attachments[i];
|
||||||
VkAttachmentDescription *desc;
|
VkAttachmentDescription *desc = nullptr;
|
||||||
VkAttachmentReference *ref;
|
VkAttachmentReference *ref = nullptr;
|
||||||
|
|
||||||
attachmentDescriptions.push_back({});
|
attachmentDescriptions.push_back({});
|
||||||
desc = &attachmentDescriptions.back();
|
desc = &attachmentDescriptions.back();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user