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

Syntax

int GetVertexAttributeIndex(
     ResVertexAttribute::VertexAttributeUsage usage
) const;

int GetVertexAttributeIndex(
     u32 usage
) const;

List of Overloaded Member Functions

GetVertexAttributeIndex(ResVertexAttribute::VertexAttributeUsage) Gets the index of the vertex attribute.
GetVertexAttributeIndex(u32) Gets the index of the vertex attribute.

Description of GetVertexAttributeIndex(ResVertexAttribute::VertexAttributeUsage)

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

Description of GetVertexAttributeIndex(u32)

Gets the index of the vertex attribute.


CONFIDENTIAL