getShaderLocationAttrib function

int getShaderLocationAttrib(
  1. Shader shader,
  2. String attribName
)

Get shader attribute location.

Implementation

int getShaderLocationAttrib(Shader shader, String attribName) {
  return library.GetShaderLocationAttrib(
    shader.ref,
    string.toNative(attribName),
  );
}