Blender V5.3
gpu_uniform_buffer.cc File Reference
#include "MEM_guardedalloc.h"
#include <cstdint>
#include <cstring>
#include "BLI_listbase.hh"
#include "BLI_map.hh"
#include "BLI_math_base_c.hh"
#include "BLI_string.hh"
#include "BKE_global.hh"
#include "gpu_backend.hh"
#include "gpu_node_graph.hh"
#include "GPU_capabilities.hh"
#include "GPU_context.hh"
#include "GPU_material.hh"
#include "GPU_shader_shared_utils.hh"
#include "GPU_uniform_buffer.hh"
#include "gpu_context_private.hh"
#include "gpu_uniform_buffer_private.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::gpu

Functions

void blender::GPU_uniformbuf_inputs_sort (ListBaseT< LinkData > *inputs)
C-API
gpu::UniformBuf * blender::GPU_uniformbuf_create_ex (size_t size, const void *data, const char *name)
gpu::UniformBuf * blender::GPU_uniformbuf_create_from_list (ListBaseT< LinkData > *inputs, const char *name)
void blender::GPU_uniformbuf_free (gpu::UniformBuf *ubo)
void blender::GPU_uniformbuf_update (gpu::UniformBuf *ubo, const void *data)
void blender::GPU_uniformbuf_bind (gpu::UniformBuf *ubo, int slot)
void blender::GPU_uniformbuf_bind_as_ssbo (gpu::UniformBuf *ubo, int slot)
void blender::GPU_uniformbuf_unbind (gpu::UniformBuf *ubo)
void blender::GPU_uniformbuf_debug_unbind_all ()
void blender::GPU_uniformbuf_clear_to_zero (gpu::UniformBuf *ubo)

Uniform buffer from GPUInput list

static constexpr size_t blender::GPU_UBO_ALIGNMENT = 4
static bool blender::gpu_type_is_ubo_scalar (const GPUType type)
static GPUType blender::get_padded_gpu_type (LinkData *link)
static void blender::gpu_constant_populate_ubo (void *destination, const GPUInputConstantData &data, const GPUType type)
static void blender::buffer_reorder_scalar_after_size3_vec (ListBaseT< LinkData > *inputs, LinkData *size3_vec_link, Map< GPUType, LinkData * > &first_links)
static int blender::inputs_cmp (const void *a, const void *b)
static bool blender::is_ubo_supported_type (const GPUType type)
static size_t blender::buffer_size_from_list (ListBaseT< LinkData > *inputs)
static void blender::buffer_fill_from_list (void *data, ListBaseT< LinkData > *inputs)