GLES20.GlShaderBinary Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| GlShaderBinary(Int32, IntBuffer, Int32, Buffer, Int32) |
Loads implementation-supported precompiled binary code into existing shader objects. |
| GlShaderBinary(Int32, Int32[], Int32, Int32, Buffer, Int32) |
Loads implementation-supported precompiled binary code into existing shader objects. |
GlShaderBinary(Int32, IntBuffer, Int32, Buffer, Int32)
Loads implementation-supported precompiled binary code into existing shader objects.
[Android.Runtime.Register("glShaderBinary", "(ILjava/nio/IntBuffer;ILjava/nio/Buffer;I)V", "")]
public static void GlShaderBinary(int n, Java.Nio.IntBuffer? shaders, int binaryformat, Java.Nio.Buffer? binary, int length);
[<Android.Runtime.Register("glShaderBinary", "(ILjava/nio/IntBuffer;ILjava/nio/Buffer;I)V", "")>]
static member GlShaderBinary : int * Java.Nio.IntBuffer * int * Java.Nio.Buffer * int -> unit
Parameters
- n
- Int32
The nonnegative number of existing shader objects to load; shader types must be distinct.
- shaders
- IntBuffer
A non-null direct, native-order input buffer at its current position with n unsigned shader-name bit patterns. Shader-list capacity is not checked. Array-backed shader-list cleanup is unsafe.
- binaryformat
- Int32
A supported shader-binary format token from GL_SHADER_BINARY_FORMATS; no binary format is required by core ES2.
- binary
- Buffer
A non-null direct or accessible array-backed input buffer at its current position with length bytes available. JNI checks binary bytes and correctly recovers the array base during cleanup.
- length
- Int32
The nonnegative size of the complete shader-binary payload in bytes.
- Attributes
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
GlShaderBinary(Int32, Int32[], Int32, Int32, Buffer, Int32)
Loads implementation-supported precompiled binary code into existing shader objects.
[Android.Runtime.Register("glShaderBinary", "(I[IIILjava/nio/Buffer;I)V", "")]
public static void GlShaderBinary(int n, int[]? shaders, int offset, int binaryformat, Java.Nio.Buffer? binary, int length);
[<Android.Runtime.Register("glShaderBinary", "(I[IIILjava/nio/Buffer;I)V", "")>]
static member GlShaderBinary : int * int[] * int * int * Java.Nio.Buffer * int -> unit
Parameters
- n
- Int32
The nonnegative number of existing shader objects to load; shader types must be distinct.
- shaders
- Int32[]
A non-null input array at offset with n unsigned shader-name bit patterns. Shader-list capacity is not checked.
- offset
- Int32
The nonnegative starting shader-name array index, measured in entries rather than bytes.
- binaryformat
- Int32
A supported shader-binary format token from GL_SHADER_BINARY_FORMATS; no binary format is required by core ES2.
- binary
- Buffer
A non-null direct or accessible array-backed input buffer at its current position with length bytes available. JNI checks binary bytes and correctly recovers the array base during cleanup.
- length
- Int32
The nonnegative size of the complete shader-binary payload in bytes.
- Attributes
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.