| Flutter Impeller |

Public Member Functions | Public Attributes | List of all members
impeller::DepthAttachmentDescriptor Struct Reference

`#include <formats.h>`

## Public Member Functions
constexpr bool | operator== (const DepthAttachmentDescriptor &o) const
constexpr size_t | GetHash () const

## Public Attributes
CompareFunction | depth_compare = CompareFunction::kAlways
bool | depth_write_enabled = false

## Detailed Description

Definition at line 594 of file formats.h.

## Member Function Documentation

## ◆ GetHash()

constexpr size_t impeller::DepthAttachmentDescriptor::GetHash | ( |  | ) | const
| inline constexpr

Definition at line 609 of file formats.h.

609 {
610 return fml::HashCombine(depth_compare, depth_write_enabled);
611 }
impeller::DepthAttachmentDescriptor::depth_compare
CompareFunction depth_compare
Definition: formats.h:598
impeller::DepthAttachmentDescriptor::depth_write_enabled
bool depth_write_enabled
Definition: formats.h:602

References depth_compare, and depth_write_enabled.

Referenced by std::hash< impeller::DepthAttachmentDescriptor >::operator()().

## ◆ operator==()

constexpr bool impeller::DepthAttachmentDescriptor::operator== | ( | const DepthAttachmentDescriptor & | o | ) | const
| inline constexpr

Definition at line 604 of file formats.h.

604 {
605 return depth_compare == o.depth_compare &&
606 depth_write_enabled == o.depth_write_enabled;
607 }

References depth_compare, and depth_write_enabled.

## Member Data Documentation

## ◆ depth_compare

CompareFunction impeller::DepthAttachmentDescriptor::depth_compare = CompareFunction::kAlways

Indicates how to compare the value with that in the depth buffer.

Definition at line 598 of file formats.h.

Referenced by impeller::ContentContextOptions::ApplyToPipelineDescriptor(), GetHash(), impeller::PipelineBuilder< VertexShader_, FragmentShader_ >::InitializePipelineDescriptorDefaults(), operator==(), and impeller::ToMTLDepthStencilDescriptor().

## ◆ depth_write_enabled

bool impeller::DepthAttachmentDescriptor::depth_write_enabled = false

Indicates when writes must be performed to the depth buffer.

Definition at line 602 of file formats.h.

Referenced by impeller::ContentContextOptions::ApplyToPipelineDescriptor(), GetHash(), and operator==().

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

- impeller/core/formats.h