You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
getUniformFloat(String name) fails on Vulkan #180595
// shaders/my_gradient.frag#version460 core
#include <flutter/runtime_effect.glsl>uniformvec2 uSize; // The size of the area being drawnuniformfloat uTime;
outvec4 fragColor;
uniformvec3 uColor;
void main() {
// FlutterFragCoord() gives the pixel coordinate.// Divide by uSize to get normalized coordinates (uv) between 0.0 and 1.0.vec2 uv = FlutterFragCoord().xy / uSize;
// Define two colors for the gradient.vec4 color1 =vec4(1.0, 0.0, 0.0, 1.0); // Dark Bluevec4 color2 =vec4(uColor, 1.0); // Orange/Red
fragColor =mix(color1, color2, sin(-uTime));
}
For Vulkan, it looks like we convert all shader uniforms into a single struct with the name_RESERVED_IDENTIFIER_FIXUP_gl_DefaultUniformBlock.
We don't have the information on the dart side to make this work correctly. The Uniform information that gets passed to dart is generated here, and defined here and here
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
walley892 commentedon Jan 6, 2026
For Vulkan, it looks like we convert all shader uniforms into a single struct with the name
_RESERVED_IDENTIFIER_FIXUP_gl_DefaultUniformBlock.We don't have the information on the dart side to make this work correctly. The Uniform information that gets passed to dart is generated here, and defined here and here
gaaclarke commentedon Jan 6, 2026
Fixing this should also move or eliminate the shortcut in
flutter/engine/src/flutter/testing/dart/fragment_shader_test.dart
Line 46 in 1e87bd8
(The tests already run against vulkan)
walley892 commentedon Feb 12, 2026
Fixed by #181286
github-actions commentedon Mar 1, 2026
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.