/external/skqp/src/sksl/ |
D | SkSLGLSLCodeGenerator.cpp | 79 return fProgram.fSettings.fCaps->usesPrecisionModifiers(); in usesPrecisionModifiers() 254 SkASSERT(!fProgram.fSettings.fCaps->canUseMinAndAbsTogether()); in writeMinAbsHack() 490 if (!fProgram.fSettings.fCaps->emulateAbsIntFunction()) in writeFunctionCall() 510 if (fProgram.fSettings.fCaps->mustForceNegatedAtanParamToFloat() && in writeFunctionCall() 526 fProgram.fSettings.fCaps->shaderDerivativeExtensionString()) { in writeFunctionCall() 527 SkASSERT(fProgram.fSettings.fCaps->shaderDerivativeSupport()); in writeFunctionCall() 528 … this->writeExtension(fProgram.fSettings.fCaps->shaderDerivativeExtensionString()); in writeFunctionCall() 533 if (fProgram.fSettings.fCaps->generation() < k150_GrGLSLGeneration) { in writeFunctionCall() 540 if (!fProgram.fSettings.fCaps->builtinFMASupport()) { in writeFunctionCall() 553 if (!fProgram.fSettings.fCaps->canUseFractForNegativeValues()) { in writeFunctionCall() [all …]
|
D | SkSLMetalCodeGenerator.cpp | 426 this->write(fProgram.fSettings.fFlipY ? "_frontFacing" : "(!_frontFacing)"); in writeVariableReference() 628 switch (fProgram.fKind) { in writeFunction() 651 for (const auto& e : fProgram) { in writeFunction() 691 if (fProgram.fKind == Program::kFragment_Kind) { in writeFunction() 703 } else if (fProgram.fKind == Program::kVertex_Kind) { in writeFunction() 758 SkASSERT(!fProgram.fSettings.fFragColorIsInOut); in writeFunction() 804 switch (fProgram.fKind) { in writeFunction() 848 if (fProgram.fKind == Program::kFragment_Kind) { in writeInterfaceBlock() 980 if (fProgram.fSettings.fCaps->imageLoadStoreExtensionString()) { in writeVarDeclarations() 982 fHeader.writeText(fProgram.fSettings.fCaps->imageLoadStoreExtensionString()); in writeVarDeclarations() [all …]
|
D | SkSLCodeGenerator.h | 23 : fProgram(*program) in CodeGenerator() 35 const Program& fProgram;
|
D | SkSLInterpreter.h | 55 : fProgram(std::move(program)) in Interpreter() 80 std::unique_ptr<Program> fProgram;
|
D | SkSLJIT.h | 102 : fProgram(std::move(program)) in Module() 106 std::unique_ptr<Program> fProgram; variable 299 std::unique_ptr<Program> fProgram; variable
|
D | SkSLPipelineStageCodeGenerator.cpp | 85 for (const auto& p : fProgram) { in writeFunctionCall() 137 for (const auto& e : fProgram) { in writeVariableReference()
|
D | SkSLCPPCodeGenerator.cpp | 353 for (const auto& p : fProgram) { in getChildFPIndex() 542 for (const auto& p : fProgram) { in writePrivateVars() 582 for (const auto& p : fProgram) { in writePrivateVarValues() 807 for (const auto& p : fProgram) { in writeEmitCode() 923 for (const auto& p : fProgram) { in writeSetData() 1104 for (const auto& p : fProgram) { in generateCode() 1144 this->writef("%s\n", HCodeGenerator::GetHeader(fProgram, fErrors).c_str()); in generateCode()
|
/external/skia/src/sksl/ir/ |
D | SkSLProgram.h | 168 return iterator(fProgram.fElements.begin(), fProgram.fElements.end(), in begin() 169 fProgram.fSharedElements.begin(), fProgram.fSharedElements.end()); in begin() 173 return iterator(fProgram.fElements.end(), fProgram.fElements.end(), in end() 174 fProgram.fSharedElements.end(), fProgram.fSharedElements.end()); in end() 180 ElementsCollection(const Program& program) : fProgram(program) {} in ElementsCollection() 181 const Program& fProgram; member
|
/external/skia/src/gpu/gl/ |
D | GrGLGpuProgramCache.cpp | 22 : fProgram(std::move(program)) {} in Entry() 27 sk_sp<GrGLProgram> fProgram; member 39 if ((*e)->fProgram) { in abandon() 40 (*e)->fProgram->abandon(); in abandon() 92 if (entry && !(*entry)->fProgram) { in findOrCreateProgramImpl() 96 (*entry)->fProgram = GrGLProgramBuilder::CreateProgram(dContext, desc, programInfo, in findOrCreateProgramImpl() 98 if (!(*entry)->fProgram) { in findOrCreateProgramImpl() 118 return (*entry)->fProgram; in findOrCreateProgramImpl()
|
D | GrGLGpu.cpp | 407 if (0 != fCopyPrograms[i].fProgram) { in ~GrGLGpu() 408 GL_CALL(DeleteProgram(fCopyPrograms[i].fProgram)); in ~GrGLGpu() 413 if (0 != fMipmapPrograms[i].fProgram) { in ~GrGLGpu() 414 GL_CALL(DeleteProgram(fMipmapPrograms[i].fProgram)); in ~GrGLGpu() 439 if (fCopyPrograms[i].fProgram) { in disconnect() 440 GL_CALL(DeleteProgram(fCopyPrograms[i].fProgram)); in disconnect() 444 if (fMipmapPrograms[i].fProgram) { in disconnect() 445 GL_CALL(DeleteProgram(fMipmapPrograms[i].fProgram)); in disconnect() 471 fCopyPrograms[i].fProgram = 0; in disconnect() 475 fMipmapPrograms[i].fProgram = 0; in disconnect() [all …]
|
/external/skqp/tools/gpu/atlastext/ |
D | GLTestAtlasTextRenderer.cpp | 41 bool initialized() const { return 0 != fProgram; } in initialized() 59 GrGLuint fProgram = 0; member in __anone4ebf09f0111::GLTestAtlasTextRenderer 212 fProgram = callgl(CreateProgram); in GLTestAtlasTextRenderer() 213 if (!fProgram) { in GLTestAtlasTextRenderer() 219 callgl(AttachShader, fProgram, vs); in GLTestAtlasTextRenderer() 220 callgl(AttachShader, fProgram, fs); in GLTestAtlasTextRenderer() 221 callgl(LinkProgram, fProgram); in GLTestAtlasTextRenderer() 223 callgl(GetProgramiv, fProgram, GR_GL_LINK_STATUS, &linkStatus); in GLTestAtlasTextRenderer() 233 callgl(DeleteProgram, fProgram); in GLTestAtlasTextRenderer() 234 fProgram = 0; in GLTestAtlasTextRenderer() [all …]
|
/external/skqp/src/gpu/gl/ |
D | GrGLGpuProgramCache.cpp | 26 Entry(sk_sp<GrGLProgram> program) : fProgram(std::move(program)) {} in Entry() 28 sk_sp<GrGLProgram> fProgram; member 66 (*e)->fProgram->abandon(); in abandon() 108 return SkRef((*entry)->fProgram.get()); in refProgram()
|
D | GrGLGpu.cpp | 398 if (0 != fCopyPrograms[i].fProgram) { in ~GrGLGpu() 399 GL_CALL(DeleteProgram(fCopyPrograms[i].fProgram)); in ~GrGLGpu() 404 if (0 != fMipmapPrograms[i].fProgram) { in ~GrGLGpu() 405 GL_CALL(DeleteProgram(fMipmapPrograms[i].fProgram)); in ~GrGLGpu() 429 if (fCopyPrograms[i].fProgram) { in disconnect() 430 GL_CALL(DeleteProgram(fCopyPrograms[i].fProgram)); in disconnect() 434 if (fMipmapPrograms[i].fProgram) { in disconnect() 435 GL_CALL(DeleteProgram(fMipmapPrograms[i].fProgram)); in disconnect() 461 fCopyPrograms[i].fProgram = 0; in disconnect() 465 fMipmapPrograms[i].fProgram = 0; in disconnect() [all …]
|
/external/skia/modules/particles/src/ |
D | SkParticleEffect.cpp | 212 fProgram = std::move(prog); in prepare() 298 if (!fParams->fProgram) { in runEffectScript() 302 const skvm::Program& prog = entryPoint == EntryPoint::kSpawn ? fParams->fProgram->fEffectSpawn in runEffectScript() 303 : fParams->fProgram->fEffectUpdate; in runEffectScript() 313 args[0] = fParams->fProgram->fExternalFunctionUniforms.buf.data(); in runEffectScript() 324 if (!fParams->fProgram) { in runParticleScript() 328 const skvm::Program& prog = entryPoint == EntryPoint::kSpawn ? fParams->fProgram->fSpawn in runParticleScript() 329 : fParams->fProgram->fUpdate; in runParticleScript() 337 args[0] = fParams->fProgram->fExternalFunctionUniforms.buf.data(); in runParticleScript() 360 if (fParams->fProgram) { in advanceTime() [all …]
|
/external/skia/src/sksl/codegen/ |
D | SkSLMetalCodeGenerator.cpp | 634 if (fProgram.fConfig->fSettings.fFlipY) { in writeIntrinsicCall() 1156 this->write(fProgram.fConfig->fSettings.fFlipY ? "_frontFacing" : "(!_frontFacing)"); in writeVariableReference() 1524 : fProgram.fConfig->fSettings.fDefaultUniformBinding; in getUniformBinding() 1529 : fProgram.fConfig->fSettings.fDefaultUniformSet; in getUniformSet() 1533 fRTHeightName = fProgram.fInputs.fRTHeight ? "_globals._anonInterface0->u_skRTHeight" : ""; in writeFunctionDeclaration() 1536 switch (fProgram.fConfig->fKind) { in writeFunctionDeclaration() 1552 for (const ProgramElement* e : fProgram.elements()) { in writeFunctionDeclaration() 1593 if (fProgram.fConfig->fKind == ProgramKind::kFragment) { in writeFunctionDeclaration() 1594 if (fProgram.fInputs.fRTHeight && fInterfaceBlockNameMap.empty()) { in writeFunctionDeclaration() 1600 } else if (fProgram.fConfig->fKind == ProgramKind::kVertex) { in writeFunctionDeclaration() [all …]
|
D | SkSLCodeGenerator.h | 23 : fProgram(*program) in CodeGenerator() 36 const Program& fProgram;
|
D | SkSLGLSLCodeGenerator.cpp | 499 if (fProgram.fConfig->fSettings.fFlipY) { in writeFunctionCall() 687 if (fProgram.fConfig->fSettings.fSharpenTextures && isTextureFunctionWithBias) { in writeFunctionCall() 744 if (!fProgram.fConfig->fSettings.fFlipY) { in writeFragCoord() 779 … this->write(fProgram.fConfig->fSettings.fFlipY ? "(!gl_FrontFacing)" : "gl_FrontFacing"); in writeVariableReference() 852 bool positionWorkaround = fProgram.fConfig->fKind == ProgramKind::kVertex && in writeBinaryExpression() 1050 this->write(fProgram.fConfig->fKind == ProgramKind::kVertex ? "attribute " in writeModifiers() 1113 if (fProgram.fConfig->fSettings.fForceHighPrecision || in getTypePrecision() 1120 return fProgram.fConfig->fSettings.fForceHighPrecision ? "highp " : "mediump "; in getTypePrecision() 1396 if (fProgram.fConfig->fSettings.fFragColorIsInOut) { in writeProgramElement() 1441 if (fProgram.fInputs.fRTHeight) { in writeInputVars() [all …]
|
D | SkSLPipelineStageCodeGenerator.cpp | 47 : fProgram(program) in PipelineStageCodeGenerator() 111 const Program& fProgram; member in SkSL::PipelineStage::PipelineStageCodeGenerator 153 for (const ProgramElement* p : fProgram.elements()) { in writeFunctionCall() 177 SkASSERT(arguments[1]->type() == *fProgram.fContext->fTypes.fFloat2); in writeFunctionCall() 181 SkASSERT(arguments[1]->type() == *fProgram.fContext->fTypes.fHalf4 || in writeFunctionCall() 182 arguments[1]->type() == *fProgram.fContext->fTypes.fFloat4); in writeFunctionCall() 659 for (const ProgramElement* e : fProgram.elements()) { in generateCode() 668 for (const ProgramElement* e : fProgram.elements()) { in generateCode()
|
D | SkSLHCodeGenerator.cpp | 266 if (Analysis::ReferencesSampleCoords(fProgram)) { in writeConstructor() 276 SampleUsage usage = Analysis::GetSampleUsage(fProgram, *param); in writeConstructor() 321 this->writef("%s\n", GetHeader(fProgram, fErrors).c_str()); in generateCode() 338 for (const ProgramElement* p : fProgram.elements()) { in generateCode()
|
D | SkSLCPPCodeGenerator.cpp | 342 for (const ProgramElement* p : fProgram.elements()) { in getChildFPIndex() 642 for (const ProgramElement* p : fProgram.elements()) { in writePrivateVars() 680 for (const ProgramElement* p : fProgram.elements()) { in writePrivateVarValues() 912 for (const ProgramElement* p : fProgram.elements()) { in writeEmitCode() 941 for (const ProgramElement* p : fProgram.elements()) { in writeEmitCode() 951 for (const ProgramElement* p : fProgram.elements()) { in writeEmitCode() 1046 for (const ProgramElement* p : fProgram.elements()) { in writeSetData() 1226 for (const ProgramElement* e : fProgram.elements()) { in writeGetKey() 1250 for (const ProgramElement* p : fProgram.elements()) { in writeGetKey() 1321 for (const ProgramElement* p : fProgram.elements()) { in generateCode() [all …]
|
D | SkSLDSLCPPCodeGenerator.cpp | 305 for (const ProgramElement* p : fProgram.elements()) { in getChildFPIndex() 934 for (const ProgramElement* p : fProgram.elements()) { in writePrivateVars() 972 for (const ProgramElement* p : fProgram.elements()) { in writePrivateVarValues() 1003 for (const ProgramElement* p : fProgram.elements()) { in writeEmitCode() 1034 for (const ProgramElement* p : fProgram.elements()) { in writeEmitCode() 1044 for (const ProgramElement* p : fProgram.elements()) { in writeEmitCode() 1135 for (const ProgramElement* p : fProgram.elements()) { in writeSetData() 1274 for (const ProgramElement* e : fProgram.elements()) { in writeGetKey() 1298 for (const ProgramElement* p : fProgram.elements()) { in writeGetKey() 1368 for (const ProgramElement* p : fProgram.elements()) { in generateCode() [all …]
|
D | SkSLSPIRVCodeGenerator.cpp | 391 if (fProgram.fConfig->fKind == ProgramKind::kGeometry) { in writeCapabilities() 406 if (precision == Precision::kRelaxed && !fProgram.fConfig->fSettings.fForceHighPrecision) { in nextId() 1001 if (fProgram.fConfig->fSettings.fSharpenTextures) { in writeSpecialIntrinsic() 1043 if (fProgram.fConfig->fSettings.fFlipY) { in writeSpecialIntrinsic() 2036 fProgram.fConfig->fSettings.fFlipY) { in writeVariableReference() 2047 if (fProgram.fConfig->fSettings.fFlipY) { in writeVariableReference() 2053 if (fProgram.fConfig->fSettings.fRTHeightOffset < 0) { in writeVariableReference() 2058 fProgram.fConfig->fSettings.fRTHeightOffset, in writeVariableReference() 2068 int binding = fProgram.fConfig->fSettings.fRTHeightBinding; in writeVariableReference() 2072 int set = fProgram.fConfig->fSettings.fRTHeightSet; in writeVariableReference() [all …]
|
/external/skia/src/sksl/ |
D | SkSLSectionAndParameterHelper.cpp | 28 : fProgram(*program) { in SectionAndParameterHelper() 29 for (const ProgramElement* p : fProgram.elements()) { in SectionAndParameterHelper()
|
D | SkSLSectionAndParameterHelper.h | 108 const Program& fProgram;
|
/external/skia/tests/ |
D | SkSLInterpreterTest.cpp | 26 fProgram = fCompiler.convertProgram(SkSL::ProgramKind::kGeneric, SkSL::String(src), 28 if (!fProgram) { 33 operator bool() const { return fProgram != nullptr; } in operator bool() 34 SkSL::Program& operator*() { return *fProgram; } in operator *() 38 std::unique_ptr<SkSL::Program> fProgram; member
|