Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/GPU_uniform_buffer.h
| Show All 33 Lines | |||||
| #define GPU_uniformbuf_create(size) GPU_uniformbuf_create_ex(size, NULL, __func__); | #define GPU_uniformbuf_create(size) GPU_uniformbuf_create_ex(size, NULL, __func__); | ||||
| void GPU_uniformbuf_free(GPUUniformBuf *ubo); | void GPU_uniformbuf_free(GPUUniformBuf *ubo); | ||||
| void GPU_uniformbuf_update(GPUUniformBuf *ubo, const void *data); | void GPU_uniformbuf_update(GPUUniformBuf *ubo, const void *data); | ||||
| void GPU_uniformbuf_bind(GPUUniformBuf *ubo, int slot); | void GPU_uniformbuf_bind(GPUUniformBuf *ubo, int slot); | ||||
| void GPU_uniformbuf_bind_as_ssbo(GPUUniformBuf *ubo, int slot); | |||||
| void GPU_uniformbuf_unbind(GPUUniformBuf *ubo); | void GPU_uniformbuf_unbind(GPUUniformBuf *ubo); | ||||
| void GPU_uniformbuf_unbind_all(void); | void GPU_uniformbuf_unbind_all(void); | ||||
| #define GPU_UBO_BLOCK_NAME "node_tree" | #define GPU_UBO_BLOCK_NAME "node_tree" | ||||
| #define GPU_ATTRIBUTE_UBO_BLOCK_NAME "unf_attrs" | #define GPU_ATTRIBUTE_UBO_BLOCK_NAME "unf_attrs" | ||||
| #define GPU_LAYER_ATTRIBUTE_UBO_BLOCK_NAME "drw_layer_attrs" | #define GPU_LAYER_ATTRIBUTE_UBO_BLOCK_NAME "drw_layer_attrs" | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||