nn::gd::CTR::Resource::CreateVertexBufferResource Member Function

Syntax

static nnResult CreateVertexBufferResource(
     VertexBufferResourceDescription * description,
     const void * initialData,
     VertexBufferResource ** buffer
);

Arguments

Name Description
in description Specifies the descriptor for creating a resource buffer.
in initialData Specifies the initialization data.
out buffer Specifies the address for storing the pointer to the created vertex buffer resource.

Return Values

Returns the result of the operation.
Value Description
ResultSuccess Process was successful.
ResultNullParameter NULL was specified for description or buffer.
ResultInvalidParameter 0 was specified for the vertex size.
ResultInvalidMemoryLocation The memory type is not valid.
ResultOutOfMemory Memory cannot be allocated for the resource object.
ResultOutOfMemoryExt Memory cannot be allocated for the vertex buffer.

Description

Creates a vertex buffer resource.

See Also

VertexBufferResourceDescription

Revision History

2011/02/17
Initial version.

CONFIDENTIAL