From c70b7be3656255571a5a613c6c31647b8f5010ef Mon Sep 17 00:00:00 2001 From: James Benton Date: Sun, 9 Oct 2016 20:57:17 +0100 Subject: [PATCH] gx2r: Add uniform block GX2RBuffer functions. --- include/gx2r/buffer.h | 15 +++++++++++++++ rpl/libgx2/exports.h | 4 +++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/include/gx2r/buffer.h b/include/gx2r/buffer.h index 079e0f6..bee7a3d 100644 --- a/include/gx2r/buffer.h +++ b/include/gx2r/buffer.h @@ -60,6 +60,21 @@ void GX2RUnlockBufferEx(GX2RBuffer *buffer, GX2RResourceFlags flags); +void +GX2RSetVertexUniformBlock(GX2RBuffer *buffer, + uint32_t location, + uint32_t offset); + +void +GX2RSetPixelUniformBlock(GX2RBuffer *buffer, + uint32_t location, + uint32_t offset); + +void +GX2RSetGeometryUniformBlock(GX2RBuffer *buffer, + uint32_t location, + uint32_t offset); + #ifdef __cplusplus } #endif diff --git a/rpl/libgx2/exports.h b/rpl/libgx2/exports.h index af82bf9..660b866 100644 --- a/rpl/libgx2/exports.h +++ b/rpl/libgx2/exports.h @@ -210,5 +210,7 @@ EXPORT(GX2RGetBufferAllocationSize); EXPORT(GX2RInvalidateBuffer); EXPORT(GX2RLockBufferEx); EXPORT(GX2RUnlockBufferEx); +EXPORT(GX2RSetVertexUniformBlock); +EXPORT(GX2RSetPixelUniformBlock); +EXPORT(GX2RSetGeometryUniformBlock); -// gx2r/resource.h