Hymn to Beauty
C++ 3D Engine
Video::RawBuffer Class Referenceabstract

A large buffer from which buffers are sub-allocated. More...

#include <BufferAllocator.hpp>

Inheritance diagram for Video::RawBuffer:
Video::OpenGLRawBuffer Video::VulkanRawBuffer Video::WebGPURawBuffer

Public Member Functions

virtual ~RawBuffer ()
 Destructor. More...
 
virtual void Write (uint32_t offset, uint32_t size, const void *data)=0
 Write data to buffer. More...
 

Detailed Description

A large buffer from which buffers are sub-allocated.

Constructor & Destructor Documentation

◆ ~RawBuffer()

virtual Video::RawBuffer::~RawBuffer ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ Write()

virtual void Video::RawBuffer::Write ( uint32_t  offset,
uint32_t  size,
const void *  data 
)
pure virtual

Write data to buffer.

Parameters
offsetThe offset (in bytes) into the buffer to write at.
sizeThe size of the data to write (in bytes).
dataThe data to write.

Implemented in Video::OpenGLRawBuffer, Video::VulkanRawBuffer, and Video::WebGPURawBuffer.


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