/third_party/skia/gn/ |
D | sksl_tests.gni | 7 "/sksl/errors/ArgumentCountMismatch.sksl", 8 "/sksl/errors/ArgumentMismatch.sksl", 9 "/sksl/errors/ArgumentModifiers.sksl", 10 "/sksl/errors/ArrayConstructorElementCount.sksl", 11 "/sksl/errors/ArrayIndexOutOfRange.sksl", 12 "/sksl/errors/ArrayInlinedIndexOutOfRange.sksl", 13 "/sksl/errors/ArrayNegation.sksl", 14 "/sksl/errors/ArrayOfInvalidSize.sksl", 15 "/sksl/errors/ArrayOfVoid.sksl", 16 "/sksl/errors/ArrayOfVoidInStruct.sksl", [all …]
|
D | sksl.gni | 21 "$_include/sksl/DSL.h", 22 "$_include/sksl/DSLBlock.h", 23 "$_include/sksl/DSLCase.h", 24 "$_include/sksl/DSLCore.h", 25 "$_include/sksl/DSLExpression.h", 26 "$_include/sksl/DSLFunction.h", 27 "$_include/sksl/DSLLayout.h", 28 "$_include/sksl/DSLModifiers.h", 29 "$_include/sksl/DSLRuntimeEffects.h", 30 "$_include/sksl/DSLStatement.h", [all …]
|
/third_party/skia/src/core/ |
D | SkRuntimeEffectPriv.h | 46 sk_sp<SkRuntimeEffect> SkMakeCachedRuntimeEffect(SkRuntimeEffect::Result (*make)(SkString sksl), 47 SkString sksl); 50 const char* sksl) { in SkMakeCachedRuntimeEffect() argument 51 return SkMakeCachedRuntimeEffect(make, SkString{sksl}); in SkMakeCachedRuntimeEffect() 58 const char* sksl, 61 auto result = make(SkString{sksl}, options);
|
D | SkRuntimeEffect.cpp | 217 SkRuntimeEffect::Result SkRuntimeEffect::MakeFromSource(SkString sksl, in MakeFromSource() argument 231 program = compiler->convertProgram(kind, SkSL::String(sksl.c_str(), sksl.size()), settings); in MakeFromSource() 390 SkRuntimeEffect::Result SkRuntimeEffect::MakeForColorFilter(SkString sksl, const Options& options) { in MakeForColorFilter() argument 391 auto result = MakeFromSource(std::move(sksl), options, SkSL::ProgramKind::kRuntimeColorFilter); in MakeForColorFilter() 396 SkRuntimeEffect::Result SkRuntimeEffect::MakeForShader(SkString sksl, const Options& options) { in MakeForShader() argument 397 auto result = MakeFromSource(std::move(sksl), options, SkSL::ProgramKind::kRuntimeShader); in MakeForShader() 402 SkRuntimeEffect::Result SkRuntimeEffect::MakeForBlender(SkString sksl, const Options& options) { in MakeForBlender() argument 403 auto result = MakeFromSource(std::move(sksl), options, SkSL::ProgramKind::kRuntimeBlender); in MakeForBlender() 442 sk_sp<SkRuntimeEffect> SkMakeCachedRuntimeEffect(SkRuntimeEffect::Result (*make)(SkString sksl), in SkMakeCachedRuntimeEffect() argument 443 SkString sksl) { in SkMakeCachedRuntimeEffect() [all …]
|
/third_party/skia/include/effects/ |
D | SkRuntimeEffect.h | 137 static Result MakeForColorFilter(SkString sksl, const Options&); 138 static Result MakeForColorFilter(SkString sksl) { in MakeForColorFilter() argument 139 return MakeForColorFilter(std::move(sksl), Options{}); in MakeForColorFilter() 148 static Result MakeForShader(SkString sksl, const Options&); 149 static Result MakeForShader(SkString sksl) { in MakeForShader() argument 150 return MakeForShader(std::move(sksl), Options{}); in MakeForShader() 155 static Result MakeForBlender(SkString sksl, const Options&); 156 static Result MakeForBlender(SkString sksl) { in MakeForBlender() argument 157 return MakeForBlender(std::move(sksl), Options{}); in MakeForBlender() 253 static Result MakeFromSource(SkString sksl, const Options& options, SkSL::ProgramKind kind);
|
/third_party/skia/src/gpu/gl/builders/ |
D | GrGLProgramBuilder.cpp | 272 SkSL::String* sksl[kGrShaderTypeCount] = { in finalize() local 331 sksl[i] = &cached_sksl[i]; in finalize() 359 *sksl[kFragment_GrShaderType], in finalize() 391 *sksl[kVertex_GrShaderType], in finalize() 453 if (!this->checkLinkStatus(programID, errorHandler, sksl, glsl)) { in finalize() 476 glsl[i] = GrShaderUtils::PrettyPrint(*sksl[i]); in finalize() 501 SkSL::String* sksl[], const SkSL::String glsl[]) { in checkLinkStatus() argument 506 if (sksl) { in checkLinkStatus() 507 allShaders.appendf("// Vertex SKSL\n%s\n", sksl[kVertex_GrShaderType]->c_str()); in checkLinkStatus() 508 allShaders.appendf("// Fragment SKSL\n%s\n", sksl[kFragment_GrShaderType]->c_str()); in checkLinkStatus() [all …]
|
D | GrGLShaderStringBuilder.cpp | 23 const SkSL::String& sksl, in GrSkSLtoGLSL() argument 30 SkSL::String src = GrShaderUtils::PrettyPrint(sksl); in GrSkSLtoGLSL() 32 const SkSL::String& src = sksl; in GrSkSLtoGLSL() 44 GrShaderUtils::PrintLineByLine(GrShaderUtils::PrettyPrint(sksl)); in GrSkSLtoGLSL()
|
D | GrGLShaderStringBuilder.h | 19 const SkSL::String& sksl,
|
/third_party/skia/tests/ |
D | SkRuntimeEffectTest.cpp | 95 auto test_valid_es3 = [](skiatest::Reporter* r, const char* sksl) { in DEF_TEST() argument 97 auto [effect, errorText] = SkRuntimeEffect::MakeForShader(SkString(sksl), opt); in DEF_TEST() 107 auto test_valid = [r](const char* sksl) { in DEF_TEST() argument 108 auto [effect, errorText] = SkRuntimeEffect::MakeForColorFilter(SkString(sksl)); in DEF_TEST() 112 auto test_invalid = [r](const char* sksl, const char* expected) { in DEF_TEST() argument 113 auto [effect, errorText] = SkRuntimeEffect::MakeForColorFilter(SkString(sksl)); in DEF_TEST() 158 auto test_valid = [r](const char* sksl) { in DEF_TEST() argument 159 auto [effect, errorText] = SkRuntimeEffect::MakeForBlender(SkString(sksl)); in DEF_TEST() 163 auto test_invalid = [r](const char* sksl, const char* expected) { in DEF_TEST() argument 164 auto [effect, errorText] = SkRuntimeEffect::MakeForBlender(SkString(sksl)); in DEF_TEST() [all …]
|
/third_party/skia/src/gpu/vk/ |
D | GrVkPipelineStateBuilder.cpp | 75 const SkSL::String& sksl, in createVkShaderModule() argument 81 if (!GrCompileVkShaderModule(fGpu, sksl, stage, shaderModule, in createVkShaderModule() 230 SkSL::String* sksl[kGrShaderTypeCount] = { in finalize() local 239 sksl[i] = &cached_sksl[i]; in finalize() 245 *sksl[kVertex_GrShaderType], in finalize() 253 *sksl[kFragment_GrShaderType], in finalize() 275 shaders[i] = GrShaderUtils::PrettyPrint(*sksl[i]); in finalize()
|
/third_party/skia/platform_tools/android/apps/AndroidKit/src/main/java/org/skia/androidkit/ |
D | RuntimeShaderBuilder.java | 16 public RuntimeShaderBuilder(String sksl) { in RuntimeShaderBuilder() argument 17 mNativeInstance = nCreate(sksl); in RuntimeShaderBuilder() 50 private static native long nCreate(String sksl); in nCreate() argument
|
/third_party/skia/platform_tools/android/apps/androidkitdemo/src/main/java/org/skia/androidkitdemo1/samples/ |
D | RuntimeSample.java | 25 String sksl = ""; in RuntimeSample() local 31 sksl = new String(data); in RuntimeSample() 34 mShaderBuilder = new RuntimeShaderBuilder(sksl); in RuntimeSample()
|
/third_party/skia/src/sksl/ |
D | BUILD.bazel | 210 "generated/sksl_frag.dehydrated.sksl", 211 "generated/sksl_gpu.dehydrated.sksl", 212 "generated/sksl_public.dehydrated.sksl", 213 "generated/sksl_rt_shader.dehydrated.sksl", 214 "generated/sksl_vert.dehydrated.sksl",
|
/third_party/skia/src/gpu/gradients/ |
D | GrGradientShader.cpp | 145 SkString sksl; in make_unrolled_colorizer() local 160 sksl.append("uniform half4 thresholds1_7, thresholds9_13;"); in make_unrolled_colorizer() 165 sksl.appendf("uniform float4 scale[%d];", intervalCount); in make_unrolled_colorizer() 166 sksl.appendf("uniform float4 bias[%d];", intervalCount); in make_unrolled_colorizer() 171 sksl.appendf(R"( in make_unrolled_colorizer() 229 auto result = SkRuntimeEffect::MakeForShader(std::move(sksl)); in make_unrolled_colorizer() 265 SkString sksl; in make_looping_colorizer() local 279 sksl.appendf(R"( in make_looping_colorizer() 320 auto result = SkRuntimeEffect::MakeForShader(std::move(sksl), in make_looping_colorizer()
|
/third_party/skia/src/gpu/d3d/ |
D | GrD3DPipelineStateBuilder.cpp | 138 const SkSL::String& sksl, in compileD3DProgram() argument 143 SkSL::String src = GrShaderUtils::PrettyPrint(sksl); in compileD3DProgram() 145 const SkSL::String& src = sksl; in compileD3DProgram() 162 GrShaderUtils::PrintLineByLine(GrShaderUtils::PrettyPrint(sksl)); in compileD3DProgram() 596 SkSL::String* sksl[kGrShaderTypeCount] = { in finalize() local 607 sksl[i] = &cached_sksl[i]; in finalize() 613 shaders[shaderType] = this->compileD3DProgram(kind, *sksl[shaderType], settings, in finalize() 630 hlsl[i] = GrShaderUtils::PrettyPrint(*sksl[i]); in finalize()
|
/third_party/skia/src/effects/imagefilters/ |
D | SkRuntimeImageFilter.cpp | 74 SkString sksl; in CreateProc() local 75 buffer.readString(&sksl); in CreateProc() 78 auto effect = SkMakeCachedRuntimeEffect(SkRuntimeEffect::MakeForShader, std::move(sksl)); in CreateProc()
|
/third_party/skia/modules/canvaskit/ |
D | rt_shader.js | 7 CanvasKit.RuntimeEffect.Make = function(sksl, errorCallback) { argument 15 return CanvasKit.RuntimeEffect._Make(sksl, callbackObj);
|
/third_party/skia/tools/viewer/ |
D | SkSLSlide.cpp | 85 SkString sksl("uniform float3 iResolution;\n" in rebuild() local 88 sksl.append(fSkSL); in rebuild() 99 auto [effect, errorText] = SkRuntimeEffect::MakeForShader(sksl); in rebuild() 105 Viewer::ShaderErrorHandler()->compileError(sksl.c_str(), errorText.c_str()); in rebuild()
|
/third_party/skia/platform_tools/android/apps/androidkitdemo/src/main/java/org/skia/androidkitdemo1/ |
D | TextActivity.java | 22 private static final String sksl = field in TextRenderer 51 builder = new RuntimeShaderBuilder(sksl); in onSurfaceInitialized()
|
/third_party/skia/ |
D | BUILD.bazel | 41 "//src/sksl:srcs", 62 "//include/sksl:hdrs", 145 textual_hdrs = ["//src/sksl:txts"],
|
D | BUILD.gn | 833 "src/sksl/lex/DFA.h", 834 "src/sksl/lex/DFAState.h", 835 "src/sksl/lex/LexUtil.h", 836 "src/sksl/lex/Main.cpp", 837 "src/sksl/lex/NFA.cpp", 838 "src/sksl/lex/NFA.h", 839 "src/sksl/lex/NFAState.h", 840 "src/sksl/lex/NFAtoDFA.h", 841 "src/sksl/lex/RegexNode.cpp", 842 "src/sksl/lex/RegexNode.h", [all …]
|
/third_party/skia/tests/sksl/ |
D | README.txt | 2 in the /resources/sksl/ directory.
|
/third_party/skia/resources/sksl/ |
D | README.txt | 2 The compiled output files are in the /tests/sksl/ directory.
|
/third_party/skia/src/gpu/mtl/ |
D | GrMtlUtil.mm | 19 #include "src/sksl/SkSLCompiler.h" 61 const SkSL::String& sksl, 68 SkSL::String src = GrShaderUtils::PrettyPrint(sksl); 70 const SkSL::String& src = sksl; 86 GrShaderUtils::PrintLineByLine(GrShaderUtils::PrettyPrint(sksl));
|
/third_party/skia/resources/sksl/workarounds/ |
D | RewriteMatrixComparisons.sksl | 3 // This is patterned on MatrixEquality.sksl.
|