Cleanup: code-comments, use doxygen formatting & spelling corrections

Also move some function doc-strings from the implementation
to their declarations.
This commit is contained in:
Campbell Barton
2024-03-26 17:54:30 +11:00
parent 6d7b4e049e
commit 155dae94d7
63 changed files with 441 additions and 339 deletions

View File

@@ -25,7 +25,7 @@ struct BPyGPUBatch {
/* The batch is owned, we may support thin wrapped batches later. */
blender::gpu::Batch *batch;
#ifdef USE_GPU_PY_REFERENCES
/* Just to keep a user to prevent freeing buf's we're using */
/* Just to keep a user to prevent freeing buffers we're using. */
PyObject *references;
#endif
};

View File

@@ -47,7 +47,7 @@ struct BPyGPUStageInterfaceInfo {
PyObject_VAR_HEAD
GPUStageInterfaceInfo *interface;
#ifdef USE_GPU_PY_REFERENCES
/* Just to keep a user to prevent freeing buf's we're using. */
/* Just to keep a user to prevent freeing buffers we're using. */
PyObject *references;
#endif
};
@@ -56,7 +56,7 @@ struct BPyGPUShaderCreateInfo {
PyObject_VAR_HEAD
GPUShaderCreateInfo *info;
#ifdef USE_GPU_PY_REFERENCES
/* Just to keep a user to prevent freeing buf's we're using. */
/* Just to keep a user to prevent freeing buffers we're using. */
PyObject *vertex_source;
PyObject *fragment_source;
PyObject *compute_source;