Blender
V4.3
source
blender
gpu
GPU_uniform_buffer.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2005 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
15
16
#pragma once
17
18
struct
ListBase
;
19
21
struct
GPUUniformBuf;
22
23
GPUUniformBuf *
GPU_uniformbuf_create_ex
(
size_t
size
,
const
void
*
data
,
const
char
*name);
30
GPUUniformBuf *
GPU_uniformbuf_create_from_list
(
ListBase
*
inputs
,
const
char
*name);
31
32
#define GPU_uniformbuf_create(size) GPU_uniformbuf_create_ex(size, nullptr, __func__);
33
34
void
GPU_uniformbuf_free
(GPUUniformBuf *ubo);
35
36
void
GPU_uniformbuf_update
(GPUUniformBuf *ubo,
const
void
*
data
);
37
38
void
GPU_uniformbuf_bind
(GPUUniformBuf *ubo,
int
slot);
39
void
GPU_uniformbuf_bind_as_ssbo
(GPUUniformBuf *ubo,
int
slot);
40
void
GPU_uniformbuf_unbind
(GPUUniformBuf *ubo);
45
void
GPU_uniformbuf_debug_unbind_all
();
46
47
void
GPU_uniformbuf_clear_to_zero
(GPUUniformBuf *ubo);
48
49
#define GPU_UBO_BLOCK_NAME "node_tree"
50
#define GPU_ATTRIBUTE_UBO_BLOCK_NAME "unf_attrs"
51
#define GPU_LAYER_ATTRIBUTE_UBO_BLOCK_NAME "drw_layer_attrs"
52
#define GPU_NODE_TREE_UBO_SLOT 0
GPU_uniformbuf_create_ex
GPUUniformBuf * GPU_uniformbuf_create_ex(size_t size, const void *data, const char *name)
Definition
gpu_uniform_buffer.cc:191
GPU_uniformbuf_unbind
void GPU_uniformbuf_unbind(GPUUniformBuf *ubo)
Definition
gpu_uniform_buffer.cc:239
GPU_uniformbuf_update
void GPU_uniformbuf_update(GPUUniformBuf *ubo, const void *data)
Definition
gpu_uniform_buffer.cc:224
GPU_uniformbuf_free
void GPU_uniformbuf_free(GPUUniformBuf *ubo)
Definition
gpu_uniform_buffer.cc:219
GPU_uniformbuf_create_from_list
GPUUniformBuf * GPU_uniformbuf_create_from_list(ListBase *inputs, const char *name)
Definition
gpu_uniform_buffer.cc:201
GPU_uniformbuf_clear_to_zero
void GPU_uniformbuf_clear_to_zero(GPUUniformBuf *ubo)
Definition
gpu_uniform_buffer.cc:249
GPU_uniformbuf_debug_unbind_all
void GPU_uniformbuf_debug_unbind_all()
Definition
gpu_uniform_buffer.cc:244
GPU_uniformbuf_bind_as_ssbo
void GPU_uniformbuf_bind_as_ssbo(GPUUniformBuf *ubo, int slot)
Definition
gpu_uniform_buffer.cc:234
GPU_uniformbuf_bind
void GPU_uniformbuf_bind(GPUUniformBuf *ubo, int slot)
Definition
gpu_uniform_buffer.cc:229
data
data
Definition
bmesh_operator_api_inline.hh:159
size
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
Definition
btDbvt.cpp:52
inputs
static blender::bke::bNodeSocketTemplate inputs[]
Definition
node_texture_at.cc:11
ListBase
Definition
DNA_listBase.h:32
Generated on Sat Oct 4 2025 05:32:23 for Blender by
doxygen
1.14.0