We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e3ea14 commit 59ecc75Copy full SHA for 59ecc75
packages/flutter_tools/test/integration.shard/shader_compiler_test.dart
@@ -136,4 +136,23 @@ void main() {
136
),
137
));
138
});
139
+
140
+ testUsingContext('Compilation error with uint8 uniforms', () async {
141
+ const String kShaderWithInput = '''
142
+#version 310 es
143
144
+layout(location = 0) uniform uint foo;
145
+layout(location = 0) out vec4 fragColor;
146
147
+void main() {}
148
+''';
149
150
+ expect(() => testCompileShader(kShaderWithInput), throwsA(isA<ShaderCompilerException>()
151
+ .having(
152
+ (ShaderCompilerException exception) => exception.message,
153
+ 'message',
154
+ contains('SkSL does not support unsigned integers'),
155
+ ),
156
+ ));
157
+ });
158
}
0 commit comments