Cleanup: Move remaining GPU headers to C++

Pull Request: https://projects.blender.org/blender/blender/pulls/119807
This commit is contained in:
Hans Goudey
2024-03-23 01:24:18 +01:00
committed by Hans Goudey
parent f235990009
commit 8b514bccd1
556 changed files with 1663 additions and 1923 deletions

View File

@@ -19,8 +19,8 @@
#include "MEM_guardedalloc.h"
#include "GPU_context.h"
#include "GPU_state.h"
#include "GPU_context.hh"
#include "GPU_state.hh"
#include "py_capi_utils.h"

View File

@@ -11,9 +11,9 @@
#include <Python.h>
#include "GPU_init_exit.h"
#include "GPU_primitive.h"
#include "GPU_texture.h"
#include "GPU_init_exit.hh"
#include "GPU_primitive.hh"
#include "GPU_texture.hh"
#include "../generic/py_capi_utils.h"

View File

@@ -16,7 +16,7 @@
#include "BLI_utildefines.h"
#include "GPU_batch.h"
#include "GPU_batch.hh"
#include "../generic/py_capi_utils.h"
#include "../generic/python_compat.h"

View File

@@ -17,7 +17,7 @@
#include "MEM_guardedalloc.h"
#include "GPU_texture.h"
#include "GPU_texture.hh"
#include "../generic/py_capi_utils.h"

View File

@@ -13,7 +13,7 @@
#include "BLI_utildefines.h"
#include "GPU_capabilities.h"
#include "GPU_capabilities.hh"
#include "gpu_py.h"
#include "gpu_py_capabilities.h" /* own include */

View File

@@ -13,9 +13,9 @@
#include "BLI_utildefines.h"
#include "GPU_capabilities.h"
#include "GPU_compute.h"
#include "GPU_state.h"
#include "GPU_capabilities.hh"
#include "GPU_compute.hh"
#include "GPU_state.hh"
#include "../generic/python_compat.h"

View File

@@ -11,7 +11,7 @@
#include <Python.h>
#include "GPU_index_buffer.h"
#include "GPU_index_buffer.hh"
#include "MEM_guardedalloc.h"

View File

@@ -14,9 +14,9 @@
#include <Python.h>
#include "GPU_context.h"
#include "GPU_framebuffer.h"
#include "GPU_init_exit.h"
#include "GPU_context.hh"
#include "GPU_framebuffer.hh"
#include "GPU_init_exit.hh"
#include "../generic/py_capi_utils.h"
#include "../generic/python_compat.h"

View File

@@ -23,7 +23,7 @@
#include "../generic/py_capi_utils.h"
#define USE_GPU_PY_MATRIX_API
#include "GPU_matrix.h"
#include "GPU_matrix.hh"
#undef USE_GPU_PY_MATRIX_API
#include "gpu_py.h"

View File

@@ -23,10 +23,10 @@
#include "DNA_view3d_types.h"
#include "GPU_context.h"
#include "GPU_framebuffer.h"
#include "GPU_texture.h"
#include "GPU_viewport.h"
#include "GPU_context.hh"
#include "GPU_framebuffer.hh"
#include "GPU_texture.hh"
#include "GPU_viewport.hh"
#include "ED_view3d_offscreen.hh"

View File

@@ -13,8 +13,8 @@
#include "BLI_utildefines.h"
#include "GPU_context.h"
#include "GPU_platform.h"
#include "GPU_context.hh"
#include "GPU_platform.hh"
#include "gpu_py.h"
#include "gpu_py_platform.h" /* Own include. */

View File

@@ -13,8 +13,8 @@
#include "BLI_utildefines.h"
#include "GPU_shader.h"
#include "GPU_texture.h"
#include "GPU_shader.hh"
#include "GPU_texture.hh"
#include "GPU_uniform_buffer.hh"
#include "../generic/py_capi_utils.h"

View File

@@ -13,7 +13,7 @@
#include "BLI_utildefines.h"
#include "GPU_shader.h"
#include "GPU_shader.hh"
#include "intern/gpu_shader_create_info.hh"
#include "../generic/py_capi_utils.h"
@@ -1102,7 +1102,7 @@ static PyObject *pygpu_shader_info_typedef_source(BPyGPUShaderCreateInfo *self,
ShaderCreateInfo *info = reinterpret_cast<ShaderCreateInfo *>(self->info);
#if 0
if (info->typedef_sources_.is_empty()) {
info->typedef_source("GPU_shader_shared_utils.h");
info->typedef_source("GPU_shader_shared_utils.hh");
}
#endif
info->typedef_source_generated = typedef_source;

View File

@@ -13,8 +13,8 @@
#include <Python.h>
#include "GPU_framebuffer.h"
#include "GPU_state.h"
#include "GPU_framebuffer.hh"
#include "GPU_state.hh"
#include "../generic/py_capi_utils.h"
#include "../generic/python_utildefines.h"

View File

@@ -17,8 +17,8 @@
#include "DNA_image_types.h"
#include "GPU_context.h"
#include "GPU_texture.h"
#include "GPU_context.hh"
#include "GPU_texture.hh"
#include "BKE_image.h"

View File

@@ -15,7 +15,7 @@
#include "BLI_string.h"
#include "GPU_context.h"
#include "GPU_context.hh"
#include "GPU_uniform_buffer.hh"
#include "../generic/python_compat.h"

View File

@@ -11,7 +11,7 @@
#include <Python.h>
#include "GPU_vertex_buffer.h"
#include "GPU_vertex_buffer.hh"
#include "MEM_guardedalloc.h"

View File

@@ -8,7 +8,7 @@
#pragma once
#include "GPU_vertex_format.h"
#include "GPU_vertex_format.hh"
#ifdef __cplusplus
extern "C" {

View File

@@ -28,7 +28,7 @@
#include "RNA_enum_types.hh"
#include "RNA_prototypes.h"
#include "GPU_state.h"
#include "GPU_state.hh"
#include "WM_api.hh" /* For #WM_ghost_backend */