Język

GLES20.GlGetShaderSource Method

Definition

Overloads

Name Description
GlGetShaderSource(Int32)

Gets a shader's stored source when shader-compiler support is available.

GlGetShaderSource(Int32, Int32, IntBuffer, SByte)

Method is broken, but used to be public (b/6006380)

GlGetShaderSource(Int32, Int32, Int32[], Int32, Byte[], Int32)

Copies a shader's stored source into a caller-provided byte array.

GlGetShaderSource(Int32)

Gets a shader's stored source when shader-compiler support is available.

[Android.Runtime.Register("glGetShaderSource", "(I)Ljava/lang/String;", "")]
public static string? GlGetShaderSource(int shader);
[<Android.Runtime.Register("glGetShaderSource", "(I)Ljava/lang/String;", "")>]
static member GlGetShaderSource : int -> string

Parameters

shader
Int32

The shader object's unsigned name bit pattern.

Returns

The stored source, or an empty string when GL_SHADER_SOURCE_LENGTH is zero; JNI allocates the reported byte count and decodes the returned string.

Attributes

Remarks

Java documentation for android.opengl.GLES20.glGetShaderSource(int, int, java.nio.IntBuffer, byte).

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

GlGetShaderSource(Int32, Int32, IntBuffer, SByte)

Method is broken, but used to be public (b/6006380)

[Android.Runtime.Register("glGetShaderSource", "(IILjava/nio/IntBuffer;B)V", "")]
public static void GlGetShaderSource(int shader, int bufsize, Java.Nio.IntBuffer? length, sbyte source);
[<Android.Runtime.Register("glGetShaderSource", "(IILjava/nio/IntBuffer;B)V", "")>]
static member GlGetShaderSource : int * int * Java.Nio.IntBuffer * sbyte -> unit

Parameters

shader
Int32

The GL shader identifier forwarded to the native source-code query.

bufsize
Int32

The native query's limit on source characters, including the terminating null.

length
IntBuffer

The integer buffer passed to the native query for the source length, excluding the terminating null.

source
SByte

The byte value that the legacy JNI wrapper casts to a native output address. This is not a buffer for the returned shader source.

Attributes

Remarks

Java documentation for android.opengl.GLES20.glGetShaderSource(int, int, java.nio.IntBuffer, byte).

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

GlGetShaderSource(Int32, Int32, Int32[], Int32, Byte[], Int32)

Copies a shader's stored source into a caller-provided byte array.

[Android.Runtime.Register("glGetShaderSource", "(II[II[BI)V", "")]
public static void GlGetShaderSource(int shader, int bufsize, int[]? length, int lengthOffset, byte[]? source, int sourceOffset);
[<Android.Runtime.Register("glGetShaderSource", "(II[II[BI)V", "")>]
static member GlGetShaderSource : int * int * int[] * int * byte[] * int -> unit

Parameters

shader
Int32

The shader object's unsigned name bit pattern; shader-compiler support is required.

bufsize
Int32

The nonnegative source-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 it. Capacity is not checked.

lengthOffset
Int32

The nonnegative integer-array index for length; ignored when length is null.

source
Byte[]

A non-null byte output array at sourceOffset with room for bufsize bytes. The source is zero-terminated when space permits and may be truncated; capacity is not checked.

sourceOffset
Int32

The nonnegative starting byte-array index.

Attributes

Remarks

Java documentation for android.opengl.GLES20.glGetShaderSource(int, int, java.nio.IntBuffer, byte).

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