gl: Finalize host labels implementation

This commit is contained in:
kd-11 2024-10-22 03:41:36 +03:00 committed by kd-11
parent 0db06964dc
commit 681debd8f6
14 changed files with 166 additions and 65 deletions

View file

@ -242,14 +242,14 @@ namespace gl
}
}
void scratch_ring_buffer::create(buffer::target target_, u64 size)
void scratch_ring_buffer::create(buffer::target target_, u64 size, u32 usage_flags)
{
if (m_storage)
{
remove();
}
m_storage.create(target_, size, nullptr, gl::buffer::memory_type::local, GL_STATIC_COPY);
m_storage.create(target_, size, nullptr, gl::buffer::memory_type::local, usage_flags);
}
void scratch_ring_buffer::remove()