fixed attributes of sk_InvocationID

Bug: skia:
Change-Id: I549fdfa75f536e00f14bca445753f4c1354fa5d0
Reviewed-on: https://skia-review.googlesource.com/115361
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
This commit is contained in:
Ethan Nicholas 2018-03-20 16:30:34 -04:00 committed by Skia Commit-Bot
parent 471b6fe32a
commit d1d52562dd
2 changed files with 2 additions and 1 deletions

View File

@ -327,6 +327,7 @@ std::unique_ptr<ModifiersDeclaration> IRGenerator::convertModifiersDeclaration(
modifiers.fLayout.fInvocations = -1;
Variable* invocationId = (Variable*) (*fSymbolTable)["sk_InvocationID"];
ASSERT(invocationId);
invocationId->fModifiers.fFlags = 0;
invocationId->fModifiers.fLayout.fBuiltin = -1;
if (modifiers.fLayout.description() == "") {
return nullptr;

View File

@ -14,7 +14,7 @@ layout(builtin=10007) out sk_PerVertex {
layout(builtin=3) float sk_ClipDistance[1];
};
layout(builtin=8) int sk_InvocationID;
layout(builtin=8) in int sk_InvocationID;
sk_has_side_effects void EmitStreamVertex(int stream);
sk_has_side_effects void EndStreamPrimitive(int stream);