commit | 442d14a7e840db78f72c0ea508a0507aa1cc2dad | [log] [tgz] |
---|---|---|
author | Jonah Williams <jonahwilliams@google.com> | Thu Apr 18 16:08:02 2024 -0700 |
committer | GitHub <noreply@github.com> | Thu Apr 18 23:08:02 2024 +0000 |
tree | 7c795e5e5ad51a7c8bd65bc3a8c48aa1d6319d56 | |
parent | 046207c784cf7b34bc406074712fcbbab8b3803e [diff] |
[Impeller] dont use half precision constants / Fixes for SPIRV tools roll (#52213) See b/335381180 In an upcoming version of SPIRV tools, these constants are being flagged as invalid. Due to some combination of the macros + inlining we're ending up with multiple precision modifiers on the constants: ``` third_party/flutter_engine/impeller/entity/shaders/radial_gradient_fill.frag: GLSL to SPIRV failed; Compilation error. 0 error(s) and 1 warning(s). third_party/flutter_engine/impeller/entity/shaders/radial_gradient_fill.frag:14: warning: '' : all default precisions are highp; use precision statements to quiet warning, e.g.: third_party/flutter_engine/impeller/entity/shaders/radial_gradient_fill.frag: "precision mediump int; precision highp float;" shaderc: internal error: compilation succeeded but failed to optimize: ID '112' decorated with RelaxedPrecision multiple times is not allowed. %float_n0_474999994 = OpConstant %float -0.474999994 ``` We don't really benefit from half precision on these, since we're either using them for equality or can cheaply convert to half precision anyway.
Flutter is Google's SDK for crafting beautiful, fast user experiences for mobile, web, and desktop from a single codebase. Flutter works with existing code, is used by developers and organizations around the world, and is free and open source.
The Flutter Engine is a portable runtime for hosting Flutter applications. It implements Flutter's core libraries, including animation and graphics, file and network I/O, accessibility support, plugin architecture, and a Dart runtime and compile toolchain. Most developers will interact with Flutter via the Flutter Framework, which provides a modern, reactive framework, and a rich set of platform, layout and foundation widgets.
If you want to run/contribute to Flutter Web engine, more tooling can be found at felt. This is a tool written to make web engine development experience easy.
If you are new to Flutter, then you will find more general information on the Flutter project, including tutorials and samples, on our Web site at Flutter.dev. For specific information about Flutter's APIs, consider our API reference which can be found at the docs.flutter.dev.
Flutter is a fully open source project, and we welcome contributions. Information on how to get started can be found at our contributor guide.