/external/skia/bench/ |
D | SkSLBench.cpp | 62 , 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/ |
D | GrSkSLFP.cpp | 21 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 …]
|
D | GrSkSLFP.h | 145 SkSL::Compiler fCompiler; variable
|
/external/skia/src/sksl/dsl/priv/ |
D | DSLWriter.cpp | 35 : 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()
|
D | DSLWriter.h | 55 return *Instance().fCompiler; in Compiler() 224 SkSL::Compiler* fCompiler; variable
|
/external/skqp/src/gpu/gl/ |
D | GrGLContext.cpp | 81 delete fCompiler; in ~GrGLContext() 85 if (!fCompiler) { in compiler() 86 fCompiler = new SkSL::Compiler(); in compiler() 88 return fCompiler; in compiler()
|
D | GrGLContext.h | 102 GrGLContext(ConstructorArgs&& args) : INHERITED(std::move(args)), fCompiler(nullptr) {} in GrGLContext() 104 mutable SkSL::Compiler* fCompiler; variable
|
/external/skia/modules/particles/include/ |
D | SkParticleBinding.h | 41 , fCompiler(compiler) in SkParticleExternalFunction() 46 SkSL::Compiler& fCompiler;
|
/external/skia/tests/ |
D | SkSLInterpreterTest.cpp | 18 : 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
|
D | SkDSLRuntimeEffectTest.cpp | 32 , 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/ |
D | GrMtlGpu.h | 97 SkSL::Compiler* shaderCompiler() const { return fCompiler.get(); } in shaderCompiler() 191 std::unique_ptr<SkSL::Compiler> fCompiler; variable
|
D | GrMtlGpu.mm | 99 , fCompiler(new SkSL::Compiler()) function
|
/external/skqp/src/gpu/vk/ |
D | GrVkGpu.h | 117 return fCompiler; in shaderCompiler() 293 SkSL::Compiler* fCompiler; variable
|
D | GrVkGpu.cpp | 159 fCompiler = new SkSL::Compiler(); in GrVkGpu() 262 delete fCompiler; in ~GrVkGpu()
|
/external/skia/modules/particles/src/ |
D | SkParticleBinding.cpp | 60 outTypes[0] = fCompiler.context().fTypes.fFloat.get(); in getCallParameterTypes() 178 outTypes[0] = fCompiler.context().fTypes.fFloat2.get(); in getCallParameterTypes()
|
/external/skia/src/sksl/ |
D | SkSLCompiler.cpp | 86 : 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/ |
D | GrGpu.h | 68 SkSL::Compiler* shaderCompiler() const { return fCompiler.get(); } in shaderCompiler() 794 std::unique_ptr<SkSL::Compiler> fCompiler; variable
|
D | GrGpu.cpp | 48 fCompiler = std::make_unique<SkSL::Compiler>(fCaps->shaderCaps()); in initCapsAndCompiler()
|
/external/skqp/src/sksl/ |
D | SkSLJIT.h | 298 Compiler& fCompiler; variable
|
D | SkSLJIT.cpp | 85 : 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/ |
D | SkRuntimeEffect.cpp | 56 SkSL::Compiler* operator->() const { return gImpl->fCompiler; } in operator ->() 80 fCompiler = new SkSL::Compiler(fCaps.get()); in Impl() 84 SkSL::Compiler* fCompiler; member
|