Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-09-23 07:33:42 +0300
committerCampbell Barton <campbell@blender.org>2022-09-23 07:33:42 +0300
commit3edd87f0099923742ed5a60e23ebfcdd539fb76e (patch)
treeef5f1a225b2b52d29ee269873497cff272cd8adb /source/blender/gpu
parentcda2dc721dce9db9ea94b059ccd1cc7a3ae73aa6 (diff)
Cleanup: format
Diffstat (limited to 'source/blender/gpu')
-rw-r--r--source/blender/gpu/metal/mtl_batch.hh17
-rw-r--r--source/blender/gpu/metal/mtl_drawlist.hh18
-rw-r--r--source/blender/gpu/metal/mtl_immediate.hh1
-rw-r--r--source/blender/gpu/metal/mtl_immediate.mm5
4 files changed, 24 insertions, 17 deletions
diff --git a/source/blender/gpu/metal/mtl_batch.hh b/source/blender/gpu/metal/mtl_batch.hh
index 66603dabd15..236367bf5a4 100644
--- a/source/blender/gpu/metal/mtl_batch.hh
+++ b/source/blender/gpu/metal/mtl_batch.hh
@@ -16,24 +16,23 @@
namespace blender {
namespace gpu {
-
/* Pass-through MTLBatch. TODO(Metal): Implement. */
class MTLBatch : public Batch {
public:
- void draw(int v_first, int v_count, int i_first, int i_count) override {
-
+ void draw(int v_first, int v_count, int i_first, int i_count) override
+ {
}
- void draw_indirect(GPUStorageBuf *indirect_buf, intptr_t offset) override {
-
+ void draw_indirect(GPUStorageBuf *indirect_buf, intptr_t offset) override
+ {
}
-
+
void multi_draw_indirect(GPUStorageBuf *indirect_buf,
int count,
intptr_t offset,
- intptr_t stride) override {
-
- }
+ intptr_t stride) override
+ {
+ }
MEM_CXX_CLASS_ALLOC_FUNCS("MTLBatch");
};
diff --git a/source/blender/gpu/metal/mtl_drawlist.hh b/source/blender/gpu/metal/mtl_drawlist.hh
index 9eb465b26a0..ed99c76faa7 100644
--- a/source/blender/gpu/metal/mtl_drawlist.hh
+++ b/source/blender/gpu/metal/mtl_drawlist.hh
@@ -21,11 +21,19 @@ namespace gpu {
*/
class MTLDrawList : public DrawList {
public:
- MTLDrawList(int length) {}
- ~MTLDrawList() {}
-
- void append(GPUBatch *batch, int i_first, int i_count) override {}
- void submit() override {}
+ MTLDrawList(int length)
+ {
+ }
+ ~MTLDrawList()
+ {
+ }
+
+ void append(GPUBatch *batch, int i_first, int i_count) override
+ {
+ }
+ void submit() override
+ {
+ }
MEM_CXX_CLASS_ALLOC_FUNCS("MTLDrawList");
};
diff --git a/source/blender/gpu/metal/mtl_immediate.hh b/source/blender/gpu/metal/mtl_immediate.hh
index b743efb397d..8d852282ac8 100644
--- a/source/blender/gpu/metal/mtl_immediate.hh
+++ b/source/blender/gpu/metal/mtl_immediate.hh
@@ -6,7 +6,6 @@
* Mimics old style opengl immediate mode drawing.
*/
-
#pragma once
#include "MEM_guardedalloc.h"
diff --git a/source/blender/gpu/metal/mtl_immediate.mm b/source/blender/gpu/metal/mtl_immediate.mm
index 41632e39092..4820c9db9df 100644
--- a/source/blender/gpu/metal/mtl_immediate.mm
+++ b/source/blender/gpu/metal/mtl_immediate.mm
@@ -115,7 +115,8 @@ void MTLImmediate::end()
/* Disable Indexed rendering in SSBO vertex fetch. */
int uniform_ssbo_use_indexed = active_mtl_shader->uni_ssbo_uses_indexed_rendering;
- BLI_assert_msg(uniform_ssbo_use_indexed != -1, "Expected valid uniform location for ssbo_uses_indexed_rendering.");
+ BLI_assert_msg(uniform_ssbo_use_indexed != -1,
+ "Expected valid uniform location for ssbo_uses_indexed_rendering.");
int uses_indexed_rendering = 0;
active_mtl_shader->uniform_int(uniform_ssbo_use_indexed, 1, 1, &uses_indexed_rendering);
}
@@ -206,7 +207,7 @@ void MTLImmediate::end()
/* SSBO Vertex Fetch Attribute bind. */
if (active_mtl_shader->get_uses_ssbo_vertex_fetch()) {
BLI_assert_msg(mtl_shader_attribute.buffer_index == 0,
- "All attributes should be in buffer index zero");
+ "All attributes should be in buffer index zero");
MTLSSBOAttribute ssbo_attr(
mtl_shader_attribute.index,
mtl_shader_attribute.buffer_index,