Flutter Impeller
impeller::ShaderStageBufferLayout Struct Reference

#include <shader_types.h>

Public Member Functions

constexpr size_t GetHash () const
 
constexpr bool operator== (const ShaderStageBufferLayout &other) const
 

Public Attributes

size_t stride
 
size_t binding
 

Detailed Description

Definition at line 157 of file shader_types.h.

Member Function Documentation

◆ GetHash()

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

Definition at line 161 of file shader_types.h.

161 { return fml::HashCombine(stride, binding); }

References binding, and stride.

◆ operator==()

constexpr bool impeller::ShaderStageBufferLayout::operator== ( const ShaderStageBufferLayout other) const
inlineconstexpr

Definition at line 163 of file shader_types.h.

163  {
164  return stride == other.stride && //
165  binding == other.binding;
166  }

References binding, and stride.

Member Data Documentation

◆ binding

size_t impeller::ShaderStageBufferLayout::binding

Definition at line 159 of file shader_types.h.

Referenced by GetHash(), and operator==().

◆ stride

size_t impeller::ShaderStageBufferLayout::stride

Definition at line 158 of file shader_types.h.

Referenced by GetHash(), operator==(), and impeller::testing::TEST_P().


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