CUniformBuffer: uint -> uint32

This commit is contained in:
Lioncash 2020-06-18 12:42:34 -04:00
parent db7614be95
commit 82d47e82e9
1 changed files with 5 additions and 5 deletions

View File

@ -7,7 +7,7 @@
class CUniformBuffer
{
GLuint mUniformBuffer;
uint mBufferSize;
uint32 mBufferSize;
public:
@ -17,7 +17,7 @@ public:
SetBufferSize(0);
}
explicit CUniformBuffer(uint Size)
explicit CUniformBuffer(uint32 Size)
{
glGenBuffers(1, &mUniformBuffer);
SetBufferSize(Size);
@ -52,20 +52,20 @@ public:
Unbind();
}
void BufferRange(const void *pkData, uint Offset, uint Size)
void BufferRange(const void *pkData, uint32 Offset, uint32 Size)
{
Bind();
glBufferSubData(GL_UNIFORM_BUFFER, Offset, Size, pkData);
Unbind();
}
void SetBufferSize(uint Size)
void SetBufferSize(uint32 Size)
{
mBufferSize = Size;
InitializeBuffer();
}
uint GetBufferSize() const
uint32 GetBufferSize() const
{
return mBufferSize;
}