/third_party/skia/src/sksl/ir/ |
D | SkSLProgram.h | 153 return iterator(fProgram.fOwnedElements.begin(), fProgram.fOwnedElements.end(), in begin() 154 fProgram.fSharedElements.begin(), fProgram.fSharedElements.end()); in begin() 158 return iterator(fProgram.fOwnedElements.end(), fProgram.fOwnedElements.end(), in end() 159 fProgram.fSharedElements.end(), fProgram.fSharedElements.end()); in end() 165 ElementsCollection(const Program& program) : fProgram(program) {} in ElementsCollection() 166 const Program& fProgram; member
|
/third_party/flutter/skia/src/sksl/ |
D | SkSLGLSLCodeGenerator.cpp | 79 return fProgram.fSettings.fCaps->usesPrecisionModifiers(); in usesPrecisionModifiers() 250 SkASSERT(!fProgram.fSettings.fCaps->canUseMinAndAbsTogether()); in writeMinAbsHack() 486 if (!fProgram.fSettings.fCaps->emulateAbsIntFunction()) in writeFunctionCall() 506 if (fProgram.fSettings.fCaps->mustForceNegatedAtanParamToFloat() && in writeFunctionCall() 521 if (fProgram.fSettings.fFlipY) { in writeFunctionCall() 530 fProgram.fSettings.fCaps->shaderDerivativeExtensionString()) { in writeFunctionCall() 531 SkASSERT(fProgram.fSettings.fCaps->shaderDerivativeSupport()); in writeFunctionCall() 532 … this->writeExtension(fProgram.fSettings.fCaps->shaderDerivativeExtensionString()); in writeFunctionCall() 537 if (fProgram.fSettings.fCaps->generation() < k150_GrGLSLGeneration) { in writeFunctionCall() 544 if (!fProgram.fSettings.fCaps->builtinFMASupport()) { in writeFunctionCall() [all …]
|
D | SkSLMetalCodeGenerator.cpp | 222 this->write((fProgram.fSettings.fFlipY) ? "-dfdy" : "dfdy"); in writeFunctionCall() 532 this->write(fProgram.fSettings.fFlipY ? "_frontFacing" : "(!_frontFacing)"); in writeVariableReference() 778 fRTHeightName = fProgram.fInputs.fRTHeight ? "_globals->_anonInterface0->u_skRTHeight" : ""; in writeFunction() 781 switch (fProgram.fKind) { in writeFunction() 804 for (const auto& e : fProgram) { in writeFunction() 844 if (fProgram.fKind == Program::kFragment_Kind) { in writeFunction() 845 if (fProgram.fInputs.fRTHeight && fInterfaceBlockNameMap.empty()) { in writeFunction() 855 } else if (fProgram.fKind == Program::kVertex_Kind) { in writeFunction() 916 SkASSERT(!fProgram.fSettings.fFragColorIsInOut); in writeFunction() 962 switch (fProgram.fKind) { in writeFunction() [all …]
|
D | SkSLCodeGenerator.h | 23 : fProgram(*program) in CodeGenerator() 35 const 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 | SkSLCPPCodeGenerator.cpp | 387 for (const auto& p : fProgram) { in getChildFPIndex() 582 for (const auto& p : fProgram) { in writePrivateVars() 622 for (const auto& p : fProgram) { in writePrivateVarValues() 848 for (const auto& p : fProgram) { in writeEmitCode() 964 for (const auto& p : fProgram) { in writeSetData() 1106 for (const auto& p : fProgram) { in writeGetKey() 1192 for (const auto& p : fProgram) { in generateCode() 1232 this->writef("%s\n", HCodeGenerator::GetHeader(fProgram, fErrors).c_str()); in generateCode()
|
D | SkSLPipelineStageCodeGenerator.cpp | 89 for (const auto& p : fProgram) { in writeFunctionCall() 143 for (const auto& e : fProgram) { in writeVariableReference()
|
D | SkSLJIT.cpp | 131 for (const auto& pair : *fProgram->fSymbols) { in addBuiltinFunction() 849 for (const auto& pe : *fProgram) { in appendStage() 1746 return f.fReturnType == *fProgram->fContext->fVoid_Type && in hasStageSignature() 1748 f.fParameters[0]->fType == *fProgram->fContext->fInt_Type && in hasStageSignature() 1750 f.fParameters[1]->fType == *fProgram->fContext->fInt_Type && in hasStageSignature() 1752 f.fParameters[2]->fType == *fProgram->fContext->fHalf4_Type && in hasStageSignature() 1790 if (f.fDeclaration.fReturnType == *fProgram->fContext->fVoid_Type) { in compileFunction() 1841 for (const auto& e : *fProgram) { in createModule() 1850 fProgram = std::move(program); in compile() 1853 return std::unique_ptr<Module>(new Module(std::move(fProgram), fSharedModule, fJITStack)); in compile()
|
/third_party/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 | 408 if (0 != fCopyPrograms[i].fProgram) { in ~GrGLGpu() 409 GL_CALL(DeleteProgram(fCopyPrograms[i].fProgram)); in ~GrGLGpu() 414 if (0 != fMipmapPrograms[i].fProgram) { in ~GrGLGpu() 415 GL_CALL(DeleteProgram(fMipmapPrograms[i].fProgram)); in ~GrGLGpu() 440 if (fCopyPrograms[i].fProgram) { in disconnect() 441 GL_CALL(DeleteProgram(fCopyPrograms[i].fProgram)); in disconnect() 445 if (fMipmapPrograms[i].fProgram) { in disconnect() 446 GL_CALL(DeleteProgram(fMipmapPrograms[i].fProgram)); in disconnect() 472 fCopyPrograms[i].fProgram = 0; in disconnect() 476 fMipmapPrograms[i].fProgram = 0; in disconnect() [all …]
|
/third_party/skia/src/gpu/ops/ |
D | DrawAtlasPathOp.cpp | 154 SkASSERT(!fProgram); in prepareProgram() 163 fProgram = arena->make<GrProgramInfo>(caps, writeView, usesMSAASurface, pipeline, in prepareProgram() 179 SkASSERT(fProgram); in onPrePrepare() 180 rContext->priv().recordProgramInfo(fProgram); in onPrePrepare() 186 if (!fProgram) { in onPrepare() 191 SkASSERT(fProgram); in onPrepare() 195 fProgram->geomProc().instanceStride(), fInstanceCount, &fInstanceBuffer, in onPrepare() 217 if (fProgram->geomProc().hasVertexAttributes() && !fVertexBufferIfNoIDSupport) { in onExecute() 220 flushState->bindPipelineAndScissorClip(*fProgram, this->bounds()); in onExecute() 221 flushState->bindTextures(fProgram->geomProc(), *fAtlasHelper.proxy(), fProgram->pipeline()); in onExecute()
|
/third_party/flutter/skia/tools/gpu/atlastext/ |
D | GLTestAtlasTextRenderer.cpp | 41 bool initialized() const { return 0 != fProgram; } in initialized() 59 GrGLuint fProgram = 0; member in __anon3bb427090111::GLTestAtlasTextRenderer 213 fProgram = callgl(CreateProgram); in GLTestAtlasTextRenderer() 214 if (!fProgram) { in GLTestAtlasTextRenderer() 220 callgl(AttachShader, fProgram, vs); in GLTestAtlasTextRenderer() 221 callgl(AttachShader, fProgram, fs); in GLTestAtlasTextRenderer() 222 callgl(LinkProgram, fProgram); in GLTestAtlasTextRenderer() 224 callgl(GetProgramiv, fProgram, GR_GL_LINK_STATUS, &linkStatus); in GLTestAtlasTextRenderer() 234 callgl(DeleteProgram, fProgram); in GLTestAtlasTextRenderer() 235 fProgram = 0; in GLTestAtlasTextRenderer() [all …]
|
/third_party/flutter/skia/bench/ |
D | SkVMBench.cpp | 37 if (fMode == F32 ) { fProgram = SrcoverBuilder_F32 {}.done(); } in onDelayedSetup() 38 if (fMode == I32_Naive) { fProgram = SrcoverBuilder_I32_Naive{}.done(); } in onDelayedSetup() 39 if (fMode == I32 ) { fProgram = SrcoverBuilder_I32 {}.done(); } in onDelayedSetup() 40 if (fMode == I32_SWAR ) { fProgram = SrcoverBuilder_I32_SWAR {}.done(); } in onDelayedSetup() 65 fProgram.eval(fPixels, fSrc.data(), fDst.data()); in onDraw() 75 skvm::Program fProgram; member in SkVMBench
|
/third_party/flutter/skia/src/gpu/gl/ |
D | GrGLGpuProgramCache.cpp | 26 Entry(sk_sp<GrGLProgram> program) : fProgram(std::move(program)) {} in Entry() 28 sk_sp<GrGLProgram> fProgram; member 60 (*e)->fProgram->abandon(); in abandon() 112 return SkRef((*entry)->fProgram.get()); in refProgram()
|
D | GrGLGpu.cpp | 443 if (0 != fCopyPrograms[i].fProgram) { in ~GrGLGpu() 444 GL_CALL(DeleteProgram(fCopyPrograms[i].fProgram)); in ~GrGLGpu() 449 if (0 != fMipmapPrograms[i].fProgram) { in ~GrGLGpu() 450 GL_CALL(DeleteProgram(fMipmapPrograms[i].fProgram)); in ~GrGLGpu() 474 if (fCopyPrograms[i].fProgram) { in disconnect() 475 GL_CALL(DeleteProgram(fCopyPrograms[i].fProgram)); in disconnect() 479 if (fMipmapPrograms[i].fProgram) { in disconnect() 480 GL_CALL(DeleteProgram(fMipmapPrograms[i].fProgram)); in disconnect() 506 fCopyPrograms[i].fProgram = 0; in disconnect() 510 fMipmapPrograms[i].fProgram = 0; in disconnect() [all …]
|
/third_party/skia/modules/particles/src/ |
D | SkParticleEffect.cpp | 215 fProgram = std::move(prog); in prepare() 301 if (!fParams->fProgram) { in runEffectScript() 305 const skvm::Program& prog = entryPoint == EntryPoint::kSpawn ? fParams->fProgram->fEffectSpawn in runEffectScript() 306 : fParams->fProgram->fEffectUpdate; in runEffectScript() 316 args[0] = fParams->fProgram->fExternalFunctionUniforms.buf.data(); in runEffectScript() 327 if (!fParams->fProgram) { in runParticleScript() 331 const skvm::Program& prog = entryPoint == EntryPoint::kSpawn ? fParams->fProgram->fSpawn in runParticleScript() 332 : fParams->fProgram->fUpdate; in runParticleScript() 340 args[0] = fParams->fProgram->fExternalFunctionUniforms.buf.data(); in runParticleScript() 363 if (fParams->fProgram) { in advanceTime() [all …]
|
/third_party/skia/src/sksl/codegen/ |
D | SkSLPipelineStageCodeGenerator.cpp | 53 : fProgram(program) in PipelineStageCodeGenerator() 123 const Program& fProgram; member in SkSL::PipelineStage::PipelineStageCodeGenerator 152 for (const ProgramElement* p : fProgram.elements()) { in writeChildCall() 178 SkASSERT(arguments[0]->type() == *fProgram.fContext->fTypes.fFloat2); in writeChildCall() 184 SkASSERT(arguments[0]->type() == *fProgram.fContext->fTypes.fHalf4 || in writeChildCall() 185 arguments[0]->type() == *fProgram.fContext->fTypes.fFloat4); in writeChildCall() 191 SkASSERT(arguments[0]->type() == *fProgram.fContext->fTypes.fHalf4 || in writeChildCall() 192 arguments[0]->type() == *fProgram.fContext->fTypes.fFloat4); in writeChildCall() 193 SkASSERT(arguments[1]->type() == *fProgram.fContext->fTypes.fHalf4 || in writeChildCall() 194 arguments[1]->type() == *fProgram.fContext->fTypes.fFloat4); in writeChildCall() [all …]
|
D | SkSLMetalCodeGenerator.cpp | 1795 : fProgram.fConfig->fSettings.fDefaultUniformBinding; in getUniformBinding() 1800 : fProgram.fConfig->fSettings.fDefaultUniformSet; in getUniformSet() 1804 fRTFlipName = fProgram.fInputs.fUseFlipRTUniform in writeFunctionDeclaration() 1809 switch (fProgram.fConfig->fKind) { in writeFunctionDeclaration() 1825 for (const ProgramElement* e : fProgram.elements()) { in writeFunctionDeclaration() 1866 if (fProgram.fConfig->fKind == ProgramKind::kFragment) { in writeFunctionDeclaration() 1867 if (fProgram.fInputs.fUseFlipRTUniform && fInterfaceBlockNameMap.empty()) { in writeFunctionDeclaration() 1873 } else if (fProgram.fConfig->fKind == ProgramKind::kVertex) { in writeFunctionDeclaration() 1930 SkASSERT(!fProgram.fConfig->fSettings.fFragColorIsInOut); in writeFunction() 1994 if (fProgram.fInputs.fUseFlipRTUniform) { in writeInterfaceBlock() [all …]
|
D | SkSLCodeGenerator.h | 24 , fProgram(*program) in CodeGenerator() 37 const Program& fProgram; variable
|
D | SkSLGLSLCodeGenerator.cpp | 685 if (fProgram.fConfig->fSettings.fSharpenTextures && isTextureFunctionWithBias) { in writeFunctionCall() 898 bool positionWorkaround = fProgram.fConfig->fKind == ProgramKind::kVertex && in writeBinaryExpression() 1102 this->write(fProgram.fConfig->fKind == ProgramKind::kVertex ? "attribute " in writeModifiers() 1158 if (fProgram.fConfig->fSettings.fForceHighPrecision || in getTypePrecision() 1165 return fProgram.fConfig->fSettings.fForceHighPrecision ? "highp " : "mediump "; in getTypePrecision() 1508 if (fProgram.fConfig->fSettings.fFragColorIsInOut) { in writeProgramElement() 1545 if (fProgram.fInputs.fUseFlipRTUniform) { in writeInputVars() 1559 for (const ProgramElement* e : fProgram.elements()) { in generateCode() 1568 for (const ProgramElement* e : fProgram.elements()) { in generateCode() 1581 switch (fProgram.fConfig->fKind) { in generateCode() [all …]
|
D | SkSLSPIRVCodeGenerator.cpp | 450 if (precision == Precision::kRelaxed && !fProgram.fConfig->fSettings.fForceHighPrecision) { in nextId() 1075 if (fProgram.fConfig->fSettings.fSharpenTextures) { in writeSpecialIntrinsic() 2124 AutoAttachPoolToThread attach(fProgram.fPool.get()); in writeVariableReference() 2159 AutoAttachPoolToThread attach(fProgram.fPool.get()); in writeVariableReference() 3023 if (fProgram.fInputs.fUseFlipRTUniform && appendRTFlip && type.isStruct()) { in writeInterfaceBlock() 3031 fProgram.fConfig->fSettings.fRTFlipOffset, in writeInterfaceBlock() 3041 AutoAttachPoolToThread attach(fProgram.fPool.get()); in writeInterfaceBlock() 3042 const Type* rtFlipStructType = fProgram.fSymbols->takeOwnershipOfSymbol( in writeInterfaceBlock() 3044 const Variable* modifiedVar = fProgram.fSymbols->takeOwnershipOfSymbol( in writeInterfaceBlock() 3059 fProgram.fSymbols->add(std::make_unique<Field>( in writeInterfaceBlock() [all …]
|
/third_party/skia/samplecode/ |
D | SamplePathTessellators.cpp | 124 fProgram = GrTessellationShader::MakeProgram({alloc, flushState->writeView(), in onPrepare() 162 flushState->bindPipeline(*fProgram, chainBounds); in onExecute() 163 fTessellator->draw(flushState, fProgram->geomProc().willUseTessellationShaders()); in onExecute() 171 GrProgramInfo* fProgram; member in skgpu::__anond4a5caac0111::SamplePathTessellatorOp
|
/third_party/flutter/skia/src/core/ |
D | SkVM.cpp | 24 for (Val id = fProgram.size(); id --> 0; ) { in done() 25 Instruction& inst = fProgram[id]; in done() 33 if (inst.x != NA && fProgram[inst.x].death == 0) { fProgram[inst.x].death = id; } in done() 34 if (inst.y != NA && fProgram[inst.y].death == 0) { fProgram[inst.y].death = id; } in done() 35 if (inst.z != NA && fProgram[inst.z].death == 0) { fProgram[inst.z].death = id; } in done() 40 for (Val id = 0; id < (Val)fProgram.size(); id++) { in done() 41 Builder::Instruction& inst = fProgram[id]; in done() 50 if (inst.x != NA) { inst.hoist &= fProgram[inst.x].hoist; } in done() 51 if (inst.y != NA) { inst.hoist &= fProgram[inst.y].hoist; } in done() 52 if (inst.z != NA) { inst.hoist &= fProgram[inst.z].hoist; } in done() [all …]
|
/third_party/skia/src/core/ |
D | SkRuntimeEffectPriv.h | 141 skvm::Program fProgram; variable
|
/third_party/skia/tests/ |
D | SkSLInterpreterTest.cpp | 26 fProgram = fCompiler.convertProgram(SkSL::ProgramKind::kGeneric, SkSL::String(src), in ProgramBuilder() 28 if (!fProgram) { in ProgramBuilder() 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
|