Commit: b0f30bd684645cb989b6744b04f70bccec7d360b
Author: Clément Foucault
Date:   Sun Aug 9 01:21:34 2020 +0200
Branches: master
https://developer.blender.org/rBb0f30bd684645cb989b6744b04f70bccec7d360b

Cleanup: GPUBatch: Move gpu_batch_private.h to CPP header

===================================================================

M       source/blender/gpu/CMakeLists.txt
M       source/blender/gpu/intern/gpu_batch.cc
R094    source/blender/gpu/intern/gpu_batch_private.h   
source/blender/gpu/intern/gpu_batch_private.hh
M       source/blender/gpu/intern/gpu_context.cc
M       source/blender/gpu/intern/gpu_shader_interface.cc

===================================================================

diff --git a/source/blender/gpu/CMakeLists.txt 
b/source/blender/gpu/CMakeLists.txt
index fe5c5d4fa7b..0d92d125402 100644
--- a/source/blender/gpu/CMakeLists.txt
+++ b/source/blender/gpu/CMakeLists.txt
@@ -125,7 +125,7 @@ set(SRC
 
   intern/gpu_attr_binding_private.h
   intern/gpu_backend.hh
-  intern/gpu_batch_private.h
+  intern/gpu_batch_private.hh
   intern/gpu_codegen.h
   intern/gpu_context_private.hh
   intern/gpu_drawlist_private.hh
diff --git a/source/blender/gpu/intern/gpu_batch.cc 
b/source/blender/gpu/intern/gpu_batch.cc
index e71ebec1a3b..ad0472cd932 100644
--- a/source/blender/gpu/intern/gpu_batch.cc
+++ b/source/blender/gpu/intern/gpu_batch.cc
@@ -33,7 +33,7 @@
 #include "GPU_platform.h"
 #include "GPU_shader.h"
 
-#include "gpu_batch_private.h"
+#include "gpu_batch_private.hh"
 #include "gpu_context_private.hh"
 #include "gpu_primitive_private.h"
 #include "gpu_shader_private.h"
diff --git a/source/blender/gpu/intern/gpu_batch_private.h 
b/source/blender/gpu/intern/gpu_batch_private.hh
similarity index 94%
rename from source/blender/gpu/intern/gpu_batch_private.h
rename to source/blender/gpu/intern/gpu_batch_private.hh
index 93745b9ca9b..a5a863310a1 100644
--- a/source/blender/gpu/intern/gpu_batch_private.h
+++ b/source/blender/gpu/intern/gpu_batch_private.hh
@@ -30,12 +30,4 @@
 #include "GPU_context.h"
 #include "GPU_shader_interface.h"
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 void gpu_batch_remove_interface_ref(GPUBatch *batch, const GPUShaderInterface 
*interface);
-
-#ifdef __cplusplus
-}
-#endif
diff --git a/source/blender/gpu/intern/gpu_context.cc 
b/source/blender/gpu/intern/gpu_context.cc
index da0d3cd395f..66514deefbc 100644
--- a/source/blender/gpu/intern/gpu_context.cc
+++ b/source/blender/gpu/intern/gpu_context.cc
@@ -40,7 +40,7 @@
 #include "GHOST_C-api.h"
 
 #include "gpu_backend.hh"
-#include "gpu_batch_private.h"
+#include "gpu_batch_private.hh"
 #include "gpu_context_private.hh"
 #include "gpu_matrix_private.h"
 
diff --git a/source/blender/gpu/intern/gpu_shader_interface.cc 
b/source/blender/gpu/intern/gpu_shader_interface.cc
index 4511d4a199d..d825dde7e10 100644
--- a/source/blender/gpu/intern/gpu_shader_interface.cc
+++ b/source/blender/gpu/intern/gpu_shader_interface.cc
@@ -32,7 +32,7 @@
 
 #include "GPU_shader_interface.h"
 
-#include "gpu_batch_private.h"
+#include "gpu_batch_private.hh"
 #include "gpu_context_private.hh"
 
 #include <stddef.h>

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to