Add support for Uniform Buffer to Utility/Renderer

This commit is contained in:
Lynix
2018-06-06 20:18:42 +02:00
parent 056bd0efdd
commit e4eae425b2
12 changed files with 259 additions and 19 deletions

View File

@@ -106,6 +106,7 @@ namespace Nz
void IndexBuffer::Reset(bool largeIndices, BufferRef buffer, UInt32 offset, UInt32 size)
{
NazaraAssert(buffer && buffer->IsValid(), "Invalid buffer");
NazaraAssert(buffer->GetType() == BufferType_Index, "Buffer must be an index buffer");
NazaraAssert(size > 0, "Invalid size");
NazaraAssert(offset + size > buffer->GetSize(), "Virtual buffer exceed buffer bounds");