mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[Impeller] error earlier on uint types (flutter/engine#37593)
This commit is contained in:
parent
ecd93ada0b
commit
dadea11190
@ -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), ";");
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user