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

Layout structure for a single binding point of the pipeline layout descriptor. More...

#include <CeresEngine/RenderAPI/GPUPipelineLayout.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

GPUDescriptorType type = GPUDescriptorType::Undefined
 Resource view type for this layout binding.
 
GPUPipelineStages stages = GPUPipelineStage::Graphics
 Specifies which shader stages are affected by this layout binding.
 
UInt32 slot = 0
 Specifies the zero-based binding slot.
 
UInt32 set = 0
 Specifies the zero-based set slot. By default 0.
 
UInt32 arraySize = 1
 Specifies the number of binding slots for an array resource.
 

Detailed Description

Layout structure for a single binding point of the pipeline layout descriptor.

Member Function Documentation

◆ reflect()

template<typename Processor >
static constexpr void CeresEngine::GPUBindingDescriptor::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

◆ arraySize

UInt32 CeresEngine::GPUBindingDescriptor::arraySize = 1

Specifies the number of binding slots for an array resource.

By default 1.

Note
For Vulkan, this number specifies the size of an array of resources (e.g. an array of uniform buffers).

◆ set

UInt32 CeresEngine::GPUBindingDescriptor::set = 0

Specifies the zero-based set slot. By default 0.

◆ slot

UInt32 CeresEngine::GPUBindingDescriptor::slot = 0

Specifies the zero-based binding slot.

By default 0.

Note
For Vulkan, each binding slot of all layout bindings must have a different value within a pipeline layout.

◆ stages

GPUPipelineStages CeresEngine::GPUBindingDescriptor::stages = GPUPipelineStage::Graphics

Specifies which shader stages are affected by this layout binding.

By default 0. This can be a bitwise OR combination of the Stage bitmasks.

◆ type

GPUDescriptorType CeresEngine::GPUBindingDescriptor::type = GPUDescriptorType::Undefined

Resource view type for this layout binding.

By default ResourceType::Undefined.


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