Skia
2D Graphics Library
SkRuntimeEffect::TracedShader Struct Reference

Creates a new Runtime Effect patterned after an already-existing one. More...

#include <SkRuntimeEffect.h>

Public Attributes

sk_sp< SkShadershader
 
sk_sp< SkSL::DebugTrace > debugTrace
 

Detailed Description

Creates a new Runtime Effect patterned after an already-existing one.

The new shader behaves like the original, but also creates a debug trace of its execution at the requested coordinate. After painting with this shader, the associated DebugTrace object will contain a shader execution trace. Call writeTrace on the debug trace object to generate a full trace suitable for a debugger, or call dump to emit a human-readable trace.

Debug traces are only supported on a raster (non-GPU) canvas.

Debug traces are currently only supported on shaders. Color filter and blender tracing is a work-in-progress.

Member Data Documentation

◆ debugTrace

sk_sp<SkSL::DebugTrace> SkRuntimeEffect::TracedShader::debugTrace

◆ shader

sk_sp<SkShader> SkRuntimeEffect::TracedShader::shader

The documentation for this struct was generated from the following file: