|
Blender
V2.93
|
Go to the source code of this file.
Classes | |
| struct | BPyGPUBuffer |
Macros | |
| #define | BPyGPU_Buffer_Check(v) (Py_TYPE(v) == &BPyGPU_BufferType) |
Typedefs | |
| typedef struct BPyGPUBuffer | BPyGPUBuffer |
Functions | |
| size_t | bpygpu_Buffer_size (BPyGPUBuffer *buffer) |
| BPyGPUBuffer * | BPyGPU_Buffer_CreatePyObject (const int format, const Py_ssize_t *shape, const int shape_len, void *buffer) |
Variables | |
| PyTypeObject | BPyGPU_BufferType |
| #define BPyGPU_Buffer_Check | ( | v | ) | (Py_TYPE(v) == &BPyGPU_BufferType) |
Definition at line 25 of file gpu_py_buffer.h.
| typedef struct BPyGPUBuffer BPyGPUBuffer |
Buffer Object
For Python access to GPU functions requiring a pointer.
| BPyGPUBuffer* BPyGPU_Buffer_CreatePyObject | ( | const int | format, |
| const Py_ssize_t * | shape, | ||
| const int | shape_len, | ||
| void * | buffer | ||
| ) |
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 649 of file gpu_py_buffer.c.
References buffer, MEM_callocN, NULL, pygpu_buffer_calc_size(), pygpu_buffer_make_from_data(), and size().
Referenced by pygpu_buffer__tp_new(), and pygpu_texture_read().
| size_t bpygpu_Buffer_size | ( | BPyGPUBuffer * | buffer | ) |
Definition at line 637 of file gpu_py_buffer.c.
References buffer, and pygpu_buffer_calc_size().
Referenced by pygpu_texture__tp_new(), and pygpu_uniformbuffer__tp_new().
|
extern |
Definition at line 605 of file gpu_py_buffer.c.
Referenced by bpygpu_types_init(), pygpu_buffer_make_from_data(), pygpu_texture__tp_new(), and pygpu_uniformbuffer__tp_new().