[client] egl: add ffx_cas post process filter

This commit is contained in:
Geoffrey McRae
2021-08-09 22:42:51 +10:00
parent 9b1d03fcfe
commit 92de467edc
9 changed files with 3499 additions and 12 deletions

View File

@@ -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)
{