42#define GPU_uniformbuf_create(size) GPU_uniformbuf_create_ex(size, nullptr, __func__);
59#define GPU_UBO_BLOCK_NAME "node_tree"
60#define GPU_ATTRIBUTE_UBO_BLOCK_NAME "unf_attrs"
61#define GPU_LAYER_ATTRIBUTE_UBO_BLOCK_NAME "drw_layer_attrs"
64#define GPU_UBO_FREE_SAFE(ubo) \
66 if (ubo != nullptr) { \
67 GPU_uniformbuf_free(ubo); \
These structs are the foundation for all linked lists in the library system.
void GPU_uniformbuf_free(gpu::UniformBuf *ubo)
static constexpr int GPU_NODE_TREE_UBO_SLOT
BMesh const char void * data
void GPU_uniformbuf_bind_as_ssbo(gpu::UniformBuf *ubo, int slot)
void GPU_uniformbuf_bind(gpu::UniformBuf *ubo, int slot)
gpu::UniformBuf * GPU_uniformbuf_create_ex(size_t size, const void *data, const char *name)
void GPU_uniformbuf_update(gpu::UniformBuf *ubo, const void *data)
gpu::UniformBuf * GPU_uniformbuf_create_from_list(ListBaseT< LinkData > *inputs, const char *name)
void GPU_uniformbuf_clear_to_zero(gpu::UniformBuf *ubo)
void GPU_uniformbuf_inputs_sort(ListBaseT< LinkData > *inputs)
void GPU_uniformbuf_debug_unbind_all()
void GPU_uniformbuf_unbind(gpu::UniformBuf *ubo)