evan 2026.1.4
Evan
Loading...
Searching...
No Matches
evan::Renderer::PipelineVariant Struct Reference

Identifies one graphics pipeline variant. More...

#include <headers/evan/Renderer.hpp>

Public Member Functions

bool operator< (const PipelineVariant &other) const
 Orders variants so they can be stored in a std::map.
 

Public Attributes

uint32_t shaderID = 0
 
BlendMode blendMode = BlendMode::Opaque
 

Detailed Description

Identifies one graphics pipeline variant.

A variant is the pair of a shader and a blend mode: the opaque and the alpha-blended pipelines of a shader share their shader modules, layout and vertex input, and differ only in the fixed-function color blend and depth write state.

Definition at line 450 of file Renderer.hpp.

Member Function Documentation

◆ operator<()

bool evan::Renderer::PipelineVariant::operator< ( const PipelineVariant &  other) const
inline

Orders variants so they can be stored in a std::map.

Parameters
otherThe variant to compare against.
Returns
True when this variant sorts before other.

Definition at line 460 of file Renderer.hpp.

Member Data Documentation

◆ blendMode

BlendMode evan::Renderer::PipelineVariant::blendMode = BlendMode::Opaque

Definition at line 452 of file Renderer.hpp.

◆ shaderID

uint32_t evan::Renderer::PipelineVariant::shaderID = 0

Definition at line 451 of file Renderer.hpp.


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