diff --git a/engine/src/flutter/impeller/docs/specialization_constants.md b/engine/src/flutter/impeller/docs/specialization_constants.md index ca20f7eace..431f1b8902 100644 --- a/engine/src/flutter/impeller/docs/specialization_constants.md +++ b/engine/src/flutter/impeller/docs/specialization_constants.md @@ -58,7 +58,7 @@ Instead of using a runtime check, we can create a specialization constant that i shader. This constant will be `1` if decal is supported and `0` otherwise. ```glsl -layout(constant_id = 0) const int supports_decal = 1; +layout(constant_id = 0) const float supports_decal = 1.0; vec4 Sample(sampler2D sampler, vec2 coord) { if (supports_decal) { @@ -77,7 +77,7 @@ Immediately we realize a number of benefits: ## Implementation -Only 32bit ints are supported as const values and can be used to represent: +Const values are floats and can be used to represent: * true/false via 0/1. * function selection, such as advanced blends. The specialization value maps to a specific blend function. For example, 0 maps to screen and 1 to overlay via a giant if/else macro. diff --git a/engine/src/flutter/impeller/entity/contents/content_context.cc b/engine/src/flutter/impeller/entity/contents/content_context.cc index 3081469c45..00a674a1c0 100644 --- a/engine/src/flutter/impeller/entity/contents/content_context.cc +++ b/engine/src/flutter/impeller/entity/contents/content_context.cc @@ -197,8 +197,8 @@ ContentContext::ContentContext( .primitive_type = PrimitiveType::kTriangleStrip, .color_attachment_pixel_format = context_->GetCapabilities()->GetDefaultColorFormat()}; - const auto supports_decal = - context_->GetCapabilities()->SupportsDecalSamplerAddressMode(); + const auto supports_decal = static_cast( + context_->GetCapabilities()->SupportsDecalSamplerAddressMode()); #ifdef IMPELLER_DEBUG checkerboard_pipelines_.CreateDefault(*context_, options); @@ -221,96 +221,96 @@ ContentContext::ContentContext( if (context_->GetCapabilities()->SupportsFramebufferFetch()) { framebuffer_blend_color_pipelines_.CreateDefault( *context_, options_trianglestrip, - {static_cast(BlendSelectValues::kColor), supports_decal}); + {static_cast(BlendSelectValues::kColor), supports_decal}); framebuffer_blend_colorburn_pipelines_.CreateDefault( *context_, options_trianglestrip, - {static_cast(BlendSelectValues::kColorBurn), supports_decal}); + {static_cast(BlendSelectValues::kColorBurn), supports_decal}); framebuffer_blend_colordodge_pipelines_.CreateDefault( *context_, options_trianglestrip, - {static_cast(BlendSelectValues::kColorDodge), supports_decal}); + {static_cast(BlendSelectValues::kColorDodge), supports_decal}); framebuffer_blend_darken_pipelines_.CreateDefault( *context_, options_trianglestrip, - {static_cast(BlendSelectValues::kDarken), supports_decal}); + {static_cast(BlendSelectValues::kDarken), supports_decal}); framebuffer_blend_difference_pipelines_.CreateDefault( *context_, options_trianglestrip, - {static_cast(BlendSelectValues::kDifference), supports_decal}); + {static_cast(BlendSelectValues::kDifference), supports_decal}); framebuffer_blend_exclusion_pipelines_.CreateDefault( *context_, options_trianglestrip, - {static_cast(BlendSelectValues::kExclusion), supports_decal}); + {static_cast(BlendSelectValues::kExclusion), supports_decal}); framebuffer_blend_hardlight_pipelines_.CreateDefault( *context_, options_trianglestrip, - {static_cast(BlendSelectValues::kHardLight), supports_decal}); + {static_cast(BlendSelectValues::kHardLight), supports_decal}); framebuffer_blend_hue_pipelines_.CreateDefault( *context_, options_trianglestrip, - {static_cast(BlendSelectValues::kHue), supports_decal}); + {static_cast(BlendSelectValues::kHue), supports_decal}); framebuffer_blend_lighten_pipelines_.CreateDefault( *context_, options_trianglestrip, - {static_cast(BlendSelectValues::kLighten), supports_decal}); + {static_cast(BlendSelectValues::kLighten), supports_decal}); framebuffer_blend_luminosity_pipelines_.CreateDefault( *context_, options_trianglestrip, - {static_cast(BlendSelectValues::kLuminosity), supports_decal}); + {static_cast(BlendSelectValues::kLuminosity), supports_decal}); framebuffer_blend_multiply_pipelines_.CreateDefault( *context_, options_trianglestrip, - {static_cast(BlendSelectValues::kMultiply), supports_decal}); + {static_cast(BlendSelectValues::kMultiply), supports_decal}); framebuffer_blend_overlay_pipelines_.CreateDefault( *context_, options_trianglestrip, - {static_cast(BlendSelectValues::kOverlay), supports_decal}); + {static_cast(BlendSelectValues::kOverlay), supports_decal}); framebuffer_blend_saturation_pipelines_.CreateDefault( *context_, options_trianglestrip, - {static_cast(BlendSelectValues::kSaturation), supports_decal}); + {static_cast(BlendSelectValues::kSaturation), supports_decal}); framebuffer_blend_screen_pipelines_.CreateDefault( *context_, options_trianglestrip, - {static_cast(BlendSelectValues::kScreen), supports_decal}); + {static_cast(BlendSelectValues::kScreen), supports_decal}); framebuffer_blend_softlight_pipelines_.CreateDefault( *context_, options_trianglestrip, - {static_cast(BlendSelectValues::kSoftLight), supports_decal}); + {static_cast(BlendSelectValues::kSoftLight), supports_decal}); } blend_color_pipelines_.CreateDefault( *context_, options_trianglestrip, - {static_cast(BlendSelectValues::kColor), supports_decal}); + {static_cast(BlendSelectValues::kColor), supports_decal}); blend_colorburn_pipelines_.CreateDefault( *context_, options_trianglestrip, - {static_cast(BlendSelectValues::kColorBurn), supports_decal}); + {static_cast(BlendSelectValues::kColorBurn), supports_decal}); blend_colordodge_pipelines_.CreateDefault( *context_, options_trianglestrip, - {static_cast(BlendSelectValues::kColorDodge), supports_decal}); + {static_cast(BlendSelectValues::kColorDodge), supports_decal}); blend_darken_pipelines_.CreateDefault( *context_, options_trianglestrip, - {static_cast(BlendSelectValues::kDarken), supports_decal}); + {static_cast(BlendSelectValues::kDarken), supports_decal}); blend_difference_pipelines_.CreateDefault( *context_, options_trianglestrip, - {static_cast(BlendSelectValues::kDifference), supports_decal}); + {static_cast(BlendSelectValues::kDifference), supports_decal}); blend_exclusion_pipelines_.CreateDefault( *context_, options_trianglestrip, - {static_cast(BlendSelectValues::kExclusion), supports_decal}); + {static_cast(BlendSelectValues::kExclusion), supports_decal}); blend_hardlight_pipelines_.CreateDefault( *context_, options_trianglestrip, - {static_cast(BlendSelectValues::kHardLight), supports_decal}); + {static_cast(BlendSelectValues::kHardLight), supports_decal}); blend_hue_pipelines_.CreateDefault( *context_, options_trianglestrip, - {static_cast(BlendSelectValues::kHue), supports_decal}); + {static_cast(BlendSelectValues::kHue), supports_decal}); blend_lighten_pipelines_.CreateDefault( *context_, options_trianglestrip, - {static_cast(BlendSelectValues::kLighten), supports_decal}); + {static_cast(BlendSelectValues::kLighten), supports_decal}); blend_luminosity_pipelines_.CreateDefault( *context_, options_trianglestrip, - {static_cast(BlendSelectValues::kLuminosity), supports_decal}); + {static_cast(BlendSelectValues::kLuminosity), supports_decal}); blend_multiply_pipelines_.CreateDefault( *context_, options_trianglestrip, - {static_cast(BlendSelectValues::kMultiply), supports_decal}); + {static_cast(BlendSelectValues::kMultiply), supports_decal}); blend_overlay_pipelines_.CreateDefault( *context_, options_trianglestrip, - {static_cast(BlendSelectValues::kOverlay), supports_decal}); + {static_cast(BlendSelectValues::kOverlay), supports_decal}); blend_saturation_pipelines_.CreateDefault( *context_, options_trianglestrip, - {static_cast(BlendSelectValues::kSaturation), supports_decal}); + {static_cast(BlendSelectValues::kSaturation), supports_decal}); blend_screen_pipelines_.CreateDefault( *context_, options_trianglestrip, - {static_cast(BlendSelectValues::kScreen), supports_decal}); + {static_cast(BlendSelectValues::kScreen), supports_decal}); blend_softlight_pipelines_.CreateDefault( *context_, options_trianglestrip, - {static_cast(BlendSelectValues::kSoftLight), supports_decal}); + {static_cast(BlendSelectValues::kSoftLight), supports_decal}); rrect_blur_pipelines_.CreateDefault(*context_, options_trianglestrip); texture_blend_pipelines_.CreateDefault(*context_, options); diff --git a/engine/src/flutter/impeller/entity/contents/content_context.h b/engine/src/flutter/impeller/entity/contents/content_context.h index e262850bb3..44d8d8afac 100644 --- a/engine/src/flutter/impeller/entity/contents/content_context.h +++ b/engine/src/flutter/impeller/entity/contents/content_context.h @@ -713,7 +713,7 @@ class ContentContext { void CreateDefault(const Context& context, const ContentContextOptions& options, - const std::initializer_list& constants = {}) { + const std::initializer_list& constants = {}) { auto desc = PipelineT::Builder::MakeDefaultPipelineDescriptor(context, constants); if (!desc.has_value()) { diff --git a/engine/src/flutter/impeller/entity/entity_unittests.cc b/engine/src/flutter/impeller/entity/entity_unittests.cc index 8095b9c66b..ad2f7c8c66 100644 --- a/engine/src/flutter/impeller/entity/entity_unittests.cc +++ b/engine/src/flutter/impeller/entity/entity_unittests.cc @@ -2507,9 +2507,9 @@ TEST_P(EntityTest, SpecializationConstantsAreAppliedToVariants) { ASSERT_EQ(default_color_burn->GetDescriptor().GetSpecializationConstants(), alt_color_burn->GetDescriptor().GetSpecializationConstants()); - auto decal_supported = static_cast( + auto decal_supported = static_cast( GetContext()->GetCapabilities()->SupportsDecalSamplerAddressMode()); - std::vector expected_constants = {5, decal_supported}; + std::vector expected_constants = {5, decal_supported}; ASSERT_EQ(default_color_burn->GetDescriptor().GetSpecializationConstants(), expected_constants); } @@ -2520,9 +2520,9 @@ TEST_P(EntityTest, DecalSpecializationAppliedToMorphologyFilter) { auto default_color_burn = content_context.GetMorphologyFilterPipeline({}); - auto decal_supported = static_cast( + auto decal_supported = static_cast( GetContext()->GetCapabilities()->SupportsDecalSamplerAddressMode()); - std::vector expected_constants = {decal_supported}; + std::vector expected_constants = {decal_supported}; ASSERT_EQ(default_color_burn->GetDescriptor().GetSpecializationConstants(), expected_constants); } diff --git a/engine/src/flutter/impeller/entity/shaders/blending/advanced_blend.frag b/engine/src/flutter/impeller/entity/shaders/blending/advanced_blend.frag index 199dbbeead..e69186f478 100644 --- a/engine/src/flutter/impeller/entity/shaders/blending/advanced_blend.frag +++ b/engine/src/flutter/impeller/entity/shaders/blending/advanced_blend.frag @@ -8,8 +8,8 @@ #include #include "blend_select.glsl" -layout(constant_id = 0) const int blend_type = 0; -layout(constant_id = 1) const int supports_decal = 1; +layout(constant_id = 0) const float blend_type = 0.0; +layout(constant_id = 1) const float supports_decal = 1.0; uniform BlendInfo { float16_t dst_input_alpha; @@ -49,7 +49,7 @@ void main() { ) * blend_info.src_input_alpha; - f16vec3 blend_result = AdvancedBlend(dst.rgb, src.rgb, blend_type); + f16vec3 blend_result = AdvancedBlend(dst.rgb, src.rgb, int(blend_type)); f16vec4 blended = mix(src, f16vec4(blend_result, dst.a), dst.a); frag_color = mix(dst_sample, blended, src.a); } diff --git a/engine/src/flutter/impeller/entity/shaders/blending/framebuffer_blend.frag b/engine/src/flutter/impeller/entity/shaders/blending/framebuffer_blend.frag index e01316924e..b031dd7f5e 100644 --- a/engine/src/flutter/impeller/entity/shaders/blending/framebuffer_blend.frag +++ b/engine/src/flutter/impeller/entity/shaders/blending/framebuffer_blend.frag @@ -10,8 +10,8 @@ #include #include "blend_select.glsl" -layout(constant_id = 0) const int blend_type = 0; -layout(constant_id = 1) const int supports_decal = 1; +layout(constant_id = 0) const float blend_type = 0.0; +layout(constant_id = 1) const float supports_decal = 1.0; layout(set = 0, binding = 0, @@ -46,7 +46,7 @@ void main() { )) * frag_info.src_input_alpha; - f16vec3 blend_result = AdvancedBlend(dst.rgb, src.rgb, blend_type); + f16vec3 blend_result = AdvancedBlend(dst.rgb, src.rgb, int(blend_type)); f16vec4 blended = mix(src, f16vec4(blend_result, dst.a), dst.a); frag_color = vec4(mix(dst, blended, src.a)); } diff --git a/engine/src/flutter/impeller/entity/shaders/blending/porter_duff_blend.frag b/engine/src/flutter/impeller/entity/shaders/blending/porter_duff_blend.frag index 0d140e754e..2b6631f9d5 100644 --- a/engine/src/flutter/impeller/entity/shaders/blending/porter_duff_blend.frag +++ b/engine/src/flutter/impeller/entity/shaders/blending/porter_duff_blend.frag @@ -9,7 +9,7 @@ precision mediump float; #include #include -layout(constant_id = 0) const int supports_decal = 1; +layout(constant_id = 0) const float supports_decal = 1.0; uniform f16sampler2D texture_sampler_dst; diff --git a/engine/src/flutter/impeller/entity/shaders/morphology_filter.frag b/engine/src/flutter/impeller/entity/shaders/morphology_filter.frag index ec9fb0e369..54d151e98b 100644 --- a/engine/src/flutter/impeller/entity/shaders/morphology_filter.frag +++ b/engine/src/flutter/impeller/entity/shaders/morphology_filter.frag @@ -4,7 +4,7 @@ precision mediump float; -layout(constant_id = 0) const int supports_decal = 1; +layout(constant_id = 0) const float supports_decal = 1.0; #include #include diff --git a/engine/src/flutter/impeller/renderer/backend/gles/proc_table_gles.cc b/engine/src/flutter/impeller/renderer/backend/gles/proc_table_gles.cc index afdb620163..f91d66a9c2 100644 --- a/engine/src/flutter/impeller/renderer/backend/gles/proc_table_gles.cc +++ b/engine/src/flutter/impeller/renderer/backend/gles/proc_table_gles.cc @@ -142,7 +142,7 @@ bool ProcTableGLES::IsValid() const { void ProcTableGLES::ShaderSourceMapping( GLuint shader, const fml::Mapping& mapping, - const std::vector& defines) const { + const std::vector& defines) const { if (defines.empty()) { const GLchar* sources[] = { reinterpret_cast(mapping.GetMapping())}; @@ -165,7 +165,7 @@ void ProcTableGLES::ShaderSourceMapping( // Visible For testing. std::optional ProcTableGLES::ComputeShaderWithDefines( const fml::Mapping& mapping, - const std::vector& defines) const { + const std::vector& defines) const { auto shader_source = std::string{ reinterpret_cast(mapping.GetMapping()), mapping.GetSize()}; @@ -178,6 +178,7 @@ std::optional ProcTableGLES::ComputeShaderWithDefines( } std::stringstream ss; + ss << std::fixed; for (auto i = 0u; i < defines.size(); i++) { ss << "#define SPIRV_CROSS_CONSTANT_ID_" << i << " " << defines[i] << '\n'; } diff --git a/engine/src/flutter/impeller/renderer/backend/gles/proc_table_gles.h b/engine/src/flutter/impeller/renderer/backend/gles/proc_table_gles.h index dfe0fd657d..03af427d8b 100644 --- a/engine/src/flutter/impeller/renderer/backend/gles/proc_table_gles.h +++ b/engine/src/flutter/impeller/renderer/backend/gles/proc_table_gles.h @@ -239,7 +239,7 @@ class ProcTableGLES { /// support static specialization. For example, setting "#define Foo 1". void ShaderSourceMapping(GLuint shader, const fml::Mapping& mapping, - const std::vector& defines = {}) const; + const std::vector& defines = {}) const; const DescriptionGLES* GetDescription() const; @@ -262,7 +262,7 @@ class ProcTableGLES { // Visible For testing. std::optional ComputeShaderWithDefines( const fml::Mapping& mapping, - const std::vector& defines) const; + const std::vector& defines) const; private: bool is_valid_ = false; diff --git a/engine/src/flutter/impeller/renderer/backend/gles/test/specialization_constants_unittests.cc b/engine/src/flutter/impeller/renderer/backend/gles/test/specialization_constants_unittests.cc index 8285c13780..b6975ccc99 100644 --- a/engine/src/flutter/impeller/renderer/backend/gles/test/specialization_constants_unittests.cc +++ b/engine/src/flutter/impeller/renderer/backend/gles/test/specialization_constants_unittests.cc @@ -26,7 +26,7 @@ TEST(SpecConstant, CanCreateShaderWithSpecializationConstant) { auto expected_shader_source = "#version 100\n" - "#define SPIRV_CROSS_CONSTANT_ID_0 0\n" + "#define SPIRV_CROSS_CONSTANT_ID_0 0.000000\n" "#ifndef SPIRV_CROSS_CONSTANT_ID_0\n" "#define SPIRV_CROSS_CONSTANT_ID_0 1\n" "#endif\n" @@ -54,12 +54,12 @@ TEST(SpecConstant, CanCreateShaderWithSpecializationConstantMultipleValues) { auto expected_shader_source = "#version 100\n" - "#define SPIRV_CROSS_CONSTANT_ID_0 0\n" - "#define SPIRV_CROSS_CONSTANT_ID_1 1\n" - "#define SPIRV_CROSS_CONSTANT_ID_2 2\n" - "#define SPIRV_CROSS_CONSTANT_ID_3 3\n" - "#define SPIRV_CROSS_CONSTANT_ID_4 4\n" - "#define SPIRV_CROSS_CONSTANT_ID_5 5\n" + "#define SPIRV_CROSS_CONSTANT_ID_0 0.000000\n" + "#define SPIRV_CROSS_CONSTANT_ID_1 1.000000\n" + "#define SPIRV_CROSS_CONSTANT_ID_2 2.000000\n" + "#define SPIRV_CROSS_CONSTANT_ID_3 3.000000\n" + "#define SPIRV_CROSS_CONSTANT_ID_4 4.000000\n" + "#define SPIRV_CROSS_CONSTANT_ID_5 5.000000\n" "#ifndef SPIRV_CROSS_CONSTANT_ID_0\n" "#define SPIRV_CROSS_CONSTANT_ID_0 1\n" "#endif\n" diff --git a/engine/src/flutter/impeller/renderer/backend/metal/shader_function_mtl.h b/engine/src/flutter/impeller/renderer/backend/metal/shader_function_mtl.h index 20bf6d05bf..fc3008d36f 100644 --- a/engine/src/flutter/impeller/renderer/backend/metal/shader_function_mtl.h +++ b/engine/src/flutter/impeller/renderer/backend/metal/shader_function_mtl.h @@ -23,7 +23,7 @@ class ShaderFunctionMTL final using CompileCallback = std::function)>; - void GetMTLFunctionSpecialized(const std::vector& constants, + void GetMTLFunctionSpecialized(const std::vector& constants, const CompileCallback& callback) const; private: diff --git a/engine/src/flutter/impeller/renderer/backend/metal/shader_function_mtl.mm b/engine/src/flutter/impeller/renderer/backend/metal/shader_function_mtl.mm index b33db53381..39910a6301 100644 --- a/engine/src/flutter/impeller/renderer/backend/metal/shader_function_mtl.mm +++ b/engine/src/flutter/impeller/renderer/backend/metal/shader_function_mtl.mm @@ -18,15 +18,15 @@ ShaderFunctionMTL::ShaderFunctionMTL(UniqueID parent_library_id, ShaderFunctionMTL::~ShaderFunctionMTL() = default; void ShaderFunctionMTL::GetMTLFunctionSpecialized( - const std::vector& constants, + const std::vector& constants, const CompileCallback& callback) const { MTLFunctionConstantValues* constantValues = [[MTLFunctionConstantValues alloc] init]; size_t index = 0; for (const auto value : constants) { - int copied_value = value; + Scalar copied_value = value; [constantValues setConstantValue:&copied_value - type:MTLDataTypeInt + type:MTLDataTypeFloat atIndex:index]; index++; } diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/pipeline_library_vk.cc b/engine/src/flutter/impeller/renderer/backend/vulkan/pipeline_library_vk.cc index 8fa14a2e3b..9342061db7 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/pipeline_library_vk.cc +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/pipeline_library_vk.cc @@ -299,8 +299,8 @@ std::unique_ptr PipelineLibraryVK::CreatePipeline( map_entries[entrypoint_count]; for (auto i = 0u; i < constants.size(); i++) { vk::SpecializationMapEntry entry; - entry.offset = (i * sizeof(int32_t)); - entry.size = sizeof(int32_t); + entry.offset = (i * sizeof(Scalar)); + entry.size = sizeof(Scalar); entry.constantID = i; entries.emplace_back(entry); } @@ -309,7 +309,7 @@ std::unique_ptr PipelineLibraryVK::CreatePipeline( specialization_infos[entrypoint_count]; specialization_info.setMapEntries(map_entries[entrypoint_count]); specialization_info.setPData(constants.data()); - specialization_info.setDataSize(sizeof(int32_t) * constants.size()); + specialization_info.setDataSize(sizeof(Scalar) * constants.size()); vk::PipelineShaderStageCreateInfo info; info.setStage(stage.value()); diff --git a/engine/src/flutter/impeller/renderer/pipeline_builder.h b/engine/src/flutter/impeller/renderer/pipeline_builder.h index 293a2b7e17..163ce66e6f 100644 --- a/engine/src/flutter/impeller/renderer/pipeline_builder.h +++ b/engine/src/flutter/impeller/renderer/pipeline_builder.h @@ -49,7 +49,7 @@ struct PipelineBuilder { /// static std::optional MakeDefaultPipelineDescriptor( const Context& context, - const std::vector& constants = {}) { + const std::vector& constants = {}) { PipelineDescriptor desc; desc.SetSpecializationConstants(constants); if (InitializePipelineDescriptorDefaults(context, desc)) { diff --git a/engine/src/flutter/impeller/renderer/pipeline_descriptor.cc b/engine/src/flutter/impeller/renderer/pipeline_descriptor.cc index 22ee4c30c4..9ae6710426 100644 --- a/engine/src/flutter/impeller/renderer/pipeline_descriptor.cc +++ b/engine/src/flutter/impeller/renderer/pipeline_descriptor.cc @@ -282,11 +282,11 @@ PolygonMode PipelineDescriptor::GetPolygonMode() const { } void PipelineDescriptor::SetSpecializationConstants( - std::vector values) { + std::vector values) { specialization_constants_ = std::move(values); } -const std::vector& PipelineDescriptor::GetSpecializationConstants() +const std::vector& PipelineDescriptor::GetSpecializationConstants() const { return specialization_constants_; } diff --git a/engine/src/flutter/impeller/renderer/pipeline_descriptor.h b/engine/src/flutter/impeller/renderer/pipeline_descriptor.h index 1045ea8fbd..6231fd9728 100644 --- a/engine/src/flutter/impeller/renderer/pipeline_descriptor.h +++ b/engine/src/flutter/impeller/renderer/pipeline_descriptor.h @@ -124,9 +124,9 @@ class PipelineDescriptor final : public Comparable { PolygonMode GetPolygonMode() const; - void SetSpecializationConstants(std::vector values); + void SetSpecializationConstants(std::vector values); - const std::vector& GetSpecializationConstants() const; + const std::vector& GetSpecializationConstants() const; private: std::string label_; @@ -146,7 +146,7 @@ class PipelineDescriptor final : public Comparable { back_stencil_attachment_descriptor_; PrimitiveType primitive_type_ = PrimitiveType::kTriangle; PolygonMode polygon_mode_ = PolygonMode::kFill; - std::vector specialization_constants_; + std::vector specialization_constants_; }; } // namespace impeller