nn::gx::CTR::UpdateBuffer Function

Syntax

void UpdateBuffer(
     const void * pBuffer,
     size_t size
);

Arguments

Name Description
in pBuffer Pointer to the start of the buffer.
in size Buffer size.

Return Values

None.

Description

Applies to the graphics processor the updates that have been made to the contents of the vertex buffer and texture buffer in main memory.

When the GPU directly references texture, vertex, and other buffer data that has been expanded, copied, or overwritten into device memory by the CPU, use this to reflect those CPU-side changes in the GPU.

Specifically speaking, internal processing consists of flushing the cache, but Nintendo does not support using this function as a generic means of flushing the cache.

Only use this function to reflect CPU changes to the vertex and texture buffers in the GPU.

Revision History

2011/03/23
Revised a part of the description.
2011/01/17
Enhanced the description.
2010/10/25
Initial version.

CONFIDENTIAL