Cleanup: Move GPU_uniform_buffer.h to C++

This commit is contained in:
Hans Goudey
2024-02-11 16:10:00 -05:00
parent 2d3a1aa238
commit 1e1d7034ec
25 changed files with 27 additions and 35 deletions

View File

@@ -21,7 +21,7 @@
#include "GPU_immediate.h"
#include "GPU_shader.h"
#include "GPU_uniform_buffer.h"
#include "GPU_uniform_buffer.hh"
#include "gpu_shader_create_info.hh"

View File

@@ -16,7 +16,7 @@
#include "GPU_capabilities.h"
#include "GPU_shader.h"
#include "GPU_texture.h"
#include "GPU_uniform_buffer.h"
#include "GPU_uniform_buffer.hh"
#include "gpu_shader_create_info.hh"

View File

@@ -17,7 +17,7 @@
#include "GPU_material.hh"
#include "GPU_shader.h"
#include "GPU_texture.h"
#include "GPU_uniform_buffer.h"
#include "GPU_uniform_buffer.hh"
#include "gpu_shader_create_info.hh"

View File

@@ -25,7 +25,7 @@
#include "GPU_capabilities.h"
#include "GPU_material.hh"
#include "GPU_texture.h"
#include "GPU_uniform_buffer.h"
#include "GPU_uniform_buffer.hh"
#include "DEG_depsgraph_query.hh"

View File

@@ -24,7 +24,7 @@
#include "GPU_platform.h"
#include "GPU_texture.h"
#include "GPU_uniform_buffer.h"
#include "GPU_uniform_buffer.hh"
#include "eevee_camera.hh"
#include "eevee_instance.hh"

View File

@@ -16,7 +16,7 @@
#include "BLI_math_color.h"
#include "BLI_memblock.h"
#include "GPU_uniform_buffer.h"
#include "GPU_uniform_buffer.hh"
#include "IMB_imbuf_types.hh"

View File

@@ -29,7 +29,7 @@
#include "DNA_view3d_types.h"
#include "GPU_texture.h"
#include "GPU_uniform_buffer.h"
#include "GPU_uniform_buffer.hh"
#include "gpencil_engine.h"

View File

@@ -75,7 +75,7 @@
#include "GPU_framebuffer.h"
#include "GPU_storage_buffer.h"
#include "GPU_texture.h"
#include "GPU_uniform_buffer.h"
#include "GPU_uniform_buffer.hh"
namespace blender::draw {

View File

@@ -35,7 +35,7 @@
#include "GPU_shader.h"
#include "GPU_storage_buffer.h"
#include "GPU_texture.h"
#include "GPU_uniform_buffer.h"
#include "GPU_uniform_buffer.hh"
#include "draw_cache.hh"
#include "draw_common.h"

View File

@@ -24,7 +24,7 @@
#include "GPU_drawlist.h"
#include "GPU_framebuffer.h"
#include "GPU_shader.h"
#include "GPU_uniform_buffer.h"
#include "GPU_uniform_buffer.hh"
#include "GPU_viewport.h"
#include "draw_instance_data.h"

View File

@@ -62,7 +62,7 @@
#include "GPU_platform.h"
#include "GPU_shader_shared.h"
#include "GPU_state.h"
#include "GPU_uniform_buffer.h"
#include "GPU_uniform_buffer.hh"
#include "GPU_viewport.h"
#include "RE_engine.h"

View File

@@ -46,7 +46,7 @@
#include "GPU_capabilities.h"
#include "GPU_material.hh"
#include "GPU_uniform_buffer.h"
#include "GPU_uniform_buffer.hh"
#include "intern/gpu_codegen.h"

View File

@@ -35,7 +35,7 @@
#include "GPU_matrix.h"
#include "GPU_shader_shared.h"
#include "GPU_state.h"
#include "GPU_uniform_buffer.h"
#include "GPU_uniform_buffer.hh"
#include "ED_gpencil_legacy.hh"

View File

@@ -42,7 +42,7 @@
#include "GPU_platform.h"
#include "GPU_shader_shared.h"
#include "GPU_state.h"
#include "GPU_uniform_buffer.h"
#include "GPU_uniform_buffer.hh"
#include "DRW_engine.hh"

View File

@@ -108,7 +108,7 @@ set(SRC
GPU_state.h
GPU_storage_buffer.h
GPU_texture.h
GPU_uniform_buffer.h
GPU_uniform_buffer.hh
GPU_vertex_buffer.h
GPU_vertex_format.h
GPU_viewport.h

View File

@@ -23,7 +23,7 @@
#include "GPU_index_buffer.h"
#include "GPU_shader.h"
#include "GPU_storage_buffer.h"
#include "GPU_uniform_buffer.h"
#include "GPU_uniform_buffer.hh"
#include "GPU_vertex_buffer.h"
#define GPU_BATCH_VBO_MAX_LEN 16

View File

@@ -15,14 +15,10 @@
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
struct ListBase;
/** Opaque type hiding blender::gpu::UniformBuf. */
typedef struct GPUUniformBuf GPUUniformBuf;
struct GPUUniformBuf;
GPUUniformBuf *GPU_uniformbuf_create_ex(size_t size, const void *data, const char *name);
/**
@@ -31,7 +27,7 @@ GPUUniformBuf *GPU_uniformbuf_create_ex(size_t size, const void *data, const cha
*
* \param inputs: ListBase of #BLI_genericNodeN(#GPUInput).
*/
GPUUniformBuf *GPU_uniformbuf_create_from_list(struct ListBase *inputs, const char *name);
GPUUniformBuf *GPU_uniformbuf_create_from_list(ListBase *inputs, const char *name);
#define GPU_uniformbuf_create(size) GPU_uniformbuf_create_ex(size, NULL, __func__);
@@ -42,7 +38,7 @@ void GPU_uniformbuf_update(GPUUniformBuf *ubo, const void *data);
void GPU_uniformbuf_bind(GPUUniformBuf *ubo, int slot);
void GPU_uniformbuf_bind_as_ssbo(GPUUniformBuf *ubo, int slot);
void GPU_uniformbuf_unbind(GPUUniformBuf *ubo);
void GPU_uniformbuf_unbind_all(void);
void GPU_uniformbuf_unbind_all();
void GPU_uniformbuf_clear_to_zero(GPUUniformBuf *ubo);
@@ -50,7 +46,3 @@ void GPU_uniformbuf_clear_to_zero(GPUUniformBuf *ubo);
#define GPU_ATTRIBUTE_UBO_BLOCK_NAME "unf_attrs"
#define GPU_LAYER_ATTRIBUTE_UBO_BLOCK_NAME "drw_layer_attrs"
#define GPU_NODE_TREE_UBO_SLOT 0
#ifdef __cplusplus
}
#endif

View File

@@ -30,7 +30,7 @@
#include "GPU_context.h"
#include "GPU_material.hh"
#include "GPU_shader.h"
#include "GPU_uniform_buffer.h"
#include "GPU_uniform_buffer.hh"
#include "GPU_vertex_format.h"
#include "BLI_sys_types.h" /* for intptr_t support */

View File

@@ -33,7 +33,7 @@
#include "GPU_material.hh"
#include "GPU_shader.h"
#include "GPU_texture.h"
#include "GPU_uniform_buffer.h"
#include "GPU_uniform_buffer.hh"
#include "DRW_engine.hh"

View File

@@ -18,7 +18,7 @@
#include "GPU_context.h"
#include "GPU_material.hh"
#include "GPU_uniform_buffer.h"
#include "GPU_uniform_buffer.hh"
#include "gpu_uniform_buffer_private.hh"
/* -------------------------------------------------------------------- */

View File

@@ -24,7 +24,7 @@
#include "GPU_immediate.h"
#include "GPU_matrix.h"
#include "GPU_texture.h"
#include "GPU_uniform_buffer.h"
#include "GPU_uniform_buffer.hh"
#include "GPU_viewport.h"
#include "DRW_engine.hh"

View File

@@ -25,7 +25,7 @@
#include "GPU_shader.h"
#include "GPU_storage_buffer.h"
#include "GPU_texture.h"
#include "GPU_uniform_buffer.h"
#include "GPU_uniform_buffer.hh"
#include "GPU_vertex_buffer.h"
#include "intern/gpu_matrix_private.h"

View File

@@ -28,7 +28,7 @@
#include "GPU_shader.h"
#include "GPU_texture.h"
#include "GPU_uniform_buffer.h"
#include "GPU_uniform_buffer.hh"
#include "COM_algorithm_smaa.hh"
#include "COM_node_operation.hh"

View File

@@ -15,7 +15,7 @@
#include "GPU_shader.h"
#include "GPU_texture.h"
#include "GPU_uniform_buffer.h"
#include "GPU_uniform_buffer.hh"
#include "../generic/py_capi_utils.h"
#include "../generic/python_compat.h"

View File

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