diff options
Diffstat (limited to 'source/blender/python/gpu/gpu_py_buffer.h')
-rw-r--r-- | source/blender/python/gpu/gpu_py_buffer.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/python/gpu/gpu_py_buffer.h b/source/blender/python/gpu/gpu_py_buffer.h index 9df22e9b780..cbc46339628 100644 --- a/source/blender/python/gpu/gpu_py_buffer.h +++ b/source/blender/python/gpu/gpu_py_buffer.h @@ -48,6 +48,13 @@ typedef struct BPyGPUBuffer { } BPyGPUBuffer; size_t bpygpu_Buffer_size(BPyGPUBuffer *buffer); +/** + * Create a buffer object + * + * \param shape: An array of `shape_len` integers representing the size of each dimension. + * \param buffer: When not NULL holds a contiguous buffer + * with the correct format from which the buffer will be initialized + */ BPyGPUBuffer *BPyGPU_Buffer_CreatePyObject(const int format, const Py_ssize_t *shape, const int shape_len, |