fixed SPIR-V interface variable declarations
Bug: skia: Change-Id: Ibdc975d8be672f00e30aab055358d8fe0e47e0c2 Reviewed-on: https://skia-review.googlesource.com/157222 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
This commit is contained in:
parent
42e086cd2d
commit
d23c819c2f
@ -3137,12 +3137,9 @@ void SPIRVCodeGenerator::writeInstructions(const Program& program, OutputStream&
|
||||
SkASSERT(main);
|
||||
for (auto entry : fVariableMap) {
|
||||
const Variable* var = entry.first;
|
||||
int builtin = var->fModifiers.fLayout.fBuiltin;
|
||||
if (var->fStorage == Variable::kGlobal_Storage &&
|
||||
((var->fModifiers.fFlags & Modifiers::kIn_Flag) ||
|
||||
(var->fModifiers.fFlags & Modifiers::kOut_Flag)) &&
|
||||
builtin != SK_OUT_BUILTIN &&
|
||||
builtin != SK_INVOCATIONID_BUILTIN) {
|
||||
(var->fModifiers.fFlags & Modifiers::kOut_Flag))) {
|
||||
interfaceVars.insert(entry.second);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user