Visual Computing Library
All Classes Functions Variables Typedefs Enumerations Friends Modules Pages Concepts
vcl::IndirectBuffer Class Reference
Inheritance diagram for vcl::IndirectBuffer:

Public Member Functions

 IndirectBuffer ()=default
 Empty constructor.
 
void create (uint num)
 Creates the indirect buffer with the given number of indirect calls.
 
bgfx::IndirectBufferHandle handle () const
 Returns the handle of the indirect buffer.
 
void bind (uint stage, bgfx::Access::Enum access) const
 

Private Types

using Base = GenericBuffer< bgfx::IndirectBufferHandle >
 

Constructor & Destructor Documentation

◆ IndirectBuffer()

vcl::IndirectBuffer::IndirectBuffer ( )
default

Empty constructor.

It creates an invalid IndirectBuffer object.

Member Function Documentation

◆ create()

void vcl::IndirectBuffer::create ( uint  num)
inline

Creates the indirect buffer with the given number of indirect calls.

If the buffer is already created (isValid() returns true), it is destroyed and a new one is created.

Parameters
[in]numthe number of indirect calls.

◆ handle()

bgfx::IndirectBufferHandle vcl::IndirectBuffer::handle ( ) const
inline

Returns the handle of the indirect buffer.

Returns
the handle of the indirect buffer.

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