Raven Engine v0.1
Loading...
Searching...
No Matches
Raven::IndexBuffer Class Referenceabstract

Interface representing an index buffer resource. More...

#include <IndexBuffer.h>

Inheritance diagram for Raven::IndexBuffer:
Raven::VulkanIndexBuffer

Public Member Functions

virtual ~IndexBuffer ()=default
virtual u32 GetCount () const =0
 Returns the number of indices stored in the buffer.
virtual u32 GetSize () const =0
 Returns the size of the buffer in bytes.

Static Public Member Functions

static Ref< IndexBufferCreate (void *data, u32 size)
 Factory method to create an index buffer with provided raw data.

Detailed Description

Interface representing an index buffer resource.

Provides methods to query the number of indices and the total buffer size. Concrete implementations handle GPU memory allocation and management.

Constructor & Destructor Documentation

◆ ~IndexBuffer()

virtual Raven::IndexBuffer::~IndexBuffer ( )
virtualdefault

Member Function Documentation

◆ Create()

Ref< IndexBuffer > Raven::IndexBuffer::Create ( void * data,
u32 size )
static

Factory method to create an index buffer with provided raw data.

Parameters
dataPointer to index data.
sizeSize of the data in bytes.
Returns
Reference-counted IndexBuffer instance.

◆ GetCount()

virtual u32 Raven::IndexBuffer::GetCount ( ) const
pure virtual

Returns the number of indices stored in the buffer.

Returns
Count of indices.

Implemented in Raven::VulkanIndexBuffer.

◆ GetSize()

virtual u32 Raven::IndexBuffer::GetSize ( ) const
pure virtual

Returns the size of the buffer in bytes.

Returns
Size in bytes.

Implemented in Raven::VulkanIndexBuffer.


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