nn::gd::CTR::Resource::MapVertexBufferResource Member Function

Syntax

static nnResult MapVertexBufferResource(
     VertexBufferResource * buffer,
     MapUsage usage,
     void ** data
);

Arguments

Name Description
in buffer Specifies the pointer to the resource for the data pointer being obtained.
in usage Specifies how the resource is to be used.
out data Specifies the address for storing the pointer to the obtained data.

Return Values

Returns the result of the operation.
Value Description
Result::IsSuccess Process was successful.
ResultNullParameter NULL was specified for either buffer or data.
ResultInvalidMemoryRegion The specification for either the resource memory type or the resource usage method is invalid. It might be that an attempt was made by MAP_WRITE_ONLY or MAP_READ_WRITE to get a memory region that was allocated to VRAM.

Description

Obtains a data pointer for the specified resource.

Revision History

2011/02/17
Initial version.

CONFIDENTIAL