nn::gd::CTR::Resource::MapVertexBufferResource Member Functionstatic nnResult MapVertexBufferResource( VertexBufferResource * buffer, MapUsage usage, void ** data );
| 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. |
| 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. |
| ResultResourceAlreadyMapped | The resource has already been mapped. |
Obtains a data pointer for the specified resource.
User applications can directly edit only the memory region allocated for Memory::FCRAM.
CONFIDENTIAL