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

#include <DrawTypes.h>

Public Member Functions

constexpr Face ()=default
 
constexpr Face (StencilOp stencilFail, StencilOp depthFail, StencilOp dsPass, CompareOp compare, uint32_t readMask, uint32_t writeMask)
 
constexpr bool operator== (const Face &that) const
 

Public Attributes

StencilOp fStencilFailOp = StencilOp::kKeep
 
StencilOp fDepthFailOp = StencilOp::kKeep
 
StencilOp fDepthStencilPassOp = StencilOp::kKeep
 
CompareOp fCompareOp = CompareOp::kAlways
 
uint32_t fReadMask = 0xffffffff
 
uint32_t fWriteMask = 0xffffffff
 

Detailed Description

Definition at line 177 of file DrawTypes.h.

Constructor & Destructor Documentation

◆ Face() [1/2]

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

◆ Face() [2/2]

constexpr skgpu::graphite::DepthStencilSettings::Face::Face ( StencilOp  stencilFail,
StencilOp  depthFail,
StencilOp  dsPass,
CompareOp  compare,
uint32_t  readMask,
uint32_t  writeMask 
)
inlineconstexpr

Definition at line 179 of file DrawTypes.h.

185 : fStencilFailOp(stencilFail)
186 , fDepthFailOp(depthFail)
187 , fDepthStencilPassOp(dsPass)
189 , fReadMask(readMask)
190 , fWriteMask(writeMask) {}
int compare(const void *untyped_lhs, const void *untyped_rhs)
Definition: skdiff.h:161

Member Function Documentation

◆ operator==()

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

Definition at line 199 of file DrawTypes.h.

199 {
200 return this->fStencilFailOp == that.fStencilFailOp &&
201 this->fDepthFailOp == that.fDepthFailOp &&
202 this->fDepthStencilPassOp == that.fDepthStencilPassOp &&
203 this->fCompareOp == that.fCompareOp &&
204 this->fReadMask == that.fReadMask &&
205 this->fWriteMask == that.fWriteMask;
206 }

Member Data Documentation

◆ fCompareOp

CompareOp skgpu::graphite::DepthStencilSettings::Face::fCompareOp = CompareOp::kAlways

Definition at line 195 of file DrawTypes.h.

◆ fDepthFailOp

StencilOp skgpu::graphite::DepthStencilSettings::Face::fDepthFailOp = StencilOp::kKeep

Definition at line 193 of file DrawTypes.h.

◆ fDepthStencilPassOp

StencilOp skgpu::graphite::DepthStencilSettings::Face::fDepthStencilPassOp = StencilOp::kKeep

Definition at line 194 of file DrawTypes.h.

◆ fReadMask

uint32_t skgpu::graphite::DepthStencilSettings::Face::fReadMask = 0xffffffff

Definition at line 196 of file DrawTypes.h.

◆ fStencilFailOp

StencilOp skgpu::graphite::DepthStencilSettings::Face::fStencilFailOp = StencilOp::kKeep

Definition at line 192 of file DrawTypes.h.

◆ fWriteMask

uint32_t skgpu::graphite::DepthStencilSettings::Face::fWriteMask = 0xffffffff

Definition at line 197 of file DrawTypes.h.


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