Flutter Engine
The Flutter Engine
Classes | Public Member Functions | Public Attributes | List of all members
skgpu::graphite::DepthStencilSettings Struct Reference

#include <DrawTypes.h>

Classes

struct  Face
 

Public Member Functions

constexpr DepthStencilSettings ()=default
 
constexpr DepthStencilSettings (Face front, Face back, uint32_t stencilRef, bool stencilTest, CompareOp depthCompare, bool depthTest, bool depthWrite)
 
constexpr bool operator== (const DepthStencilSettings &that) const
 

Public Attributes

Face fFrontStencil
 
Face fBackStencil
 
uint32_t fStencilReferenceValue = 0
 
CompareOp fDepthCompareOp = CompareOp::kAlways
 
bool fStencilTestEnabled = false
 
bool fDepthTestEnabled = false
 
bool fDepthWriteEnabled = false
 

Detailed Description

Definition at line 175 of file DrawTypes.h.

Constructor & Destructor Documentation

◆ DepthStencilSettings() [1/2]

constexpr skgpu::graphite::DepthStencilSettings::DepthStencilSettings ( )
constexprdefault

◆ DepthStencilSettings() [2/2]

constexpr skgpu::graphite::DepthStencilSettings::DepthStencilSettings ( Face  front,
Face  back,
uint32_t  stencilRef,
bool  stencilTest,
CompareOp  depthCompare,
bool  depthTest,
bool  depthWrite 
)
inlineconstexpr

Member Function Documentation

◆ operator==()

constexpr bool skgpu::graphite::DepthStencilSettings::operator== ( const DepthStencilSettings that) const
inlineconstexpr

Definition at line 225 of file DrawTypes.h.

225 {
226 return this->fFrontStencil == that.fFrontStencil &&
227 this->fBackStencil == that.fBackStencil &&
228 this->fStencilReferenceValue == that.fStencilReferenceValue &&
229 this->fDepthCompareOp == that.fDepthCompareOp &&
230 this->fStencilTestEnabled == that.fStencilTestEnabled &&
231 this->fDepthTestEnabled == that.fDepthTestEnabled &&
232 this->fDepthWriteEnabled == that.fDepthWriteEnabled;
233 }

Member Data Documentation

◆ fBackStencil

Face skgpu::graphite::DepthStencilSettings::fBackStencil

Definition at line 236 of file DrawTypes.h.

◆ fDepthCompareOp

CompareOp skgpu::graphite::DepthStencilSettings::fDepthCompareOp = CompareOp::kAlways

Definition at line 238 of file DrawTypes.h.

◆ fDepthTestEnabled

bool skgpu::graphite::DepthStencilSettings::fDepthTestEnabled = false

Definition at line 240 of file DrawTypes.h.

◆ fDepthWriteEnabled

bool skgpu::graphite::DepthStencilSettings::fDepthWriteEnabled = false

Definition at line 241 of file DrawTypes.h.

◆ fFrontStencil

Face skgpu::graphite::DepthStencilSettings::fFrontStencil

Definition at line 235 of file DrawTypes.h.

◆ fStencilReferenceValue

uint32_t skgpu::graphite::DepthStencilSettings::fStencilReferenceValue = 0

Definition at line 237 of file DrawTypes.h.

◆ fStencilTestEnabled

bool skgpu::graphite::DepthStencilSettings::fStencilTestEnabled = false

Definition at line 239 of file DrawTypes.h.


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