nn::gd::CTR::Memory::CopyVertexBufferSubResource Member Function

Syntax

static nnResult CopyVertexBufferSubResource(
     const VertexBufferResource * source,
     u32 sourceOffset,
     u32             size,
     const VertexBufferResource * dest,
     u32 destOffset
);

Arguments

Name Description
in source Specifies a pointer to the source vertex buffer.
in sourceOffset Specifies a transfer start offset. The offset must be smaller than the source vertex buffer size being used.
in size Specifies the transfer size. The size of sourceOffset + size must be equal to or less than the transfer source size.
in dest Specifies a pointer to the destination vertex buffer.
in destOffset Specifies the destination offset. The size of destOffset + size must be equal to or less than the destination size.

Return Values

Returns the result of the operation.
Value Description
Result::IsSuccess Process was successful.
ResultNullParameter NULL was specified for source or dest.
ResultInvalidParameter 0 was specified in size.
ResultOutOfRangeParameter The offset of the transfer source or transfer destination is invalid.

Description

Copies data from the source vertex buffer to the destination vertex buffer.

Revision History

2011/02/17
Initial version.

CONFIDENTIAL