Flutter Engine
 
Loading...
Searching...
No Matches
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.
 

Public Attributes

std::string name
 
size_t location = 0u
 
size_t binding = 0u
 Location, but for Vulkan.
 
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 41 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 use test Running tests that layout and measure text will not yield consistent results across various platforms Enabling this option will make font resolution default to the Ahem test font on all 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
RuntimeUniformDimensions dimensions
std::vector< uint8_t > struct_layout
std::optional< size_t > array_elements

References array_elements, bit_width, impeller::RuntimeUniformDimensions::cols, dimensions, impeller::RuntimeUniformDimensions::rows, and struct_layout.

Referenced by flutter::FragmentProgram::initFromAsset().

Member Data Documentation

◆ array_elements

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

◆ binding

size_t impeller::RuntimeUniformDescription::binding = 0u

Location, but for Vulkan.

Definition at line 45 of file runtime_types.h.

Referenced by impeller::RuntimeStage::RuntimeStage().

◆ bit_width

size_t impeller::RuntimeUniformDescription::bit_width = 0u

◆ dimensions

RuntimeUniformDimensions impeller::RuntimeUniformDescription::dimensions = {}

◆ location

size_t impeller::RuntimeUniformDescription::location = 0u

Definition at line 43 of file runtime_types.h.

Referenced by impeller::RuntimeStage::RuntimeStage().

◆ name

std::string impeller::RuntimeUniformDescription::name

◆ struct_float_count

size_t impeller::RuntimeUniformDescription::struct_float_count = 0u

Definition at line 51 of file runtime_types.h.

Referenced by impeller::RuntimeStage::RuntimeStage().

◆ struct_layout

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

◆ type


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