Added read-only const access to buffers
Former-commit-id: 555f079e277869bc8f32732f24dfee704e17f324
This commit is contained in:
@@ -46,10 +46,11 @@ class NAZARA_API NzBuffer : public NzResource, NzNonCopyable
|
||||
bool IsValid() const;
|
||||
|
||||
void* Map(nzBufferAccess access, unsigned int offset = 0, unsigned int length = 0);
|
||||
const void* Map(nzBufferAccess access, unsigned int offset = 0, unsigned int length = 0) const;
|
||||
|
||||
bool SetStorage(nzBufferStorage storage);
|
||||
|
||||
bool Unmap();
|
||||
bool Unmap() const;
|
||||
|
||||
static bool IsSupported(nzBufferStorage storage);
|
||||
static void SetBufferFunction(nzBufferStorage storage, BufferFunction func);
|
||||
|
||||
Reference in New Issue
Block a user