[Impeller] error earlier on uint types (flutter/engine#37593)

This commit is contained in:
Jonah Williams 2022-11-14 13:25:03 -08:00 committed by GitHub
parent ecd93ada0b
commit dadea11190

View File

@ -118,6 +118,11 @@ void CompilerSkSL::emit_header() {
void CompilerSkSL::emit_uniform(const SPIRVariable& var) {
auto& type = get<SPIRType>(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), ";");