Visual Computing Library
Loading...
Searching...
No Matches
vcl::DynamicIndexBuffer Class Reference

The DynamicIndexBuffer manages the lifetime of a bgfx::DynamicIndexBufferHandle. More...

#include <vclib/bgfx/buffers/dynamic_index_buffer.h>

Inheritance diagram for vcl::DynamicIndexBuffer:

Public Member Functions

 DynamicIndexBuffer ()=default
 Empty constructor.
 
void create (uint size, ushort flags=BGFX_BUFFER_NONE)
 
void update (uint startIndex, const bgfx::Memory *data)
 
void bind () const
 Bind the dynamic index buffer to the rendering pipeline.
 

Private Types

using Base = GenericBuffer< bgfx::DynamicIndexBufferHandle >
 

Detailed Description

The DynamicIndexBuffer manages the lifetime of a bgfx::DynamicIndexBufferHandle.

It provides an interface to set the dynamic index buffer data and bind it to the rendering pipeline. The dynamic index buffer can be used for rendering or for compute shaders.

Todo:
provide here the differences between a index buffer and a dynamic index buffer.
Note
A DynamicIndexBuffer can be moved but not copied (a copy would require to create a new bgfx::DynamicIndexBufferHandle, that can be done only having access to the data). Any class that contains a DynamicIndexBuffer should implement the copy constructor and the copy assignment operator.

Constructor & Destructor Documentation

◆ DynamicIndexBuffer()

vcl::DynamicIndexBuffer::DynamicIndexBuffer ( )
default

Empty constructor.

It creates an invalid DynamicIndexBuffer object.


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