MCPcopy Create free account
hub / github.com/HumbleUI/Skija / makeRuntimeShader

Method makeRuntimeShader

shared/java/ImageFilter.java:647–650  ·  view source on GitHub ↗

Create a filter that produces a runtime shader effect. The runtime shader is evaluated per-pixel and the result fills the output. The childShaderName is used to bind the input filter to a shader child in the builder, or uses the source bitmap when input is null. @param builder The RuntimeE

(@NotNull RuntimeEffectBuilder builder, @Nullable String childShaderName, @Nullable ImageFilter input)

Source from the content-addressed store, hash-verified

645 * @return filter that applies the runtime shader
646 */
647 @NotNull @Contract("_, _, _ -> new")
648 public static ImageFilter makeRuntimeShader(@NotNull RuntimeEffectBuilder builder, @Nullable String childShaderName, @Nullable ImageFilter input) {
649 return makeRuntimeShader(builder, 0.0f, childShaderName, input);
650 }
651
652 /**
653 * Create a filter that produces a runtime shader effect with a sample radius. The runtime shader

Callers 1

drawRuntimeShaderMethod · 0.95

Calls 6

onNativeCallMethod · 0.95
getPtrMethod · 0.95
_nMakeRuntimeShaderMethod · 0.95
reachabilityFenceMethod · 0.95
getChildrenMethod · 0.80
equalsMethod · 0.45

Tested by

no test coverage detected