Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
impeller::RuntimeUniformDescription Struct Reference

#include <runtime_types.h>

Public Member Functions

size_t GetSize () const
 Computes the total number of bytes that this uniform requires. More...
 

Public Attributes

std::string name
 
size_t location = 0u
 
size_t binding = 0u
 Location, but for Vulkan. More...
 
RuntimeUniformType type = RuntimeUniformType::kFloat
 
RuntimeUniformDimensions dimensions = {}
 
size_t bit_width = 0u
 
std::optional< size_t > array_elements
 
std::vector< uint8_t > struct_layout = {}
 
size_t struct_float_count = 0u
 

Detailed Description

Definition at line 39 of file runtime_types.h.

Member Function Documentation

◆ GetSize()

size_t impeller::RuntimeUniformDescription::GetSize ( ) const

Computes the total number of bytes that this uniform requires.

Definition at line 9 of file runtime_types.cc.

9 {
10 size_t size = dimensions.rows * dimensions.cols * bit_width / 8u;
11 if (array_elements.value_or(0) > 0) {
12 // Covered by check on the line above.
13 // NOLINTNEXTLINE(bugprone-unchecked-optional-access)
14 size *= array_elements.value();
15 }
16 size += sizeof(float) * struct_layout.size();
17 return size;
18}
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
Definition: switches.h:259
RuntimeUniformDimensions dimensions
Definition: runtime_types.h:45
std::vector< uint8_t > struct_layout
Definition: runtime_types.h:48
std::optional< size_t > array_elements
Definition: runtime_types.h:47

Member Data Documentation

◆ array_elements

std::optional<size_t> impeller::RuntimeUniformDescription::array_elements

Definition at line 47 of file runtime_types.h.

◆ binding

size_t impeller::RuntimeUniformDescription::binding = 0u

Location, but for Vulkan.

Definition at line 43 of file runtime_types.h.

◆ bit_width

size_t impeller::RuntimeUniformDescription::bit_width = 0u

Definition at line 46 of file runtime_types.h.

◆ dimensions

RuntimeUniformDimensions impeller::RuntimeUniformDescription::dimensions = {}

Definition at line 45 of file runtime_types.h.

◆ location

size_t impeller::RuntimeUniformDescription::location = 0u

Definition at line 41 of file runtime_types.h.

◆ name

std::string impeller::RuntimeUniformDescription::name

Definition at line 40 of file runtime_types.h.

◆ struct_float_count

size_t impeller::RuntimeUniformDescription::struct_float_count = 0u

Definition at line 49 of file runtime_types.h.

◆ struct_layout

std::vector<uint8_t> impeller::RuntimeUniformDescription::struct_layout = {}

Definition at line 48 of file runtime_types.h.

◆ type

RuntimeUniformType impeller::RuntimeUniformDescription::type = RuntimeUniformType::kFloat

Definition at line 44 of file runtime_types.h.


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