GLES20.GlGetActiveUniform 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 |
|---|---|
| GlGetActiveUniform(Int32, Int32, IntBuffer, IntBuffer) |
Gets an active uniform's name, type, and size by enumeration index. |
| GlGetActiveUniform(Int32, Int32, Int32[], Int32, Int32[], Int32) |
Gets an active uniform's name, type, and size by enumeration index. |
| GlGetActiveUniform(Int32, Int32, Int32, IntBuffer, IntBuffer, IntBuffer, SByte) |
Method is broken, but used to be public (b/6006380) |
| GlGetActiveUniform(Int32, Int32, Int32, Int32[], Int32, Int32[], Int32, Int32[], Int32, Byte[], Int32) |
Gets an active uniform's name, type, and size by enumeration index. |
GlGetActiveUniform(Int32, Int32, IntBuffer, IntBuffer)
Gets an active uniform's name, type, and size by enumeration index.
[Android.Runtime.Register("glGetActiveUniform", "(IILjava/nio/IntBuffer;Ljava/nio/IntBuffer;)Ljava/lang/String;", "")]
public static string? GlGetActiveUniform(int program, int index, Java.Nio.IntBuffer? size, Java.Nio.IntBuffer? type);
[<Android.Runtime.Register("glGetActiveUniform", "(IILjava/nio/IntBuffer;Ljava/nio/IntBuffer;)Ljava/lang/String;", "")>]
static member GlGetActiveUniform : int * int * Java.Nio.IntBuffer * Java.Nio.IntBuffer -> string
Parameters
- program
- Int32
The program object's unsigned name bit pattern, queried after a link attempt.
- index
- Int32
The active-uniform enumeration index, less than GL_ACTIVE_UNIFORMS; this is not a uniform location.
- size
- IntBuffer
A non-null direct, native-order output buffer at its current position with room for one integer. For an array, the highest active element index plus one; otherwise one, not a scalar component count. Capacity is not checked. Array-backed cleanup is unsafe.
- type
- IntBuffer
A non-null direct, native-order output buffer at its current position with room for one integer. The returned GLSL data-type token. Capacity is not checked. Array-backed cleanup is unsafe.
Returns
The active uniform name. If the queried GL_ACTIVE_UNIFORM_MAX_LENGTH is zero, JNI returns an empty string without accessing the size or type outputs.
- 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
GlGetActiveUniform(Int32, Int32, Int32[], Int32, Int32[], Int32)
Gets an active uniform's name, type, and size by enumeration index.
[Android.Runtime.Register("glGetActiveUniform", "(II[II[II)Ljava/lang/String;", "")]
public static string? GlGetActiveUniform(int program, int index, int[]? size, int sizeOffset, int[]? type, int typeOffset);
[<Android.Runtime.Register("glGetActiveUniform", "(II[II[II)Ljava/lang/String;", "")>]
static member GlGetActiveUniform : int * int * int[] * int * int[] * int -> string
Parameters
- program
- Int32
The program object's unsigned name bit pattern, queried after a link attempt.
- index
- Int32
The active-uniform enumeration index, less than GL_ACTIVE_UNIFORMS; this is not a uniform location.
- size
- Int32[]
A non-null output array at sizeOffset with room for one integer. For an array, the highest active element index plus one; otherwise one, not a scalar component count. Capacity is not checked.
- sizeOffset
- Int32
The nonnegative starting array index, measured in integer entries rather than bytes.
- type
- Int32[]
A non-null output array at typeOffset with room for one integer. The returned GLSL data-type token. Capacity is not checked.
- typeOffset
- Int32
The nonnegative starting array index, measured in integer entries rather than bytes.
Returns
The active uniform name. If the queried GL_ACTIVE_UNIFORM_MAX_LENGTH is zero, JNI returns an empty string without accessing the size or type outputs.
- 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
GlGetActiveUniform(Int32, Int32, Int32, IntBuffer, IntBuffer, IntBuffer, SByte)
Method is broken, but used to be public (b/6006380)
[Android.Runtime.Register("glGetActiveUniform", "(IIILjava/nio/IntBuffer;Ljava/nio/IntBuffer;Ljava/nio/IntBuffer;B)V", "")]
public static void GlGetActiveUniform(int program, int index, int bufsize, Java.Nio.IntBuffer? length, Java.Nio.IntBuffer? size, Java.Nio.IntBuffer? type, sbyte name);
[<Android.Runtime.Register("glGetActiveUniform", "(IIILjava/nio/IntBuffer;Ljava/nio/IntBuffer;Ljava/nio/IntBuffer;B)V", "")>]
static member GlGetActiveUniform : int * int * int * Java.Nio.IntBuffer * Java.Nio.IntBuffer * Java.Nio.IntBuffer * sbyte -> unit
Parameters
- program
- Int32
The GL program identifier forwarded to the native active-uniform query.
- index
- Int32
The active uniform's index within that program, passed to the native query.
- bufsize
- Int32
The native query's limit on characters written to the name destination, including the terminating null.
- length
- IntBuffer
The integer buffer passed to the native query for the name length, excluding the terminating null.
- size
- IntBuffer
The integer buffer passed to the native query for the uniform size, measured in elements of its GL type.
- type
- IntBuffer
The integer buffer passed to the native query for the uniform's GL data-type token.
- name
- SByte
The byte value that the legacy JNI wrapper casts to a native output address. This is not a buffer for the returned uniform name.
- 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
GlGetActiveUniform(Int32, Int32, Int32, Int32[], Int32, Int32[], Int32, Int32[], Int32, Byte[], Int32)
Gets an active uniform's name, type, and size by enumeration index.
[Android.Runtime.Register("glGetActiveUniform", "(III[II[II[II[BI)V", "")]
public static void GlGetActiveUniform(int program, int index, int bufsize, int[]? length, int lengthOffset, int[]? size, int sizeOffset, int[]? type, int typeOffset, byte[]? name, int nameOffset);
[<Android.Runtime.Register("glGetActiveUniform", "(III[II[II[II[BI)V", "")>]
static member GlGetActiveUniform : int * int * int * int[] * int * int[] * int * int[] * int * byte[] * int -> unit
Parameters
- program
- Int32
The program object's unsigned name bit pattern, queried after a link attempt.
- index
- Int32
The active-uniform enumeration index, less than GL_ACTIVE_UNIFORMS; this is not a uniform location.
- bufsize
- Int32
The nonnegative name-buffer capacity in bytes, including space for a zero terminator.
- length
- Int32[]
An optional output array for one integer byte count excluding the zero terminator; null omits the count. Capacity is not checked.
- lengthOffset
- Int32
The nonnegative integer-array index for length; ignored when length is null.
- size
- Int32[]
A non-null output array at sizeOffset with room for one integer. For an array, the highest active element index plus one; otherwise one, not a scalar component count. Capacity is not checked.
- sizeOffset
- Int32
The nonnegative starting array index, measured in integer entries rather than bytes.
- type
- Int32[]
A non-null output array at typeOffset with room for one integer. The returned GLSL data-type token. Capacity is not checked.
- typeOffset
- Int32
The nonnegative starting array index, measured in integer entries rather than bytes.
- name
- Byte[]
A non-null byte output array at nameOffset with room for bufsize bytes; the name is zero-terminated when space permits and may be truncated. Capacity is not checked.
- nameOffset
- Int32
The nonnegative starting byte-array index.
- 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.