mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-13 02:48:23 +00:00
[client] egl: add ffx_cas post process filter
This commit is contained in:
@@ -99,6 +99,18 @@ void * ringbuffer_getValues(const RingBuffer rb)
|
||||
return rb->values;
|
||||
}
|
||||
|
||||
void * ringBuffer_getLastValue(const RingBuffer rb)
|
||||
{
|
||||
if (rb->count == 0)
|
||||
return NULL;
|
||||
|
||||
int index = rb->start + rb->count - 1;
|
||||
if (index >= rb->length)
|
||||
index -= rb->length;
|
||||
|
||||
return rb->values + index * rb->valueSize;
|
||||
}
|
||||
|
||||
void ringbuffer_setPreOverwriteFn(const RingBuffer rb, RingBufferValueFn fn,
|
||||
void * udata)
|
||||
{
|
||||
|
Reference in New Issue
Block a user