|
Blender V5.0
|
Go to the source code of this file.
Classes | |
| struct | BPyGPUBuffer |
Macros | |
| #define | BPyGPU_Buffer_Check(v) |
Functions | |
| size_t | bpygpu_Buffer_size (BPyGPUBuffer *buffer) |
| BPyGPUBuffer * | BPyGPU_Buffer_CreatePyObject (int format, const Py_ssize_t *shape, int shape_len, void *buffer) |
Variables | |
| PyTypeObject | BPyGPU_BufferType |
| #define BPyGPU_Buffer_Check | ( | v | ) |
Definition at line 17 of file gpu_py_buffer.hh.
|
nodiscard |
Create a buffer object
| shape | An array of shape_len integers representing the size of each dimension. |
| buffer | When not NULL holds a contiguous buffer with the correct format from which the buffer will be initialized |
Definition at line 758 of file gpu_py_buffer.cc.
References MEM_callocN(), pygpu_buffer_calc_size(), pygpu_buffer_make_from_data(), and size().
Referenced by pygpu_buffer__tp_new(), pygpu_framebuffer_read_color(), pygpu_framebuffer_read_depth(), and pygpu_texture_read().
|
nodiscard |
Definition at line 753 of file gpu_py_buffer.cc.
References BPyGPUBuffer::format, pygpu_buffer_calc_size(), BPyGPUBuffer::shape, and BPyGPUBuffer::shape_len.
Referenced by pygpu_buffer__bf_getbuffer(), pygpu_framebuffer_read_color(), pygpu_framebuffer_read_depth(), and pygpu_texture__tp_new().
|
extern |
Definition at line 689 of file gpu_py_buffer.cc.
Referenced by bpygpu_types_init(), pygpu_buffer_make_from_data(), pygpu_framebuffer_read_color(), pygpu_framebuffer_read_depth(), and pygpu_texture__tp_new().