Język

GLES20.GlGetShaderPrecisionFormat Method

Definition

Overloads

Name Description
GlGetShaderPrecisionFormat(Int32, Int32, IntBuffer, IntBuffer)

Gets a shader numeric format's range exponents and precision-bit count.

GlGetShaderPrecisionFormat(Int32, Int32, Int32[], Int32, Int32[], Int32)

Gets a shader numeric format's range exponents and precision-bit count.

GlGetShaderPrecisionFormat(Int32, Int32, IntBuffer, IntBuffer)

Gets a shader numeric format's range exponents and precision-bit count.

[Android.Runtime.Register("glGetShaderPrecisionFormat", "(IILjava/nio/IntBuffer;Ljava/nio/IntBuffer;)V", "")]
public static void GlGetShaderPrecisionFormat(int shadertype, int precisiontype, Java.Nio.IntBuffer? range, Java.Nio.IntBuffer? precision);
[<Android.Runtime.Register("glGetShaderPrecisionFormat", "(IILjava/nio/IntBuffer;Ljava/nio/IntBuffer;)V", "")>]
static member GlGetShaderPrecisionFormat : int * int * Java.Nio.IntBuffer * Java.Nio.IntBuffer -> unit

Parameters

shadertype
Int32

GL_VERTEX_SHADER or GL_FRAGMENT_SHADER; shader-compiler support is required.

precisiontype
Int32

GL_LOW_FLOAT, GL_MEDIUM_FLOAT, GL_HIGH_FLOAT, GL_LOW_INT, GL_MEDIUM_INT, or GL_HIGH_INT.

range
IntBuffer

A non-null direct, native-order output buffer at its current position with room for two integer base-two range exponents. JNI checks only one byte; array-backed cleanup is unsafe.

precision
IntBuffer

A non-null direct, native-order output buffer at its current position with room for one integer precision-bit count; integer formats report zero. JNI checks only one byte; array-backed cleanup is unsafe.

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

GlGetShaderPrecisionFormat(Int32, Int32, Int32[], Int32, Int32[], Int32)

Gets a shader numeric format's range exponents and precision-bit count.

[Android.Runtime.Register("glGetShaderPrecisionFormat", "(II[II[II)V", "")]
public static void GlGetShaderPrecisionFormat(int shadertype, int precisiontype, int[]? range, int rangeOffset, int[]? precision, int precisionOffset);
[<Android.Runtime.Register("glGetShaderPrecisionFormat", "(II[II[II)V", "")>]
static member GlGetShaderPrecisionFormat : int * int * int[] * int * int[] * int -> unit

Parameters

shadertype
Int32

GL_VERTEX_SHADER or GL_FRAGMENT_SHADER; shader-compiler support is required.

precisiontype
Int32

GL_LOW_FLOAT, GL_MEDIUM_FLOAT, GL_HIGH_FLOAT, GL_LOW_INT, GL_MEDIUM_INT, or GL_HIGH_INT.

range
Int32[]

A non-null output array at rangeOffset with room for two integer base-two range exponents. JNI checks only one integer entry.

rangeOffset
Int32

The nonnegative starting array index for the two range integers.

precision
Int32[]

A non-null output array at precisionOffset with room for one integer precision-bit count; integer formats report zero.

precisionOffset
Int32

The nonnegative starting array index for the precision integer.

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