Blender V4.3
mtl_index_buffer.mm File Reference
#include "mtl_index_buffer.hh"
#include "mtl_context.hh"
#include "mtl_debug.hh"
#include "mtl_storage_buffer.hh"
#include "BLI_span.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 
namespace  blender::gpu
 

Functions

Index buffer optimization and topology emulation

Index buffer optimization and emulation. Optimize index buffers by eliminating restart-indices. Emulate unsupported index types e.g. Triangle Fan and Line Loop.

template<typename T >
static uint32_t blender::gpu::populate_optimized_tri_strip_buf (Span< T > original_data, MutableSpan< T > output_data, uint32_t input_index_len)
 
template<typename T >
static uint32_t blender::gpu::populate_emulated_tri_fan_buf (Span< T > original_data, MutableSpan< T > output_data, uint32_t input_index_len)