GLES20.GlGetActiveAttrib 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 |
|---|---|
| GlGetActiveAttrib(Int32, Int32, IntBuffer, IntBuffer) |
Gets an active attribute's name, type, and size by enumeration index. |
| GlGetActiveAttrib(Int32, Int32, Int32[], Int32, Int32[], Int32) |
Gets an active attribute's name, type, and size by enumeration index. |
| GlGetActiveAttrib(Int32, Int32, Int32, IntBuffer, IntBuffer, IntBuffer, SByte) |
Method is broken, but used to be public (b/6006380) |
| GlGetActiveAttrib(Int32, Int32, Int32, Int32[], Int32, Int32[], Int32, Int32[], Int32, Byte[], Int32) |
Gets an active attribute's name, type, and size by enumeration index. |
GlGetActiveAttrib(Int32, Int32, IntBuffer, IntBuffer)
Gets an active attribute's name, type, and size by enumeration index.
[Android.Runtime.Register("glGetActiveAttrib", "(IILjava/nio/IntBuffer;Ljava/nio/IntBuffer;)Ljava/lang/String;", "")]
public static string? GlGetActiveAttrib(int program, int index, Java.Nio.IntBuffer? size, Java.Nio.IntBuffer? type);
[<Android.Runtime.Register("glGetActiveAttrib", "(IILjava/nio/IntBuffer;Ljava/nio/IntBuffer;)Ljava/lang/String;", "")>]
static member GlGetActiveAttrib : 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-attribute enumeration index, less than GL_ACTIVE_ATTRIBUTES; this is not an attribute location.
- size
- IntBuffer
A non-null native-order output buffer (direct or accessible array-backed) at its current position with room for one integer. The attribute size in units of its reported type, not a scalar component count. Capacity is not checked. The array-backed path releases the position-adjusted pointer. Use a direct buffer to avoid this release path.
- type
- IntBuffer
A non-null native-order output buffer (direct or accessible array-backed) at its current position with room for one integer. The returned GLSL data-type token. Capacity is not checked. The array-backed path releases the position-adjusted pointer. Use a direct buffer to avoid this release path.
Returns
The active attribute name. If the queried GL_ACTIVE_ATTRIBUTE_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
GlGetActiveAttrib(Int32, Int32, Int32[], Int32, Int32[], Int32)
Gets an active attribute's name, type, and size by enumeration index.
[Android.Runtime.Register("glGetActiveAttrib", "(II[II[II)Ljava/lang/String;", "")]
public static string? GlGetActiveAttrib(int program, int index, int[]? size, int sizeOffset, int[]? type, int typeOffset);
[<Android.Runtime.Register("glGetActiveAttrib", "(II[II[II)Ljava/lang/String;", "")>]
static member GlGetActiveAttrib : 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-attribute enumeration index, less than GL_ACTIVE_ATTRIBUTES; this is not an attribute location.
- size
- Int32[]
A non-null output array at sizeOffset with room for one integer. The attribute size in units of its reported type, 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 attribute name. If the queried GL_ACTIVE_ATTRIBUTE_MAX_LENGTH is zero, JNI returns an empty string without accessing the size or type outputs.
- Attributes
Remarks
Java documentation for android.opengl.GLES20.glGetActiveAttrib(int, int, int[], int, int[], int).
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
GlGetActiveAttrib(Int32, Int32, Int32, IntBuffer, IntBuffer, IntBuffer, SByte)
Method is broken, but used to be public (b/6006380)
[Android.Runtime.Register("glGetActiveAttrib", "(IIILjava/nio/IntBuffer;Ljava/nio/IntBuffer;Ljava/nio/IntBuffer;B)V", "")]
public static void GlGetActiveAttrib(int program, int index, int bufsize, Java.Nio.IntBuffer? length, Java.Nio.IntBuffer? size, Java.Nio.IntBuffer? type, sbyte name);
[<Android.Runtime.Register("glGetActiveAttrib", "(IIILjava/nio/IntBuffer;Ljava/nio/IntBuffer;Ljava/nio/IntBuffer;B)V", "")>]
static member GlGetActiveAttrib : 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-attribute query.
- index
- Int32
The active attribute'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 attribute size, measured in elements of its GL type.
- type
- IntBuffer
The integer buffer passed to the native query for the attribute'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 attribute 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
GlGetActiveAttrib(Int32, Int32, Int32, Int32[], Int32, Int32[], Int32, Int32[], Int32, Byte[], Int32)
Gets an active attribute's name, type, and size by enumeration index.
[Android.Runtime.Register("glGetActiveAttrib", "(III[II[II[II[BI)V", "")]
public static void GlGetActiveAttrib(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("glGetActiveAttrib", "(III[II[II[II[BI)V", "")>]
static member GlGetActiveAttrib : 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-attribute enumeration index, less than GL_ACTIVE_ATTRIBUTES; this is not an attribute 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. The attribute size in units of its reported type, 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.