18 const char*
p = devPos;
19 out->appendf(
"{float2 _posTmp = %s.xy / %s.z;",
p,
p);
22 out->appendf(
"{float2 _posTmp = %s;", devPos);
24 out->appendf(
"_posTmp = floor(_posTmp) + float2(0.5);"
25 "sk_Position = _posTmp.xy01;}");
27 out->appendf(
"sk_Position = %s.xy0z;", devPos);
30 out->appendf(
"sk_Position = %s.xy01;", devPos);
34void GrGLSLVertexBuilder::onFinalize() {
virtual GrGLSLVaryingHandler * varyingHandler()=0
void codeAppend(const char *str)
GrGLSLProgramBuilder * fProgramBuilder
GrGLSLProgramBuilder * getProgramBuilder()
void getVertexDecls(SkString *inputDecls, SkString *outputDecls) const
void emitNormalizedSkPosition(const char *devPos, SkSLType devPosType=SkSLType::kFloat2)