Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
flutter::gpu::Shader::UniformBinding Struct Reference

#include <shader.h>

Public Member Functions

const impeller::ShaderStructMemberMetadataGetMemberMetadata (const std::string &name) const
 

Public Attributes

impeller::ShaderUniformSlot slot
 
impeller::ShaderMetadata metadata
 
size_t size_in_bytes = 0
 

Detailed Description

Definition at line 28 of file shader.h.

Member Function Documentation

◆ GetMemberMetadata()

const impeller::ShaderStructMemberMetadata * flutter::gpu::Shader::UniformBinding::GetMemberMetadata ( const std::string &  name) const

Definition at line 20 of file shader.cc.

20 {
21 auto result =
22 std::find_if(metadata.members.begin(), metadata.members.end(),
24 return member.name == name;
25 });
26 if (result == metadata.members.end()) {
27 return nullptr;
28 }
29 return &(*result);
30}
GAsyncResult * result
DEF_SWITCHES_START aot vmservice shared library name
Definition: switches.h:32
impeller::ShaderMetadata metadata
Definition: shader.h:30
std::vector< ShaderStructMemberMetadata > members
Definition: shader_types.h:75

Member Data Documentation

◆ metadata

impeller::ShaderMetadata flutter::gpu::Shader::UniformBinding::metadata

Definition at line 30 of file shader.h.

◆ size_in_bytes

size_t flutter::gpu::Shader::UniformBinding::size_in_bytes = 0

Definition at line 31 of file shader.h.

◆ slot

impeller::ShaderUniformSlot flutter::gpu::Shader::UniformBinding::slot

Definition at line 29 of file shader.h.


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