Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
impeller::StencilAttachmentDescriptor Struct Reference

#include <formats.h>

Public Member Functions

constexpr bool operator== (const StencilAttachmentDescriptor &o) const
 
constexpr size_t GetHash () const
 

Public Attributes

CompareFunction stencil_compare = CompareFunction::kAlways
 
StencilOperation stencil_failure = StencilOperation::kKeep
 
StencilOperation depth_failure = StencilOperation::kKeep
 
StencilOperation depth_stencil_pass = StencilOperation::kKeep
 
uint32_t read_mask = ~0
 
uint32_t write_mask = ~0
 

Detailed Description

Definition at line 862 of file formats.h.

Member Function Documentation

◆ GetHash()

constexpr size_t impeller::StencilAttachmentDescriptor::GetHash ( ) const
inlineconstexpr

◆ operator==()

constexpr bool impeller::StencilAttachmentDescriptor::operator== ( const StencilAttachmentDescriptor o) const
inlineconstexpr

Definition at line 894 of file formats.h.

894 {
895 return stencil_compare == o.stencil_compare &&
896 stencil_failure == o.stencil_failure &&
897 depth_failure == o.depth_failure &&
898 depth_stencil_pass == o.depth_stencil_pass &&
899 read_mask == o.read_mask && write_mask == o.write_mask;
900 }

References depth_failure, depth_stencil_pass, read_mask, stencil_compare, stencil_failure, and write_mask.

Member Data Documentation

◆ depth_failure

StencilOperation impeller::StencilAttachmentDescriptor::depth_failure = StencilOperation::kKeep

Indicates what to do when the stencil test passes but the depth test fails.

Definition at line 877 of file formats.h.

Referenced by impeller::ConfigureStencil(), GetHash(), InternalFlutterGpu_RenderPass_SetStencilConfig(), operator==(), impeller::ToMTLStencilDescriptor(), and impeller::ToVKStencilOpState().

◆ depth_stencil_pass

StencilOperation impeller::StencilAttachmentDescriptor::depth_stencil_pass = StencilOperation::kKeep

◆ read_mask

uint32_t impeller::StencilAttachmentDescriptor::read_mask = ~0

The mask applied to the reference and stencil buffer values before performing the stencil_compare operation.

Definition at line 887 of file formats.h.

Referenced by impeller::ConfigureStencil(), GetHash(), InternalFlutterGpu_RenderPass_SetStencilConfig(), operator==(), impeller::ToMTLStencilDescriptor(), and impeller::ToVKStencilOpState().

◆ stencil_compare

CompareFunction impeller::StencilAttachmentDescriptor::stencil_compare = CompareFunction::kAlways

◆ stencil_failure

◆ write_mask

uint32_t impeller::StencilAttachmentDescriptor::write_mask = ~0

The mask applied to the new stencil value before it is written into the stencil buffer.

Definition at line 892 of file formats.h.

Referenced by impeller::ConfigureStencil(), GetHash(), InternalFlutterGpu_RenderPass_SetStencilConfig(), operator==(), impeller::ToMTLStencilDescriptor(), and impeller::ToVKStencilOpState().


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