Package org.robolectric.nativeruntime
Class RuntimeShaderNatives
java.lang.Object
org.robolectric.nativeruntime.RuntimeShaderNatives
Native methods for RuntimeShader JNI registration.
Native method signatures are derived from https://cs.android.com/android/platform/superproject/+/android-12.0.0_r1:frameworks/base/graphics/java/android/graphics/RuntimeShader.java
-
Method Summary
Modifier and TypeMethodDescriptionstatic long
nativeCreateBuilder
(String sksl) static long
nativeCreateShader
(long shaderBuilder, long matrix, boolean isOpaque) static long
static void
nativeUpdateShader
(long shaderBuilder, String shaderName, long shader) static void
nativeUpdateUniforms
(long shaderBuilder, String uniformName, float[] uniforms)
-
Method Details
-
nativeGetFinalizer
public static long nativeGetFinalizer() -
nativeCreateBuilder
-
nativeCreateShader
public static long nativeCreateShader(long shaderBuilder, long matrix, boolean isOpaque) -
nativeUpdateUniforms
-
nativeUpdateShader
-