From e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 17 Apr 2019 06:17:24 +0200 Subject: ClangFormat: apply to source, most of intern Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat --- source/blender/gpu/GPU_buffers.h | 60 +++++++++++++++++++++------------------- 1 file changed, 31 insertions(+), 29 deletions(-) (limited to 'source/blender/gpu/GPU_buffers.h') diff --git a/source/blender/gpu/GPU_buffers.h b/source/blender/gpu/GPU_buffers.h index 8762a1cb222..895887c2588 100644 --- a/source/blender/gpu/GPU_buffers.h +++ b/source/blender/gpu/GPU_buffers.h @@ -41,44 +41,46 @@ struct PBVH; typedef struct GPU_PBVH_Buffers GPU_PBVH_Buffers; /* build */ -GPU_PBVH_Buffers *GPU_pbvh_mesh_buffers_build( - const int (*face_vert_indices)[3], - const struct MPoly *mpoly, const struct MLoop *mloop, const struct MLoopTri *looptri, - const struct MVert *verts, - const int *face_indices, - const int face_indices_len); +GPU_PBVH_Buffers *GPU_pbvh_mesh_buffers_build(const int (*face_vert_indices)[3], + const struct MPoly *mpoly, + const struct MLoop *mloop, + const struct MLoopTri *looptri, + const struct MVert *verts, + const int *face_indices, + const int face_indices_len); -GPU_PBVH_Buffers *GPU_pbvh_grid_buffers_build( - int totgrid, - unsigned int **grid_hidden); +GPU_PBVH_Buffers *GPU_pbvh_grid_buffers_build(int totgrid, unsigned int **grid_hidden); GPU_PBVH_Buffers *GPU_pbvh_bmesh_buffers_build(bool smooth_shading); /* update */ enum { - GPU_PBVH_BUFFERS_SHOW_MASK = (1 << 1), + GPU_PBVH_BUFFERS_SHOW_MASK = (1 << 1), }; -void GPU_pbvh_mesh_buffers_update( - GPU_PBVH_Buffers *buffers, const struct MVert *mvert, - const int *vert_indices, int totvert, const float *vmask, - const int (*face_vert_indices)[3], - const int update_flags); - -void GPU_pbvh_bmesh_buffers_update( - GPU_PBVH_Buffers *buffers, - struct BMesh *bm, - struct GSet *bm_faces, - struct GSet *bm_unique_verts, - struct GSet *bm_other_verts, - const int update_flags); - -void GPU_pbvh_grid_buffers_update( - GPU_PBVH_Buffers *buffers, struct CCGElem **grids, - const struct DMFlagMat *grid_flag_mats, - int *grid_indices, int totgrid, const struct CCGKey *key, - const int update_flags); +void GPU_pbvh_mesh_buffers_update(GPU_PBVH_Buffers *buffers, + const struct MVert *mvert, + const int *vert_indices, + int totvert, + const float *vmask, + const int (*face_vert_indices)[3], + const int update_flags); + +void GPU_pbvh_bmesh_buffers_update(GPU_PBVH_Buffers *buffers, + struct BMesh *bm, + struct GSet *bm_faces, + struct GSet *bm_unique_verts, + struct GSet *bm_other_verts, + const int update_flags); + +void GPU_pbvh_grid_buffers_update(GPU_PBVH_Buffers *buffers, + struct CCGElem **grids, + const struct DMFlagMat *grid_flag_mats, + int *grid_indices, + int totgrid, + const struct CCGKey *key, + const int update_flags); /* draw */ struct GPUBatch *GPU_pbvh_buffers_batch_get(GPU_PBVH_Buffers *buffers, bool fast, bool wires); -- cgit v1.2.3