Name Description Size
SkSLCodeGenerator.h Abstract superclass of all code generators, which take a Program as input and produce code as output. 3412
SkSLCodeGenTypes.h 314
SkSLGLSLCodeGenerator.cpp 77711
SkSLGLSLCodeGenerator.h Converts a Program into GLSL code. 638
SkSLHLSLCodeGenerator.cpp 1368
SkSLHLSLCodeGenerator.h Converts a Program into HLSL code. 902
SkSLMetalCodeGenerator.cpp 145120
SkSLMetalCodeGenerator.h Converts a Program into Metal code. 648
SkSLPipelineStageCodeGenerator.cpp 34931
SkSLPipelineStageCodeGenerator.h Processes 'program' for use in a GrFragmentProcessor, or other context that wants SkSL-like code as input. To support fragment processor usage, there are callbacks that allow elements to be declared programmatically and to rename those elements (mangling to avoid collisions). - Any reference to the main coords builtin variable will be replaced with 'sampleCoords'. - Any reference to the input color builtin variable will be replaced with 'inputColor'. - Any reference to the dest color builtin variable will be replaced with 'destColor'. Dest-color is used in blend programs. - Each uniform variable declaration triggers a call to 'declareUniform', which should emit the declaration, and return the (possibly different) name to use for the variable. - Each function definition triggers a call to 'defineFunction', which should emit the definition, and return the (possibly different) name to use for calls to that function. - Each invocation of sample() triggers a call to 'sampleChild', which should return the full text of the call expression. 2810
SkSLRasterPipelineBuilder.cpp 164105
SkSLRasterPipelineBuilder.h branch targets 30200
SkSLRasterPipelineCodeGenerator.cpp Used by `createSlots` to add this variable to SlotDebugInfo inside the DebugTrace. 161221
SkSLRasterPipelineCodeGenerator.h Convert 'function' to Raster Pipeline stages, for use by blends, shaders, and color filters. The arguments to the function are passed in registers: -- coordinates in src.rg for shaders -- color in src.rgba for color filters -- src/dst in src.rgba and dst.rgba for blenders Design docs for SkSL in Raster Pipeline: go/sksl-rp https://docs.google.com/document/d/1GCQeAGVGHubOCbmULVdXUkNiXdw9J4umai_M5X3JGS4/edit?usp=sharing 1232
SkSLSPIRVCodeGenerator.cpp 257446
SkSLSPIRVCodeGenerator.h Converts a Program into a SPIR-V binary. 882
SkSLSPIRVtoHLSL.cpp This translation unit serves as a bridge between Skia/SkSL and SPIRV-Cross. Each library is built with a separate copy of spirv.h (or spirv.hpp), so we avoid conflicts by never including both in the same cpp. 1285
SkSLSPIRVtoHLSL.h 325
SkSLSPIRVValidator.cpp 2209
SkSLSPIRVValidator.h 749
SkSLWGSLCodeGenerator.cpp 187558
SkSLWGSLCodeGenerator.h Convert a Program into WGSL code. 966
SkSLWGSLValidator.cpp 2566
SkSLWGSLValidator.h 498