Blender V5.0
blender::gpu::DummyVertexBuffer Class Reference

#include <dummy_vertex_buffer.hh>

Inherits blender::gpu::VertBuf.

Public Member Functions

void bind_as_ssbo (uint) override
void bind_as_texture (uint) override
void wrap_handle (uint64_t) override
void update_sub (uint, uint, const void *) override
void read (void *) const override
Public Member Functions inherited from blender::gpu::VertBuf
 VertBuf ()
virtual ~VertBuf ()
void init (const GPUVertFormat &format, GPUUsageType usage)
void clear ()
void allocate (uint vert_len)
void resize (uint vert_len)
void upload ()
size_t size_alloc_get () const
size_t size_used_get () const
void reference_add ()
void reference_remove ()
GPUUsageType get_usage_type () const
template<typename T>
MutableSpan< Tdata ()

Protected Member Functions

void acquire_data () override
void resize_data () override
void release_data () override
void upload_data () override

Additional Inherited Members

Static Public Member Functions inherited from blender::gpu::VertBuf
template<typename FormatT>
static VertBufPtr from_size_with_format (const int size, GPUUsageType usage=GPU_USAGE_STATIC)
template<typename T>
static VertBufPtr from_size (const int size, GPUUsageType usage=GPU_USAGE_STATIC)
template<typename T>
static VertBufPtr from_span (const Span< T > data)
template<typename T>
static VertBufPtr from_varray (const VArray< T > &array)
template<typename T>
static VertBufPtr device_only (uint size)
Public Attributes inherited from blender::gpu::VertBuf
GPUVertFormat format = {}
uint vertex_len = 0
uint vertex_alloc = 0
GPUVertBufStatus flag = GPU_VERTBUF_INVALID
GPUUsageType extended_usage_ = GPU_USAGE_STATIC
Static Public Attributes inherited from blender::gpu::VertBuf
static size_t memory_usage = 0
Protected Attributes inherited from blender::gpu::VertBuf
uchardata_ = nullptr
GPUUsageType usage_ = GPU_USAGE_STATIC

Detailed Description

Definition at line 17 of file dummy_vertex_buffer.hh.

Member Function Documentation

◆ acquire_data()

void blender::gpu::DummyVertexBuffer::acquire_data ( )
inlineoverrideprotectedvirtual

◆ bind_as_ssbo()

void blender::gpu::DummyVertexBuffer::bind_as_ssbo ( uint )
inlineoverridevirtual

Implements blender::gpu::VertBuf.

Definition at line 20 of file dummy_vertex_buffer.hh.

◆ bind_as_texture()

void blender::gpu::DummyVertexBuffer::bind_as_texture ( uint )
inlineoverridevirtual

Implements blender::gpu::VertBuf.

Definition at line 21 of file dummy_vertex_buffer.hh.

◆ read()

void blender::gpu::DummyVertexBuffer::read ( void * ) const
inlineoverridevirtual

Implements blender::gpu::VertBuf.

Definition at line 25 of file dummy_vertex_buffer.hh.

◆ release_data()

void blender::gpu::DummyVertexBuffer::release_data ( )
inlineoverrideprotectedvirtual

Implements blender::gpu::VertBuf.

Definition at line 34 of file dummy_vertex_buffer.hh.

References blender::gpu::VertBuf::data_, and MEM_SAFE_FREE.

◆ resize_data()

void blender::gpu::DummyVertexBuffer::resize_data ( )
inlineoverrideprotectedvirtual

Implements blender::gpu::VertBuf.

Definition at line 33 of file dummy_vertex_buffer.hh.

◆ update_sub()

void blender::gpu::DummyVertexBuffer::update_sub ( uint ,
uint ,
const void *  )
inlineoverridevirtual

Implements blender::gpu::VertBuf.

Definition at line 24 of file dummy_vertex_buffer.hh.

◆ upload_data()

void blender::gpu::DummyVertexBuffer::upload_data ( )
inlineoverrideprotectedvirtual

Implements blender::gpu::VertBuf.

Definition at line 38 of file dummy_vertex_buffer.hh.

◆ wrap_handle()

void blender::gpu::DummyVertexBuffer::wrap_handle ( uint64_t )
inlineoverridevirtual

Implements blender::gpu::VertBuf.

Definition at line 22 of file dummy_vertex_buffer.hh.


The documentation for this class was generated from the following file: