[flutter_tools] add uint compilation test (#115317)
* [flutter_tools] add uint compilation test * Update shader_compiler_test.dart
This commit is contained in:
parent
8e3ea14787
commit
59ecc75748
@ -136,4 +136,23 @@ void main() {
|
|||||||
),
|
),
|
||||||
));
|
));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
testUsingContext('Compilation error with uint8 uniforms', () async {
|
||||||
|
const String kShaderWithInput = '''
|
||||||
|
#version 310 es
|
||||||
|
|
||||||
|
layout(location = 0) uniform uint foo;
|
||||||
|
layout(location = 0) out vec4 fragColor;
|
||||||
|
|
||||||
|
void main() {}
|
||||||
|
''';
|
||||||
|
|
||||||
|
expect(() => testCompileShader(kShaderWithInput), throwsA(isA<ShaderCompilerException>()
|
||||||
|
.having(
|
||||||
|
(ShaderCompilerException exception) => exception.message,
|
||||||
|
'message',
|
||||||
|
contains('SkSL does not support unsigned integers'),
|
||||||
|
),
|
||||||
|
));
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user