Home
last modified time | relevance | path

Searched refs:fProgram (Results 1 – 22 of 22) sorted by relevance

/external/skia/src/sksl/
DSkSLGLSLCodeGenerator.cpp71 return fProgram.fSettings.fCaps->usesPrecisionModifiers(); in usesPrecisionModifiers()
236 ASSERT(!fProgram.fSettings.fCaps->canUseMinAndAbsTogether()); in writeMinAbsHack()
436 if (!fProgram.fSettings.fCaps->canUseMinAndAbsTogether() && c.fFunction.fName == "min" && in writeFunctionCall()
450 if (!fProgram.fSettings.fCaps->canUseFractForNegativeValues() && c.fFunction.fName == "fract" && in writeFunctionCall()
462 if (fProgram.fSettings.fCaps->mustForceNegatedAtanParamToFloat() && in writeFunctionCall()
477 fProgram.fSettings.fCaps->generation() < k150_GrGLSLGeneration) { in writeFunctionCall()
483 fProgram.fSettings.fCaps->generation() < k140_GrGLSLGeneration) { in writeFunctionCall()
489 fProgram.fSettings.fCaps->generation() < k130_GrGLSLGeneration) { in writeFunctionCall()
495 fProgram.fSettings.fCaps->generation() < k130_GrGLSLGeneration) { in writeFunctionCall()
501 c.fFunction.fBuiltin && fProgram.fSettings.fCaps->shaderDerivativeExtensionString()) { in writeFunctionCall()
[all …]
DSkSLMetalCodeGenerator.cpp395 switch (fProgram.fKind) { in writeFunction()
454 ASSERT(!fProgram.fSettings.fFragColorIsInOut); in writeFunction()
457 switch (fProgram.fKind) { in writeFunction()
475 switch (fProgram.fKind) { in writeFunction()
571 if (fProgram.fSettings.fCaps->imageLoadStoreExtensionString()) { in writeVarDeclarations()
573 fHeader.writeText(fProgram.fSettings.fCaps->imageLoadStoreExtensionString()); in writeVarDeclarations()
732 for (const auto& e : fProgram.fElements) { in writeUniformStruct()
770 if (Program::kFragment_Kind == fProgram.fKind) { in writeInputStruct()
773 for (const auto& e : fProgram.fElements) { in writeInputStruct()
803 for (const auto& e : fProgram.fElements) { in writeOutputStruct()
[all …]
DSkSLCodeGenerator.h23 : fProgram(*program) in CodeGenerator()
33 const Program& fProgram;
DSkSLCPPCodeGenerator.cpp298 for (const auto& p : fProgram.fElements) { in writeFunctionCall()
438 for (const auto& p : fProgram.fElements) { in writePrivateVars()
461 for (const auto& p : fProgram.fElements) { in writePrivateVarValues()
527 for (const auto& p : fProgram.fElements) { in writeEmitCode()
600 for (const auto& p : fProgram.fElements) { in writeSetData()
753 for (const auto& p : fProgram.fElements) { in generateCode()
767 this->writef("%s\n", HCodeGenerator::GetHeader(fProgram, fErrors).c_str()); in generateCode()
DSkSLHCodeGenerator.cpp273 this->writef("%s\n", GetHeader(fProgram, fErrors).c_str()); in generateCode()
287 for (const auto& p : fProgram.fElements) { in generateCode()
DSkSLSPIRVCodeGenerator.cpp363 if (fProgram.fKind == Program::kGeometry_Kind) { in writeCapabilities()
883 if (fProgram.fSettings.fSharpenTextures) { in writeSpecialIntrinsic()
1673 fProgram.fSettings.fFlipY) { in writeVariableReference()
2462 if (fProgram.fInputs.fRTHeight) { in writeInterfaceBlock()
2483 if (fProgram.fInputs.fRTHeight) { in writeInterfaceBlock()
2517 ASSERT(!fProgram.fSettings.fFragColorIsInOut); in writeGlobalVars()
2824 ASSERT(fProgram.fKind == Program::kGeometry_Kind); in writeGeometryShaderExecutionMode()
2826 for (size_t i = 0; i < fProgram.fElements.size(); i++) { in writeGeometryShaderExecutionMode()
2827 if (fProgram.fElements[i]->fKind == ProgramElement::kModifiers_Kind) { in writeGeometryShaderExecutionMode()
2828 const Modifiers& m = ((ModifiersDeclaration&) *fProgram.fElements[i]).fModifiers; in writeGeometryShaderExecutionMode()
[all …]
/external/skqp/src/sksl/
DSkSLGLSLCodeGenerator.cpp71 return fProgram.fSettings.fCaps->usesPrecisionModifiers(); in usesPrecisionModifiers()
236 ASSERT(!fProgram.fSettings.fCaps->canUseMinAndAbsTogether()); in writeMinAbsHack()
436 if (!fProgram.fSettings.fCaps->canUseMinAndAbsTogether() && c.fFunction.fName == "min" && in writeFunctionCall()
450 if (!fProgram.fSettings.fCaps->canUseFractForNegativeValues() && c.fFunction.fName == "fract" && in writeFunctionCall()
462 if (fProgram.fSettings.fCaps->mustForceNegatedAtanParamToFloat() && in writeFunctionCall()
477 fProgram.fSettings.fCaps->generation() < k150_GrGLSLGeneration) { in writeFunctionCall()
483 fProgram.fSettings.fCaps->generation() < k140_GrGLSLGeneration) { in writeFunctionCall()
489 fProgram.fSettings.fCaps->generation() < k130_GrGLSLGeneration) { in writeFunctionCall()
495 fProgram.fSettings.fCaps->generation() < k130_GrGLSLGeneration) { in writeFunctionCall()
501 c.fFunction.fBuiltin && fProgram.fSettings.fCaps->shaderDerivativeExtensionString()) { in writeFunctionCall()
[all …]
DSkSLMetalCodeGenerator.cpp395 switch (fProgram.fKind) { in writeFunction()
454 ASSERT(!fProgram.fSettings.fFragColorIsInOut); in writeFunction()
457 switch (fProgram.fKind) { in writeFunction()
475 switch (fProgram.fKind) { in writeFunction()
571 if (fProgram.fSettings.fCaps->imageLoadStoreExtensionString()) { in writeVarDeclarations()
573 fHeader.writeText(fProgram.fSettings.fCaps->imageLoadStoreExtensionString()); in writeVarDeclarations()
732 for (const auto& e : fProgram.fElements) { in writeUniformStruct()
770 if (Program::kFragment_Kind == fProgram.fKind) { in writeInputStruct()
773 for (const auto& e : fProgram.fElements) { in writeInputStruct()
803 for (const auto& e : fProgram.fElements) { in writeOutputStruct()
[all …]
DSkSLCodeGenerator.h23 : fProgram(*program) in CodeGenerator()
33 const Program& fProgram;
DSkSLCPPCodeGenerator.cpp298 for (const auto& p : fProgram.fElements) { in writeFunctionCall()
438 for (const auto& p : fProgram.fElements) { in writePrivateVars()
461 for (const auto& p : fProgram.fElements) { in writePrivateVarValues()
527 for (const auto& p : fProgram.fElements) { in writeEmitCode()
600 for (const auto& p : fProgram.fElements) { in writeSetData()
753 for (const auto& p : fProgram.fElements) { in generateCode()
767 this->writef("%s\n", HCodeGenerator::GetHeader(fProgram, fErrors).c_str()); in generateCode()
DSkSLHCodeGenerator.cpp273 this->writef("%s\n", GetHeader(fProgram, fErrors).c_str()); in generateCode()
287 for (const auto& p : fProgram.fElements) { in generateCode()
DSkSLSPIRVCodeGenerator.cpp363 if (fProgram.fKind == Program::kGeometry_Kind) { in writeCapabilities()
1665 fProgram.fSettings.fFlipY) { in writeVariableReference()
2454 if (fProgram.fInputs.fRTHeight) { in writeInterfaceBlock()
2479 if (fProgram.fInputs.fRTHeight) { in writeInterfaceBlock()
2513 ASSERT(!fProgram.fSettings.fFragColorIsInOut); in writeGlobalVars()
2820 ASSERT(fProgram.fKind == Program::kGeometry_Kind); in writeGeometryShaderExecutionMode()
2822 for (size_t i = 0; i < fProgram.fElements.size(); i++) { in writeGeometryShaderExecutionMode()
2823 if (fProgram.fElements[i]->fKind == ProgramElement::kModifiers_Kind) { in writeGeometryShaderExecutionMode()
2824 const Modifiers& m = ((ModifiersDeclaration&) *fProgram.fElements[i]).fModifiers; in writeGeometryShaderExecutionMode()
3017 this->writeInstructions(fProgram, buffer); in generateCode()
/external/skqp/tools/gpu/atlastext/
DGLTestAtlasTextRenderer.cpp41 bool initialized() const { return 0 != fProgram; } in initialized()
59 GrGLuint fProgram = 0; member in __anon4dfc4f350111::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/skia/tools/gpu/atlastext/
DGLTestAtlasTextRenderer.cpp41 bool initialized() const { return 0 != fProgram; } in initialized()
59 GrGLuint fProgram = 0; member in __anoned08641e0111::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/
DGrGLGpuProgramCache.cpp27 : fProgram(std::move(program)) {} in Entry()
29 sk_sp<GrGLProgram> fProgram; member
102 return SkRef((*entry)->fProgram.get()); in refProgram()
DGrGLGpu.cpp276 if (0 != fCopyPrograms[i].fProgram) { in ~GrGLGpu()
277 GL_CALL(DeleteProgram(fCopyPrograms[i].fProgram)); in ~GrGLGpu()
282 if (0 != fMipmapPrograms[i].fProgram) { in ~GrGLGpu()
283 GL_CALL(DeleteProgram(fMipmapPrograms[i].fProgram)); in ~GrGLGpu()
291 if (fClearColorProgram.fProgram) { in ~GrGLGpu()
292 GL_CALL(DeleteProgram(fClearColorProgram.fProgram)); in ~GrGLGpu()
314 if (fCopyPrograms[i].fProgram) { in disconnect()
315 GL_CALL(DeleteProgram(fCopyPrograms[i].fProgram)); in disconnect()
319 if (fMipmapPrograms[i].fProgram) { in disconnect()
320 GL_CALL(DeleteProgram(fMipmapPrograms[i].fProgram)); in disconnect()
[all …]
DGrGLGpu.h612 GrGLuint fProgram = 0; member
621 GrGLuint fProgram = 0; member
632 GrGLuint fProgram = 0; member
/external/skia/src/gpu/gl/
DGrGLGpuProgramCache.cpp27 : fProgram(std::move(program)) {} in Entry()
29 sk_sp<GrGLProgram> fProgram; member
102 return SkRef((*entry)->fProgram.get()); in refProgram()
DGrGLGpu.cpp276 if (0 != fCopyPrograms[i].fProgram) { in ~GrGLGpu()
277 GL_CALL(DeleteProgram(fCopyPrograms[i].fProgram)); in ~GrGLGpu()
282 if (0 != fMipmapPrograms[i].fProgram) { in ~GrGLGpu()
283 GL_CALL(DeleteProgram(fMipmapPrograms[i].fProgram)); in ~GrGLGpu()
291 if (fClearColorProgram.fProgram) { in ~GrGLGpu()
292 GL_CALL(DeleteProgram(fClearColorProgram.fProgram)); in ~GrGLGpu()
314 if (fCopyPrograms[i].fProgram) { in disconnect()
315 GL_CALL(DeleteProgram(fCopyPrograms[i].fProgram)); in disconnect()
319 if (fMipmapPrograms[i].fProgram) { in disconnect()
320 GL_CALL(DeleteProgram(fMipmapPrograms[i].fProgram)); in disconnect()
[all …]
DGrGLGpu.h599 GrGLuint fProgram = 0; member
608 GrGLuint fProgram = 0; member
619 GrGLuint fProgram = 0; member
/external/skia/tools/gpu/gl/debug/
DDebugGLTestContext.cpp44 , fProgram(nullptr) in DebugInterface()
946 GrProgramObj* fProgram; member in __anon209e5ac80111::DebugInterface
1147 if (fProgram) { in useProgram()
1148 GrAlwaysAssert(fProgram->getInUse()); in useProgram()
1149 fProgram->resetInUse(); in useProgram()
1151 GrAlwaysAssert(!fProgram->getDeleted()); in useProgram()
1152 fProgram->unref(); in useProgram()
1155 fProgram = program; in useProgram()
1157 if (fProgram) { in useProgram()
1158 GrAlwaysAssert(!fProgram->getDeleted()); in useProgram()
[all …]
/external/skqp/tools/gpu/gl/debug/
DDebugGLTestContext.cpp44 , fProgram(nullptr) in DebugInterface()
940 GrProgramObj* fProgram; member in __anonaa61809f0111::DebugInterface
1141 if (fProgram) { in useProgram()
1142 GrAlwaysAssert(fProgram->getInUse()); in useProgram()
1143 fProgram->resetInUse(); in useProgram()
1145 GrAlwaysAssert(!fProgram->getDeleted()); in useProgram()
1146 fProgram->unref(); in useProgram()
1149 fProgram = program; in useProgram()
1151 if (fProgram) { in useProgram()
1152 GrAlwaysAssert(!fProgram->getDeleted()); in useProgram()
[all …]