Cleanup: update clang-format so PyObject_HEAD indents properly
This commit is contained in:
@@ -131,7 +131,7 @@ static bool pygpu_framebuffer_stack_pop_and_restore_or_error(GPUFrameBuffer *fb)
|
||||
|
||||
typedef struct {
|
||||
PyObject_HEAD /* Required Python macro. */
|
||||
BPyGPUFrameBuffer *py_fb;
|
||||
BPyGPUFrameBuffer *py_fb;
|
||||
int level;
|
||||
} PyFrameBufferStackContext;
|
||||
|
||||
|
||||
@@ -27,7 +27,8 @@ extern PyTypeObject BPyGPUFrameBuffer_Type;
|
||||
#define BPyGPUFrameBuffer_Check(v) (Py_TYPE(v) == &BPyGPUFrameBuffer_Type)
|
||||
|
||||
typedef struct BPyGPUFrameBuffer {
|
||||
PyObject_HEAD struct GPUFrameBuffer *fb;
|
||||
PyObject_HEAD
|
||||
struct GPUFrameBuffer *fb;
|
||||
|
||||
#ifndef GPU_NO_USE_PY_REFERENCES
|
||||
bool shared_reference;
|
||||
|
||||
@@ -153,7 +153,7 @@ static PyObject *pygpu_matrix_pop_projection(PyObject *UNUSED(self))
|
||||
|
||||
typedef struct {
|
||||
PyObject_HEAD /* Required Python macro. */
|
||||
int type;
|
||||
int type;
|
||||
int level;
|
||||
} BPyGPU_MatrixStackContext;
|
||||
|
||||
|
||||
@@ -98,7 +98,7 @@ static int pygpu_offscreen_valid_check(BPyGPUOffScreen *py_ofs)
|
||||
|
||||
typedef struct {
|
||||
PyObject_HEAD /* Required Python macro. */
|
||||
BPyGPUOffScreen *py_offscreen;
|
||||
BPyGPUOffScreen *py_offscreen;
|
||||
int level;
|
||||
bool is_explicitly_bound; /* Bound by "bind" method. */
|
||||
} OffScreenStackContext;
|
||||
|
||||
@@ -27,7 +27,8 @@ extern PyTypeObject BPyGPUOffScreen_Type;
|
||||
#define BPyGPUOffScreen_Check(v) (Py_TYPE(v) == &BPyGPUOffScreen_Type)
|
||||
|
||||
typedef struct BPyGPUOffScreen {
|
||||
PyObject_HEAD struct GPUOffScreen *ofs;
|
||||
PyObject_HEAD
|
||||
struct GPUOffScreen *ofs;
|
||||
} BPyGPUOffScreen;
|
||||
|
||||
PyObject *BPyGPUOffScreen_CreatePyObject(struct GPUOffScreen *ofs) ATTR_NONNULL(1);
|
||||
|
||||
@@ -27,7 +27,8 @@ extern PyTypeObject BPyGPUTexture_Type;
|
||||
#define BPyGPUTexture_Check(v) (Py_TYPE(v) == &BPyGPUTexture_Type)
|
||||
|
||||
typedef struct BPyGPUTexture {
|
||||
PyObject_HEAD struct GPUTexture *tex;
|
||||
PyObject_HEAD
|
||||
struct GPUTexture *tex;
|
||||
} BPyGPUTexture;
|
||||
|
||||
int bpygpu_ParseTexture(PyObject *o, void *p);
|
||||
|
||||
@@ -27,7 +27,8 @@ extern PyTypeObject BPyGPUUniformBuf_Type;
|
||||
#define BPyGPUUniformBuf_Check(v) (Py_TYPE(v) == &BPyGPUUniformBuf_Type)
|
||||
|
||||
typedef struct BPyGPUUniformBuf {
|
||||
PyObject_HEAD struct GPUUniformBuf *ubo;
|
||||
PyObject_HEAD
|
||||
struct GPUUniformBuf *ubo;
|
||||
} BPyGPUUniformBuf;
|
||||
|
||||
PyObject *BPyGPUUniformBuf_CreatePyObject(struct GPUUniformBuf *ubo) ATTR_NONNULL(1);
|
||||
|
||||
Reference in New Issue
Block a user