Class RuntimeShaderNatives

java.lang.Object
org.robolectric.nativeruntime.RuntimeShaderNatives

public class RuntimeShaderNatives extends Object
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 Details

    • nativeGetFinalizer

      public static long nativeGetFinalizer()
    • nativeCreateBuilder

      public static long nativeCreateBuilder(String sksl)
    • nativeCreateShader

      public static long nativeCreateShader(long shaderBuilder, long matrix, boolean isOpaque)
    • nativeUpdateUniforms

      public static void nativeUpdateUniforms(long shaderBuilder, String uniformName, float[] uniforms)
    • nativeUpdateShader

      public static void nativeUpdateShader(long shaderBuilder, String shaderName, long shader)