#include <runtime_types.h>
Public Member Functions | |
| size_t | GetDartSize () const |
| Computes the total number of bytes that this uniform requires for representation in the Dart float buffer. | |
| size_t | GetGPUSize () const |
| Computes the total number of bytes that this uniform requires for representation in the GPU. | |
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< RuntimePaddingType > | padding_layout = {} |
| std::vector< StructField > | struct_fields = {} |
| size_t | struct_float_count = 0u |
Definition at line 52 of file runtime_types.h.
| size_t impeller::RuntimeUniformDescription::GetDartSize | ( | ) | const |
Computes the total number of bytes that this uniform requires for representation in the Dart float buffer.
Definition at line 9 of file runtime_types.cc.
References array_elements, bit_width, impeller::RuntimeUniformDimensions::cols, dimensions, impeller::kFloat, padding_layout, and impeller::RuntimeUniformDimensions::rows.
Referenced by flutter::FragmentProgram::initFromAsset().
| size_t impeller::RuntimeUniformDescription::GetGPUSize | ( | ) | const |
Computes the total number of bytes that this uniform requires for representation in the GPU.
Definition at line 28 of file runtime_types.cc.
References array_elements, bit_width, impeller::RuntimeUniformDimensions::cols, dimensions, padding_layout, and impeller::RuntimeUniformDimensions::rows.
Referenced by impeller::RuntimeEffectContents::EmplaceUniform(), and impeller::testing::TEST_P().
| std::optional<size_t> impeller::RuntimeUniformDescription::array_elements |
Definition at line 60 of file runtime_types.h.
Referenced by impeller::RuntimeStage::Create(), GetDartSize(), GetGPUSize(), and impeller::MakeShaderMetadata().
| size_t impeller::RuntimeUniformDescription::binding = 0u |
Location, but for Vulkan.
Definition at line 56 of file runtime_types.h.
Referenced by impeller::RuntimeStage::Create().
| size_t impeller::RuntimeUniformDescription::bit_width = 0u |
Definition at line 59 of file runtime_types.h.
Referenced by impeller::RuntimeStage::Create(), impeller::RuntimeEffectContents::EmplaceUniform(), GetDartSize(), GetGPUSize(), and impeller::MakeShaderMetadata().
| RuntimeUniformDimensions impeller::RuntimeUniformDescription::dimensions = {} |
Definition at line 58 of file runtime_types.h.
Referenced by impeller::RuntimeStage::Create(), GetDartSize(), GetGPUSize(), and impeller::MakeShaderMetadata().
| size_t impeller::RuntimeUniformDescription::location = 0u |
Definition at line 54 of file runtime_types.h.
Referenced by impeller::RuntimeStage::Create().
| std::string impeller::RuntimeUniformDescription::name |
Definition at line 53 of file runtime_types.h.
Referenced by impeller::RuntimeStage::Create(), and impeller::MakeShaderMetadata().
| std::vector<RuntimePaddingType> impeller::RuntimeUniformDescription::padding_layout = {} |
Definition at line 61 of file runtime_types.h.
Referenced by impeller::RuntimeStage::Create(), impeller::RuntimeEffectContents::EmplaceUniform(), GetDartSize(), GetGPUSize(), and impeller::testing::TEST_P().
| std::vector<StructField> impeller::RuntimeUniformDescription::struct_fields = {} |
Definition at line 64 of file runtime_types.h.
Referenced by impeller::RuntimeStage::Create(), and impeller::testing::TEST_P().
| size_t impeller::RuntimeUniformDescription::struct_float_count = 0u |
Definition at line 65 of file runtime_types.h.
Referenced by impeller::RuntimeStage::Create(), and impeller::testing::TEST_P().
| RuntimeUniformType impeller::RuntimeUniformDescription::type = RuntimeUniformType::kFloat |
Definition at line 57 of file runtime_types.h.
Referenced by impeller::RuntimeStage::Create(), flutter::FragmentProgram::initFromAsset(), impeller::MakeShaderMetadata(), and impeller::testing::TEST_P().