Home
last modified time | relevance | path

Searched refs:ProgramKind (Results 1 – 25 of 49) sorted by relevance

12

/external/skia/src/sksl/
DSkSLProgramSettings.h76 ProgramKind fKind;
81 (fKind == ProgramKind::kRuntimeColorFilter || in strictES2Mode()
82 fKind == ProgramKind::kRuntimeShader || in strictES2Mode()
83 fKind == ProgramKind::kGeneric); in strictES2Mode()
DSkSLCompiler.cpp215 fGPUModule = this->parseModule(ProgramKind::kFragment, MODULE_DATA(gpu), fPrivateModule); in loadGPUModule()
222 fFragmentModule = this->parseModule(ProgramKind::kFragment, MODULE_DATA(frag), in loadFragmentModule()
230 fVertexModule = this->parseModule(ProgramKind::kVertex, MODULE_DATA(vert), in loadVertexModule()
238 fGeometryModule = this->parseModule(ProgramKind::kGeometry, MODULE_DATA(geom), in loadGeometryModule()
246 fFPModule = this->parseModule(ProgramKind::kFragmentProcessor, MODULE_DATA(fp), in loadFPModule()
254 fPublicModule = this->parseModule(ProgramKind::kGeneric, MODULE_DATA(public), fRootModule); in loadPublicModule()
280 fRuntimeColorFilterModule = this->parseModule(ProgramKind::kRuntimeColorFilter, in loadRuntimeColorFilterModule()
291 ProgramKind::kRuntimeShader, MODULE_DATA(rt_shader), this->loadPublicModule()); in loadRuntimeShaderModule()
297 const ParsedModule& Compiler::moduleForProgramKind(ProgramKind kind) { in moduleForProgramKind()
299 case ProgramKind::kVertex: return this->loadVertexModule(); break; in moduleForProgramKind()
[all …]
DSkSLCompiler.h55 ProgramKind fKind;
116 ProgramKind kind,
175 LoadedModule loadModule(ProgramKind kind, ModuleData data, std::shared_ptr<SymbolTable> base,
177 ParsedModule parseModule(ProgramKind kind, ModuleData data, const ParsedModule& base);
183 const ParsedModule& moduleForProgramKind(ProgramKind kind);
DSkSLMain.cpp275 SkSL::ProgramKind kind; in processCommand()
278 kind = SkSL::ProgramKind::kVertex; in processCommand()
280 kind = SkSL::ProgramKind::kFragment; in processCommand()
282 kind = SkSL::ProgramKind::kGeometry; in processCommand()
284 kind = SkSL::ProgramKind::kFragmentProcessor; in processCommand()
286 kind = SkSL::ProgramKind::kRuntimeColorFilter; in processCommand()
288 kind = SkSL::ProgramKind::kRuntimeShader; in processCommand()
DSkSLIRGenerator.cpp127 if (this->programKind() != ProgramKind::kFragment && in convertExtension()
128 this->programKind() != ProgramKind::kVertex && in convertExtension()
129 this->programKind() != ProgramKind::kGeometry) { in convertExtension()
167 if (fRTAdjust && this->programKind() == ProgramKind::kGeometry) { in convertStatement()
262 if (this->programKind() != ProgramKind::kFragmentProcessor) { in checkVarDeclaration()
289 if (this->programKind() == ProgramKind::kRuntimeColorFilter || in checkVarDeclaration()
290 this->programKind() == ProgramKind::kRuntimeShader) { in checkVarDeclaration()
304 if (this->programKind() != ProgramKind::kRuntimeColorFilter && in checkVarDeclaration()
305 this->programKind() != ProgramKind::kRuntimeShader) { in checkVarDeclaration()
340 this->programKind() == ProgramKind::kFragment && name != Compiler::FRAGCOLOR_NAME) { in convertVar()
[all …]
/external/skia/src/sksl/ir/
DSkSLFunctionDeclaration.cpp88 ProgramKind kind = context.fConfig->fKind; in check_parameters()
89 if (isMain && (kind == ProgramKind::kRuntimeColorFilter || in check_parameters()
90 kind == ProgramKind::kRuntimeShader || in check_parameters()
91 kind == ProgramKind::kFragmentProcessor)) { in check_parameters()
104 if (isMain && (kind == ProgramKind::kFragment)) { in check_parameters()
121 ProgramKind kind = context.fConfig->fKind; in check_main_signature()
131 p.modifiers().fLayout.fBuiltin == (kind == ProgramKind::kFragment in check_main_signature()
143 case ProgramKind::kRuntimeColorFilter: { in check_main_signature()
156 case ProgramKind::kRuntimeShader: { in check_main_signature()
171 case ProgramKind::kFragmentProcessor: { in check_main_signature()
[all …]
DSkSLVarDeclarations.cpp53 context.fConfig->fKind != ProgramKind::kFragmentProcessor && in Convert()
102 context.fConfig->fKind != ProgramKind::kFragmentProcessor && in Make()
/external/skia/bench/
DSkSLBench.cpp82 SkSL::ProgramKind::kFragment, in onDraw()
127 SkSL::ParsedModule module = fCompiler.moduleForProgramKind(SkSL::ProgramKind::kFragment); in onDelayedSetup()
577 compiler.moduleForProgramKind(SkSL::ProgramKind::kVertex); in RunSkSLMemoryBenchmarks()
578 compiler.moduleForProgramKind(SkSL::ProgramKind::kFragment); in RunSkSLMemoryBenchmarks()
588 compiler.moduleForProgramKind(SkSL::ProgramKind::kRuntimeColorFilter); in RunSkSLMemoryBenchmarks()
589 compiler.moduleForProgramKind(SkSL::ProgramKind::kRuntimeShader); in RunSkSLMemoryBenchmarks()
/external/skia/src/gpu/vk/
DGrVkUtil.cpp78 SkSL::ProgramKind vk_shader_stage_to_skiasl_kind(VkShaderStageFlagBits stage) { in vk_shader_stage_to_skiasl_kind()
80 return SkSL::ProgramKind::kVertex; in vk_shader_stage_to_skiasl_kind()
83 return SkSL::ProgramKind::kGeometry; in vk_shader_stage_to_skiasl_kind()
86 return SkSL::ProgramKind::kFragment; in vk_shader_stage_to_skiasl_kind()
/external/skia/src/sksl/dsl/
DDSLFunction.cpp47 SkSL::ProgramKind kind = DSLWriter::Context().fConfig->fKind; in init()
48 if (isMain && (kind == ProgramKind::kRuntimeColorFilter || in init()
49 kind == ProgramKind::kRuntimeShader || in init()
50 kind == ProgramKind::kFragmentProcessor)) { in init()
DDSLRuntimeEffects.cpp23 Start(compiler, SkSL::ProgramKind::kRuntimeShader); in StartRuntimeShader()
/external/skia/src/gpu/d3d/
DGrD3DPipelineStateBuilder.cpp82 SkSL::ProgramKind kind) { in GrCompileHLSLShader()
86 case SkSL::ProgramKind::kVertex: in GrCompileHLSLShader()
89 case SkSL::ProgramKind::kGeometry: in GrCompileHLSLShader()
92 case SkSL::ProgramKind::kFragment: in GrCompileHLSLShader()
127 auto compile = [&](SkSL::ProgramKind kind, GrShaderType shaderType) { in loadHLSLFromCache()
135 return compile(SkSL::ProgramKind::kVertex, kVertex_GrShaderType) && in loadHLSLFromCache()
136 compile(SkSL::ProgramKind::kFragment, kFragment_GrShaderType) && in loadHLSLFromCache()
138 compile(SkSL::ProgramKind::kGeometry, kGeometry_GrShaderType)); in loadHLSLFromCache()
142 SkSL::ProgramKind kind, in compileD3DProgram()
628 auto compile = [&](SkSL::ProgramKind kind, GrShaderType shaderType) { in finalize()
[all …]
/external/skia/src/gpu/
DGrShaderUtils.cpp227 void PrintShaderBanner(SkSL::ProgramKind programKind) { in PrintShaderBanner()
230 case SkSL::ProgramKind::kVertex: typeName = "Vertex"; break; in PrintShaderBanner()
231 case SkSL::ProgramKind::kGeometry: typeName = "Geometry"; break; in PrintShaderBanner()
232 case SkSL::ProgramKind::kFragment: typeName = "Fragment"; break; in PrintShaderBanner()
DGrShaderUtils.h35 void PrintShaderBanner(SkSL::ProgramKind programKind);
/external/skia/tests/
DSkSLGLSLTestbed.cpp15 SkSL::ProgramKind kind = SkSL::ProgramKind::kFragment) { in test()
DSkSLMetalTestbed.cpp15 SkSL::ProgramKind kind = SkSL::ProgramKind::kFragment) { in test()
DSkSLSPIRVTestbed.cpp15 SkSL::ProgramKind kind = SkSL::ProgramKind::kFragment) { in test()
/external/skia/src/gpu/gl/builders/
DGrGLProgramBuilder.cpp335 SkSL::ProgramKind::kFragment, in finalize()
360 SkSL::ProgramKind::kVertex, in finalize()
421 SkSL::ProgramKind::kGeometry, in finalize()
579 auto compileShader = [&](SkSL::ProgramKind kind, const SkSL::String& sksl, GrGLenum type) { in PrecompileProgram()
596 if (!compileShader(SkSL::ProgramKind::kFragment, in PrecompileProgram()
599 !compileShader(SkSL::ProgramKind::kVertex, in PrecompileProgram()
603 !compileShader(SkSL::ProgramKind::kGeometry, in PrecompileProgram()
DGrGLShaderStringBuilder.h18 SkSL::ProgramKind programKind,
/external/skia/include/effects/
DSkRuntimeEffect.h30 enum class ProgramKind : int8_t;
209 static Result Make(std::unique_ptr<SkSL::Program> program, SkSL::ProgramKind kind);
211 static Result Make(SkString sksl, const Options& options, SkSL::ProgramKind kind);
214 const Options& options, SkSL::ProgramKind kind);
/external/skia/include/private/
DSkSLProgramKind.h18 enum class ProgramKind : int8_t { enum
/external/skia/src/core/
DSkRuntimeEffect.cpp134 SkSL::ProgramKind kind) { in Make()
158 SkSL::ProgramKind kind) { in Make()
166 SkSL::ProgramKind kind) { in Make()
188 case SkSL::ProgramKind::kRuntimeColorFilter: flags |= kAllowColorFilter_Flag; break; in Make()
189 case SkSL::ProgramKind::kRuntimeShader: flags |= kAllowShader_Flag; break; in Make()
276 auto result = Make(std::move(sksl), options, SkSL::ProgramKind::kRuntimeColorFilter); in MakeForColorFilter()
282 auto result = Make(std::move(sksl), options, SkSL::ProgramKind::kRuntimeShader); in MakeForShader()
288 auto result = Make(std::move(program), SkSL::ProgramKind::kRuntimeColorFilter); in MakeForColorFilter()
294 auto result = Make(std::move(program), SkSL::ProgramKind::kRuntimeShader); in MakeForShader()
/external/skia/fuzz/oss_fuzz/
DFuzzSKSL2GLSL.cpp19 SkSL::ProgramKind::kFragment, in FuzzSKSL2GLSL()
DFuzzSKSL2Metal.cpp19 SkSL::ProgramKind::kFragment, in FuzzSKSL2Metal()
DFuzzSKSL2SPIRV.cpp19 SkSL::ProgramKind::kFragment, in FuzzSKSL2SPIRV()

12