Cleanup: Move GPU_uniform_buffer.h to C++
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
@@ -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 */
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user