Home
last modified time | relevance | path

Searched refs:sksl (Results 1 – 25 of 40) sorted by relevance

12

/third_party/skia/gn/
Dsksl_tests.gni7 "/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 …]
Dsksl.gni21 "$_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/
DSkRuntimeEffectPriv.h46 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);
DSkRuntimeEffect.cpp217 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/
DSkRuntimeEffect.h137 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/
DGrGLProgramBuilder.cpp272 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 …]
DGrGLShaderStringBuilder.cpp23 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()
DGrGLShaderStringBuilder.h19 const SkSL::String& sksl,
/third_party/skia/tests/
DSkRuntimeEffectTest.cpp95 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/
DGrVkPipelineStateBuilder.cpp75 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/
DRuntimeShaderBuilder.java16 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/
DRuntimeSample.java25 String sksl = ""; in RuntimeSample() local
31 sksl = new String(data); in RuntimeSample()
34 mShaderBuilder = new RuntimeShaderBuilder(sksl); in RuntimeSample()
/third_party/skia/src/sksl/
DBUILD.bazel210 "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/
DGrGradientShader.cpp145 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/
DGrD3DPipelineStateBuilder.cpp138 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/
DSkRuntimeImageFilter.cpp74 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/
Drt_shader.js7 CanvasKit.RuntimeEffect.Make = function(sksl, errorCallback) { argument
15 return CanvasKit.RuntimeEffect._Make(sksl, callbackObj);
/third_party/skia/tools/viewer/
DSkSLSlide.cpp85 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/
DTextActivity.java22 private static final String sksl = field in TextRenderer
51 builder = new RuntimeShaderBuilder(sksl); in onSurfaceInitialized()
/third_party/skia/
DBUILD.bazel41 "//src/sksl:srcs",
62 "//include/sksl:hdrs",
145 textual_hdrs = ["//src/sksl:txts"],
DBUILD.gn833 "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/
DREADME.txt2 in the /resources/sksl/ directory.
/third_party/skia/resources/sksl/
DREADME.txt2 The compiled output files are in the /tests/sksl/ directory.
/third_party/skia/src/gpu/mtl/
DGrMtlUtil.mm19 #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/
DRewriteMatrixComparisons.sksl3 // This is patterned on MatrixEquality.sksl.

12