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

Compute pipeline descriptor structure. More...

#include <CeresEngine/RenderAPI/GPUComputePipeline.hpp>

Public Member Functions

 GPUComputePipelineDescriptor () noexcept=default
 
 GPUComputePipelineDescriptor (GPUShaderProgramPtr shaderProgram, GPUPipelineLayoutPtr pipelineLayout=nullptr) noexcept
 Constructor to initialize the entire descriptor.
 

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

GPUShaderProgramPtr shaderProgram = nullptr
 Pointer to the shader program for the compute pipeline.
 
GPUPipelineLayoutPtr pipelineLayout = nullptr
 Pointer to an optional pipeline layout for the graphics pipeline.
 
String name
 A user-facing name for the pipeline.
 

Detailed Description

Compute pipeline descriptor structure.

Constructor & Destructor Documentation

◆ GPUComputePipelineDescriptor() [1/2]

CeresEngine::GPUComputePipelineDescriptor::GPUComputePipelineDescriptor ( )
defaultnoexcept

◆ GPUComputePipelineDescriptor() [2/2]

CeresEngine::GPUComputePipelineDescriptor::GPUComputePipelineDescriptor ( GPUShaderProgramPtr  shaderProgram,
GPUPipelineLayoutPtr  pipelineLayout = nullptr 
)
inlineexplicitnoexcept

Constructor to initialize the entire descriptor.

Member Function Documentation

◆ reflect()

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

◆ name

String CeresEngine::GPUComputePipelineDescriptor::name

A user-facing name for the pipeline.

This is only used for debugging.

◆ pipelineLayout

GPUPipelineLayoutPtr CeresEngine::GPUComputePipelineDescriptor::pipelineLayout = nullptr

Pointer to an optional pipeline layout for the graphics pipeline.

Remarks
This layout determines at which slots buffer resources can be bound.

◆ shaderProgram

GPUShaderProgramPtr CeresEngine::GPUComputePipelineDescriptor::shaderProgram = nullptr

Pointer to the shader program for the compute pipeline.


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