Flint Engine
Modular C++20 2D game engine powered by SDL3
Loading...
Searching...
No Matches
Flint::PipelineConfig Struct Reference

Configuration parameters for Pipeline::initialize(). More...

#include <flint/graphics/pipelines/pipeline-base.h>

+ Collaboration diagram for Flint::PipelineConfig:

Public Attributes

Uint32 vertexStride = sizeof(float) * 4
 
bool enableBlending = true
 
SDL_GPUBlendFactor srcColorBlend = SDL_GPU_BLENDFACTOR_SRC_ALPHA
 
SDL_GPUBlendFactor dstColorBlend = SDL_GPU_BLENDFACTOR_ONE_MINUS_SRC_ALPHA
 
SDL_GPUBlendFactor srcAlphaBlend = SDL_GPU_BLENDFACTOR_ONE
 
SDL_GPUBlendFactor dstAlphaBlend = SDL_GPU_BLENDFACTOR_ZERO
 
bool enableDepthTest = false
 
bool enableDepthWrite = false
 
SDL_GPUCullMode cullMode = SDL_GPU_CULLMODE_NONE
 
SDL_GPUFillMode fillMode = SDL_GPU_FILLMODE_FILL
 
SDL_GPUTextureFormat colorFormat = SDL_GPU_TEXTUREFORMAT_B8G8R8A8_UNORM
 

Detailed Description

Configuration parameters for Pipeline::initialize().

Provides sensible defaults (alpha blending, no depth test, fill mode). Override individual fields before passing to Pipeline::initialize().

Definition at line 16 of file pipeline-base.h.

Member Data Documentation

◆ colorFormat

SDL_GPUTextureFormat Flint::PipelineConfig::colorFormat = SDL_GPU_TEXTUREFORMAT_B8G8R8A8_UNORM

Definition at line 31 of file pipeline-base.h.

◆ cullMode

SDL_GPUCullMode Flint::PipelineConfig::cullMode = SDL_GPU_CULLMODE_NONE

Definition at line 28 of file pipeline-base.h.

◆ dstAlphaBlend

SDL_GPUBlendFactor Flint::PipelineConfig::dstAlphaBlend = SDL_GPU_BLENDFACTOR_ZERO

Definition at line 23 of file pipeline-base.h.

◆ dstColorBlend

SDL_GPUBlendFactor Flint::PipelineConfig::dstColorBlend = SDL_GPU_BLENDFACTOR_ONE_MINUS_SRC_ALPHA

Definition at line 21 of file pipeline-base.h.

◆ enableBlending

bool Flint::PipelineConfig::enableBlending = true

Definition at line 19 of file pipeline-base.h.

◆ enableDepthTest

bool Flint::PipelineConfig::enableDepthTest = false

Definition at line 25 of file pipeline-base.h.

◆ enableDepthWrite

bool Flint::PipelineConfig::enableDepthWrite = false

Definition at line 26 of file pipeline-base.h.

◆ fillMode

SDL_GPUFillMode Flint::PipelineConfig::fillMode = SDL_GPU_FILLMODE_FILL

Definition at line 29 of file pipeline-base.h.

◆ srcAlphaBlend

SDL_GPUBlendFactor Flint::PipelineConfig::srcAlphaBlend = SDL_GPU_BLENDFACTOR_ONE

Definition at line 22 of file pipeline-base.h.

◆ srcColorBlend

SDL_GPUBlendFactor Flint::PipelineConfig::srcColorBlend = SDL_GPU_BLENDFACTOR_SRC_ALPHA

Definition at line 20 of file pipeline-base.h.

◆ vertexStride

Uint32 Flint::PipelineConfig::vertexStride = sizeof(float) * 4

Byte stride between consecutive vertices.

Definition at line 17 of file pipeline-base.h.


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