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:
parent
471b6fe32a
commit
d1d52562dd
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user