Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
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 604 of file formats.h.

Member Function Documentation

◆ GetHash()

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

Definition at line 644 of file formats.h.

◆ operator==()

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

Definition at line 636 of file formats.h.

636 {
637 return stencil_compare == o.stencil_compare &&
638 stencil_failure == o.stencil_failure &&
639 depth_failure == o.depth_failure &&
640 depth_stencil_pass == o.depth_stencil_pass &&
641 read_mask == o.read_mask && write_mask == o.write_mask;
642 }

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 619 of file formats.h.

◆ depth_stencil_pass

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

Indicates what to do when both the stencil and depth tests pass.

Definition at line 623 of file formats.h.

◆ 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 629 of file formats.h.

◆ stencil_compare

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

Indicates the operation to perform between the reference value and the value in the stencil buffer. Both values have the read_mask applied to them before performing this operation.

Definition at line 610 of file formats.h.

◆ stencil_failure

StencilOperation impeller::StencilAttachmentDescriptor::stencil_failure = StencilOperation::kKeep

Indicates what to do when the stencil test has failed.

Definition at line 614 of file formats.h.

◆ 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 634 of file formats.h.


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