Minor improvements to Pipeline and Uniformbuffer
This commit is contained in:
@@ -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();
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user