Package org.robolectric.shadows
Class ShadowNativeRuntimeShader
java.lang.Object
org.robolectric.shadows.ShadowNativeRuntimeShader
@Implements(value=android.graphics.RuntimeShader.class,
minSdk=30,
shadowPicker=Picker.class,
isInAndroidSdk=false,
callNativeMethodsByDefault=true)
public class ShadowNativeRuntimeShader
extends Object
Shadow for
RuntimeShader
that is backed by native code-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
__constructor__
(String sksl) protected static long
nativeCreateBuilder
(String sksl) protected static long
nativeCreateShader
(long shaderBuilder, long matrix) protected static long
nativeCreateShader
(long shaderBuilder, long matrix, boolean isOpaque) protected static long
protected static void
nativeUpdateShader
(long shaderBuilder, String shaderName, long shader) protected static void
nativeUpdateUniforms
(long shaderBuilder, String uniformName, float[] uniforms) protected static void
nativeUpdateUniforms
(long shaderBuilder, String uniformName, float[] uniforms, boolean isColor) protected static void
nativeUpdateUniforms
(long shaderBuilder, String uniformName, float value1, float value2, float value3, float value4, int count) protected static void
nativeUpdateUniforms
(long shaderBuilder, String uniformName, int[] uniforms) protected static void
nativeUpdateUniforms
(long shaderBuilder, String uniformName, int value1, int value2, int value3, int value4, int count)
-
Constructor Details
-
ShadowNativeRuntimeShader
public ShadowNativeRuntimeShader()
-
-
Method Details
-
__constructor__
-
nativeGetFinalizer
-
nativeCreateBuilder
-
nativeCreateShader
@Implementation(minSdk=31, maxSdk=32) protected static long nativeCreateShader(long shaderBuilder, long matrix, boolean isOpaque) -
nativeCreateShader
@Implementation(minSdk=33, maxSdk=34) protected static long nativeCreateShader(long shaderBuilder, long matrix) -
nativeUpdateUniforms
@Implementation(minSdk=31, maxSdk=32) protected static void nativeUpdateUniforms(long shaderBuilder, String uniformName, float[] uniforms) -
nativeUpdateUniforms
@Implementation(minSdk=33, maxSdk=34) protected static void nativeUpdateUniforms(long shaderBuilder, String uniformName, float[] uniforms, boolean isColor) -
nativeUpdateUniforms
@Implementation(minSdk=33, maxSdk=34) protected static void nativeUpdateUniforms(long shaderBuilder, String uniformName, float value1, float value2, float value3, float value4, int count) -
nativeUpdateUniforms
@Implementation(minSdk=33, maxSdk=34) protected static void nativeUpdateUniforms(long shaderBuilder, String uniformName, int[] uniforms) -
nativeUpdateUniforms
@Implementation(minSdk=33, maxSdk=34) protected static void nativeUpdateUniforms(long shaderBuilder, String uniformName, int value1, int value2, int value3, int value4, int count) -
nativeUpdateShader
@Implementation(minSdk=31, maxSdk=34) protected static void nativeUpdateShader(long shaderBuilder, String shaderName, long shader)
-