RenderTest: Make UBO Dynamic

This commit is contained in:
Jérôme Leclercq 2020-09-02 17:21:07 +02:00
parent d622a75d73
commit 0a46b83061
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ int main()
Nz::ShaderBindingPtr shaderBinding = renderPipelineLayout->AllocateShaderBinding();
std::unique_ptr<Nz::AbstractBuffer> uniformBuffer = device->InstantiateBuffer(Nz::BufferType_Uniform);
if (!uniformBuffer->Initialize(uniformSize, Nz::BufferUsage_DeviceLocal))
if (!uniformBuffer->Initialize(uniformSize, Nz::BufferUsage_DeviceLocal | Nz::BufferUsage_Dynamic))
{
NazaraError("Failed to create uniform buffer");
return __LINE__;