nw::gfx::ShaderProgram::GetVertexAttributeIndex Member Function

Syntax

int GetVertexAttributeIndex(
     ResVertexAttribute::VertexAttributeUsage usage
) const;

Arguments

Name Description
in usage Usage of vertex attributes.

Return Values

Index of the vertex attribute.

Description

Gets the index of the vertex attribute.

If an invalid vertex attribute is specified, a value of -1 will be returned.


CONFIDENTIAL