Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
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
 
VertexInputRate input_rate = VertexInputRate::kVertex
 

Detailed Description

Definition at line 213 of file shader_types.h.

Member Function Documentation

◆ GetHash()

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

Definition at line 221 of file shader_types.h.

References binding, fml::HashCombine(), input_rate, and stride.

◆ operator==()

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

Definition at line 225 of file shader_types.h.

225 {
226 return stride == other.stride && //
227 binding == other.binding && //
228 input_rate == other.input_rate;
229 }

References binding, input_rate, and stride.

Member Data Documentation

◆ binding

size_t impeller::ShaderStageBufferLayout::binding

Definition at line 215 of file shader_types.h.

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

◆ input_rate

VertexInputRate impeller::ShaderStageBufferLayout::input_rate = VertexInputRate::kVertex

The rate at which this binding advances during a draw. Defaults to per-vertex; an instanced draw reads per-instance bindings once per instance.

Definition at line 219 of file shader_types.h.

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

◆ stride

size_t impeller::ShaderStageBufferLayout::stride

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