diff --git a/impeller/compiler/spirv_sksl.cc b/impeller/compiler/spirv_sksl.cc index 2535d4ec6e658..643f90e8d1da6 100644 --- a/impeller/compiler/spirv_sksl.cc +++ b/impeller/compiler/spirv_sksl.cc @@ -118,6 +118,11 @@ void CompilerSkSL::emit_header() { void CompilerSkSL::emit_uniform(const SPIRVariable& var) { auto& type = get(var.basetype); + if (type.basetype == SPIRType::UInt && is_legacy()) { + FLUTTER_CROSS_THROW("SkSL does not support unsigned integers: '" + + get_name(var.self) + "'"); + } + add_resource_name(var.self); statement(variable_decl(var), ";");