Home
last modified time | relevance | path

Searched refs:fCompiler (Results 1 – 21 of 21) sorted by relevance

/external/skia/bench/
DSkSLBench.cpp62 , fCompiler(fCaps.shaderCaps()) in SkSLCompileBench()
81 std::unique_ptr<SkSL::Program> program = fCompiler.convertProgram( in onDraw()
85 if (fCompiler.errorCount()) { in onDraw()
86 SK_ABORT("shader compilation failed: %s\n", fCompiler.errorText().c_str()); in onDraw()
91 case Output::kGLSL: SkAssertResult(fCompiler.toGLSL(*program, &result)); break; in onDraw()
92 case Output::kMetal: SkAssertResult(fCompiler.toMetal(*program, &result)); break; in onDraw()
93 case Output::kSPIRV: SkAssertResult(fCompiler.toSPIRV(*program, &result)); break; in onDraw()
102 SkSL::Compiler fCompiler; member in SkSLCompileBench
115 , fCompiler(&fCaps) {} in SkSLParseBench()
127 SkSL::ParsedModule module = fCompiler.moduleForProgramKind(SkSL::ProgramKind::kFragment); in onDelayedSetup()
[all …]
/external/skqp/src/gpu/effects/
DGrSkSLFP.cpp21 fBaseProgram = fCompiler.convertProgram(SkSL::Program::kPipelineStage_Kind, in GrSkSLFPFactory()
24 if (fCompiler.errorCount()) { in GrSkSLFPFactory()
25 SkDebugf("%s\n", fCompiler.errorText().c_str()); in GrSkSLFPFactory()
28 SkASSERT(!fCompiler.errorCount()); in GrSkSLFPFactory()
56 if (&v->fType == fCompiler.context().fInt_Type.get()) { in getSpecialization()
61 } else if (&v->fType == fCompiler.context().fBool_Type.get()) { in getSpecialization()
65 } else if (&v->fType == fCompiler.context().fFloat4_Type.get() || in getSpecialization()
66 &v->fType == fCompiler.context().fHalf4_Type.get()) { in getSpecialization()
68 } else if (&v->fType == fCompiler.context().fFragmentProcessor_Type.get()) { in getSpecialization()
76 std::unique_ptr<SkSL::Program> specialized = fCompiler.specialize(*fBaseProgram, inputMap); in getSpecialization()
[all …]
DGrSkSLFP.h145 SkSL::Compiler fCompiler; variable
/external/skia/src/sksl/dsl/priv/
DDSLWriter.cpp35 : fCompiler(compiler) in DSLWriter()
38 SkSL::ParsedModule module = fCompiler->moduleForProgramKind(kind); in DSLWriter()
41 fOldModifiersPool = fCompiler->fContext->fModifiersPool; in DSLWriter()
42 fCompiler->fContext->fModifiersPool = fModifiersPool.get(); in DSLWriter()
48 fOldConfig = fCompiler->fContext->fConfig; in DSLWriter()
49 fCompiler->fContext->fConfig = fConfig.get(); in DSLWriter()
56 fCompiler->fIRGenerator->start(module, /*isBuiltinCode=*/false, /*externalFunctions=*/nullptr, in DSLWriter()
62 fCompiler->fIRGenerator->finish(); in ~DSLWriter()
68 fCompiler->fContext->fConfig = fOldConfig; in ~DSLWriter()
69 fCompiler->fContext->fModifiersPool = fOldModifiersPool; in ~DSLWriter()
DDSLWriter.h55 return *Instance().fCompiler; in Compiler()
224 SkSL::Compiler* fCompiler; variable
/external/skqp/src/gpu/gl/
DGrGLContext.cpp81 delete fCompiler; in ~GrGLContext()
85 if (!fCompiler) { in compiler()
86 fCompiler = new SkSL::Compiler(); in compiler()
88 return fCompiler; in compiler()
DGrGLContext.h102 GrGLContext(ConstructorArgs&& args) : INHERITED(std::move(args)), fCompiler(nullptr) {} in GrGLContext()
104 mutable SkSL::Compiler* fCompiler; variable
/external/skia/modules/particles/include/
DSkParticleBinding.h41 , fCompiler(compiler) in SkParticleExternalFunction()
46 SkSL::Compiler& fCompiler;
/external/skia/tests/
DSkSLInterpreterTest.cpp18 : fCaps(GrContextOptions{}), fCompiler(&fCaps) { in ProgramBuilder()
26 fProgram = fCompiler.convertProgram(SkSL::ProgramKind::kGeneric, SkSL::String(src),
29 ERRORF(r, "Program failed to compile:\n%s\n%s\n", src, fCompiler.errorText().c_str());
37 SkSL::Compiler fCompiler; member
881 , fCompiler(compiler) {} in ExternalSqrt()
886 outTypes[0] = fCompiler.context().fTypes.fFloat.get(); in getCallParameterTypes()
897 SkSL::Compiler& fCompiler; member in ExternalSqrt
927 , fCompiler(compiler) in ExternalTable()
935 outTypes[0] = fCompiler.context().fTypes.fFloat.get(); in getCallParameterTypes()
948 SkSL::Compiler& fCompiler; member in ExternalTable
DSkDSLRuntimeEffectTest.cpp32 , fCompiler(std::make_unique<SkSL::Compiler>(fCaps.get())) in DSLTestEffect()
36 StartRuntimeShader(fCompiler.get()); in start()
100 std::unique_ptr<SkSL::Compiler> fCompiler; member in DSLTestEffect
/external/skqp/src/gpu/mtl/
DGrMtlGpu.h97 SkSL::Compiler* shaderCompiler() const { return fCompiler.get(); } in shaderCompiler()
191 std::unique_ptr<SkSL::Compiler> fCompiler; variable
DGrMtlGpu.mm99 , fCompiler(new SkSL::Compiler()) function
/external/skqp/src/gpu/vk/
DGrVkGpu.h117 return fCompiler; in shaderCompiler()
293 SkSL::Compiler* fCompiler; variable
DGrVkGpu.cpp159 fCompiler = new SkSL::Compiler(); in GrVkGpu()
262 delete fCompiler; in ~GrVkGpu()
/external/skia/modules/particles/src/
DSkParticleBinding.cpp60 outTypes[0] = fCompiler.context().fTypes.fFloat.get(); in getCallParameterTypes()
178 outTypes[0] = fCompiler.context().fTypes.fFloat2.get(); in getCallParameterTypes()
/external/skia/src/sksl/
DSkSLCompiler.cpp86 : fCompiler(compiler) { in AutoSource()
87 SkASSERT(!fCompiler->fSource); in AutoSource()
88 fCompiler->fSource = source; in AutoSource()
92 fCompiler->fSource = nullptr; in ~AutoSource()
95 Compiler* fCompiler; member in SkSL::AutoSource
/external/skia/src/gpu/
DGrGpu.h68 SkSL::Compiler* shaderCompiler() const { return fCompiler.get(); } in shaderCompiler()
794 std::unique_ptr<SkSL::Compiler> fCompiler; variable
DGrGpu.cpp48 fCompiler = std::make_unique<SkSL::Compiler>(fCaps->shaderCaps()); in initCapsAndCompiler()
/external/skqp/src/sksl/
DSkSLJIT.h298 Compiler& fCompiler; variable
DSkSLJIT.cpp85 : fCompiler(*compiler) { in JIT()
839 SkASSERT(a.fArguments[0]->fType == *fCompiler.context().fSkRasterPipeline_Type); in appendStage()
1849 fCompiler.optimize(*program); in compile()
/external/skia/src/core/
DSkRuntimeEffect.cpp56 SkSL::Compiler* operator->() const { return gImpl->fCompiler; } in operator ->()
80 fCompiler = new SkSL::Compiler(fCaps.get()); in Impl()
84 SkSL::Compiler* fCompiler; member