Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
Divide::RenderStateBlock Struct Reference

#include <RenderStateBlock.h>

Public Member Functions

bool operator== (const RenderStateBlock &) const =default
 

Public Attributes

P32 _colourWrite {P32_FLAGS_TRUE}
 
F32 _zBias {0.f}
 
F32 _zUnits {0.f}
 
U32 _tessControlPoints {4u}
 
U32 _stencilRef {0u}
 
U32 _stencilMask {0xFFFFFFFF}
 
U32 _stencilWriteMask {0xFFFFFFFF}
 
ComparisonFunction _zFunc {ComparisonFunction::LEQUAL}
 
StencilOperation _stencilFailOp {StencilOperation::KEEP}
 
StencilOperation _stencilPassOp {StencilOperation::KEEP}
 
StencilOperation _stencilZFailOp {StencilOperation::KEEP}
 
ComparisonFunction _stencilFunc {ComparisonFunction::NEVER}
 
CullMode _cullMode {CullMode::BACK}
 
FillMode _fillMode {FillMode::SOLID}
 
bool _frontFaceCCW {true}
 
bool _scissorTestEnabled {false}
 
bool _depthTestEnabled {true}
 
bool _depthWriteEnabled {true}
 
bool _stencilEnabled {false}
 
bool _primitiveRestartEnabled { false }
 
bool _rasterizationEnabled { true }
 

Detailed Description

Definition at line 52 of file RenderStateBlock.h.

Member Function Documentation

◆ operator==()

bool Divide::RenderStateBlock::operator== ( const RenderStateBlock ) const
default

Member Data Documentation

◆ _colourWrite

P32 Divide::RenderStateBlock::_colourWrite {P32_FLAGS_TRUE}

Definition at line 54 of file RenderStateBlock.h.

◆ _cullMode

CullMode Divide::RenderStateBlock::_cullMode {CullMode::BACK}

Definition at line 68 of file RenderStateBlock.h.

◆ _depthTestEnabled

bool Divide::RenderStateBlock::_depthTestEnabled {true}

Definition at line 73 of file RenderStateBlock.h.

◆ _depthWriteEnabled

bool Divide::RenderStateBlock::_depthWriteEnabled {true}

Definition at line 74 of file RenderStateBlock.h.

◆ _fillMode

FillMode Divide::RenderStateBlock::_fillMode {FillMode::SOLID}

Definition at line 69 of file RenderStateBlock.h.

◆ _frontFaceCCW

bool Divide::RenderStateBlock::_frontFaceCCW {true}

Definition at line 71 of file RenderStateBlock.h.

◆ _primitiveRestartEnabled

bool Divide::RenderStateBlock::_primitiveRestartEnabled { false }

Definition at line 76 of file RenderStateBlock.h.

◆ _rasterizationEnabled

bool Divide::RenderStateBlock::_rasterizationEnabled { true }

Definition at line 77 of file RenderStateBlock.h.

◆ _scissorTestEnabled

bool Divide::RenderStateBlock::_scissorTestEnabled {false}

Definition at line 72 of file RenderStateBlock.h.

◆ _stencilEnabled

bool Divide::RenderStateBlock::_stencilEnabled {false}

Definition at line 75 of file RenderStateBlock.h.

◆ _stencilFailOp

StencilOperation Divide::RenderStateBlock::_stencilFailOp {StencilOperation::KEEP}

Definition at line 63 of file RenderStateBlock.h.

◆ _stencilFunc

ComparisonFunction Divide::RenderStateBlock::_stencilFunc {ComparisonFunction::NEVER}

Definition at line 66 of file RenderStateBlock.h.

◆ _stencilMask

U32 Divide::RenderStateBlock::_stencilMask {0xFFFFFFFF}

Definition at line 59 of file RenderStateBlock.h.

◆ _stencilPassOp

StencilOperation Divide::RenderStateBlock::_stencilPassOp {StencilOperation::KEEP}

Definition at line 64 of file RenderStateBlock.h.

◆ _stencilRef

U32 Divide::RenderStateBlock::_stencilRef {0u}

Definition at line 58 of file RenderStateBlock.h.

◆ _stencilWriteMask

U32 Divide::RenderStateBlock::_stencilWriteMask {0xFFFFFFFF}

Definition at line 60 of file RenderStateBlock.h.

◆ _stencilZFailOp

StencilOperation Divide::RenderStateBlock::_stencilZFailOp {StencilOperation::KEEP}

Definition at line 65 of file RenderStateBlock.h.

◆ _tessControlPoints

U32 Divide::RenderStateBlock::_tessControlPoints {4u}

Definition at line 57 of file RenderStateBlock.h.

◆ _zBias

F32 Divide::RenderStateBlock::_zBias {0.f}

Definition at line 55 of file RenderStateBlock.h.

◆ _zFunc

ComparisonFunction Divide::RenderStateBlock::_zFunc {ComparisonFunction::LEQUAL}

Definition at line 62 of file RenderStateBlock.h.

◆ _zUnits

F32 Divide::RenderStateBlock::_zUnits {0.f}

Definition at line 56 of file RenderStateBlock.h.


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