Blender
V3.3
source
blender
gpu
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);
33
GPUUniformBuf
*
GPU_uniformbuf_create_from_list
(
struct
ListBase
*
inputs
,
const
char
*name);
34
35
#define GPU_uniformbuf_create(size) GPU_uniformbuf_create_ex(size, NULL, __func__);
36
37
void
GPU_uniformbuf_free
(
GPUUniformBuf
*ubo);
38
39
void
GPU_uniformbuf_update
(
GPUUniformBuf
*ubo,
const
void
*
data
);
40
41
void
GPU_uniformbuf_bind
(
GPUUniformBuf
*ubo,
int
slot);
42
void
GPU_uniformbuf_unbind
(
GPUUniformBuf
*ubo);
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
GPU_uniformbuf_unbind_all
void GPU_uniformbuf_unbind_all(void)
Definition:
gpu_uniform_buffer.cc:226
GPUUniformBuf
struct GPUUniformBuf GPUUniformBuf
Definition:
GPU_uniform_buffer.h:24
GPU_uniformbuf_unbind
void GPU_uniformbuf_unbind(GPUUniformBuf *ubo)
Definition:
gpu_uniform_buffer.cc:221
GPU_uniformbuf_create_ex
GPUUniformBuf * GPU_uniformbuf_create_ex(size_t size, const void *data, const char *name)
Definition:
gpu_uniform_buffer.cc:178
GPU_uniformbuf_create_from_list
GPUUniformBuf * GPU_uniformbuf_create_from_list(struct ListBase *inputs, const char *name)
Definition:
gpu_uniform_buffer.cc:188
GPU_uniformbuf_update
void GPU_uniformbuf_update(GPUUniformBuf *ubo, const void *data)
Definition:
gpu_uniform_buffer.cc:211
GPU_uniformbuf_free
void GPU_uniformbuf_free(GPUUniformBuf *ubo)
Definition:
gpu_uniform_buffer.cc:206
GPU_uniformbuf_bind
void GPU_uniformbuf_bind(GPUUniformBuf *ubo, int slot)
Definition:
gpu_uniform_buffer.cc:216
data
data
Definition:
bmesh_operator_api_inline.h:157
size
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
Definition:
btDbvt.cpp:52
inputs
static bNodeSocketTemplate inputs[]
Definition:
node_texture_at.c:11
ListBase
Definition:
DNA_listBase.h:30
Generated on Tue Oct 22 2024 13:18:25 for Blender by
doxygen
1.9.1