CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::GPUBufferDescriptor Struct Referencefinal

Hardware buffer descriptor structure. More...

#include <CeresEngine/RenderAPI/GPUBuffer.hpp>

Static Public Member Functions

template<typename Processor >
static constexpr void reflect (Processor &&RTTI)
 Executes the given processor for every field of the struct.
 

Public Attributes

GPUBufferType type = GPUBufferType::Vertex
 Hardware buffer type. By default BufferType::Vertex.
 
GPUBufferUsage usage = GPUBufferUsageFlag::Automatic
 The buffer usage hints.
 
GPUMemoryProperties memoryProperty = GPUMemoryProperty::HostVisible
 The buffer memory properties.
 
GPUBufferSize size = 0
 Buffer size (in bytes). By default 0.
 
String name
 A user-facing name for the buffer. This is only used for debugging.
 

Detailed Description

Hardware buffer descriptor structure.

Member Function Documentation

◆ reflect()

template<typename Processor >
static constexpr void CeresEngine::GPUBufferDescriptor::reflect ( Processor &&  RTTI)
inlinestaticconstexpr

Executes the given processor for every field of the struct.

Parameters
RTTIThe processor to be ran for every field.

Member Data Documentation

◆ memoryProperty

GPUMemoryProperties CeresEngine::GPUBufferDescriptor::memoryProperty = GPUMemoryProperty::HostVisible

The buffer memory properties.

◆ name

String CeresEngine::GPUBufferDescriptor::name

A user-facing name for the buffer. This is only used for debugging.

◆ size

GPUBufferSize CeresEngine::GPUBufferDescriptor::size = 0

Buffer size (in bytes). By default 0.

◆ type

GPUBufferType CeresEngine::GPUBufferDescriptor::type = GPUBufferType::Vertex

Hardware buffer type. By default BufferType::Vertex.

◆ usage

GPUBufferUsage CeresEngine::GPUBufferDescriptor::usage = GPUBufferUsageFlag::Automatic

The buffer usage hints.


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