Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 14ecaeb

Browse files
[Impeller] error earlier on uint types (#37593)
1 parent 42bc762 commit 14ecaeb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

impeller/compiler/spirv_sksl.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ void CompilerSkSL::emit_header() {
118118

119119
void CompilerSkSL::emit_uniform(const SPIRVariable& var) {
120120
auto& type = get<SPIRType>(var.basetype);
121+
if (type.basetype == SPIRType::UInt && is_legacy()) {
122+
FLUTTER_CROSS_THROW("SkSL does not support unsigned integers: '" +
123+
get_name(var.self) + "'");
124+
}
125+
121126
add_resource_name(var.self);
122127
statement(variable_decl(var), ";");
123128

0 commit comments

Comments
 (0)