Skip to content

Commit 3913d3e

Browse files
jvanverthSkia Commit-Bot
authored andcommitted
Set Metal semantics for SkSL point size.
Metal requires any variable in the vertex shader representing point size to be assigned the [[point_size]] semantic. Otherwise, point size is undefined. Bug: skia:10658 Change-Id: Iac428175327a27ba319e9dab9a0c17d4b1731cce Reviewed-on: https://skia-review.googlesource.com/c/skia/+/314318 Commit-Queue: Jim Van Verth <[email protected]> Commit-Queue: Brian Osman <[email protected]> Auto-Submit: Jim Van Verth <[email protected]> Reviewed-by: Brian Osman <[email protected]>
1 parent 39616ec commit 3913d3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sksl/SkSLMetalCodeGenerator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1501,7 +1501,7 @@ void MetalCodeGenerator::writeOutputStruct() {
15011501
}
15021502
}
15031503
if (fProgram.fKind == Program::kVertex_Kind) {
1504-
this->write(" float sk_PointSize;\n");
1504+
this->write(" float sk_PointSize [[point_size]];\n");
15051505
}
15061506
this->write("};\n");
15071507
}

0 commit comments

Comments
 (0)