Minor improvements to Pipeline and Uniformbuffer

This commit is contained in:
Thraix
2024-10-01 19:53:19 +02:00
parent 9133bce7fc
commit 1ffcc7fc1a
4 changed files with 13 additions and 3 deletions
@@ -72,4 +72,12 @@ namespace Copium
{
Buffer::Update(buffer.data(), Vulkan::GetSwapChain().GetFlightIndex());
}
void UniformBuffer::UpdateStatic()
{
for (int i = 0; i < SwapChain::MAX_FRAMES_IN_FLIGHT; i++)
{
Buffer::Update(buffer.data(), i);
}
}
}
@@ -30,5 +30,6 @@ namespace Copium
void Set(const std::string& str, int data);
void Update();
void UpdateStatic();
};
}