Fifo: const correctness

PushFifoAuxBuffer only memcpys data using ptr as the source pointer, so
it can be a pointer to const data because of that.
This commit is contained in:
Lioncash
2017-03-26 20:38:19 -04:00
parent 76cece8157
commit 62db55dee2
3 changed files with 8 additions and 7 deletions

View File

@ -33,7 +33,7 @@ enum class SyncGPUReason
// In deterministic GPU thread mode this waits for the GPU to be done with pending work.
void SyncGPU(SyncGPUReason reason, bool may_move_read_ptr = true);
void PushFifoAuxBuffer(void* ptr, size_t size);
void PushFifoAuxBuffer(const void* ptr, size_t size);
void* PopFifoAuxBuffer(size_t size);
void FlushGpu();