Język

GLES31.GlGetProgramResourceIndex(Int32, Int32, String) Method

Definition

Finds the index of a named active resource in a program interface.

[Android.Runtime.Register("glGetProgramResourceIndex", "(IILjava/lang/String;)I", "")]
public static int GlGetProgramResourceIndex(int program, int programInterface, string? name);
[<Android.Runtime.Register("glGetProgramResourceIndex", "(IILjava/lang/String;)I", "")>]
static member GlGetProgramResourceIndex : int * int * string -> int

Parameters

program
Int32

The program object whose active resources are queried.

programInterface
Int32

The named program-resource interface to search.

name
String

The non-null active-resource name; an array base name can identify its first element.

Returns

The 32-bit resource index, or minus one for GL_INVALID_INDEX when no matching named active resource exists.

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