Blender  V3.3
GPU_uniform_buffer.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2005 Blender Foundation. All rights reserved. */
3 
15 #pragma once
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 struct ListBase;
22 
24 typedef struct GPUUniformBuf GPUUniformBuf;
25 
26 GPUUniformBuf *GPU_uniformbuf_create_ex(size_t size, const void *data, const char *name);
34 
35 #define GPU_uniformbuf_create(size) GPU_uniformbuf_create_ex(size, NULL, __func__);
36 
38 
39 void GPU_uniformbuf_update(GPUUniformBuf *ubo, const void *data);
40 
41 void GPU_uniformbuf_bind(GPUUniformBuf *ubo, int slot);
43 void GPU_uniformbuf_unbind_all(void);
44 
45 #define GPU_UBO_BLOCK_NAME "node_tree"
46 #define GPU_ATTRIBUTE_UBO_BLOCK_NAME "unf_attrs"
47 
48 #ifdef __cplusplus
49 }
50 #endif
void GPU_uniformbuf_unbind_all(void)
struct GPUUniformBuf GPUUniformBuf
void GPU_uniformbuf_unbind(GPUUniformBuf *ubo)
GPUUniformBuf * GPU_uniformbuf_create_ex(size_t size, const void *data, const char *name)
GPUUniformBuf * GPU_uniformbuf_create_from_list(struct ListBase *inputs, const char *name)
void GPU_uniformbuf_update(GPUUniformBuf *ubo, const void *data)
void GPU_uniformbuf_free(GPUUniformBuf *ubo)
void GPU_uniformbuf_bind(GPUUniformBuf *ubo, int slot)
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
Definition: btDbvt.cpp:52
static bNodeSocketTemplate inputs[]