APEX Framework: nvidia::apex::VertexBuffer Class Reference

NVIDIA APEX

nvidia::apex::VertexBuffer Class Reference

a vertex buffer that supports multiple formats More...

#include <RenderMesh.h>

List of all members.

Public Member Functions

virtual uint32_t getVertexCount () const =0
 Returns the number of vertices in the buffer.
virtual const VertexFormatgetFormat () const =0
 Returns the data format. See VertexFormat.
virtual VertexFormatgetFormatWritable ()=0
 Returns the data format. See VertexFormat. Can be changed.
virtual const void * getBuffer (uint32_t bufferIndex) const =0
 Accessor for the data buffer indexed by bufferIndex. To get the buffer format, use getFormat().getBufferFormat( index ). If the data channel doesn't exist then this function returns NULL.
virtual const void * getBufferAndFormat (RenderDataFormat::Enum &format, uint32_t bufferIndex) const =0
 Like getBuffer(), but also returns the buffer's format.
virtual void * getBufferAndFormatWritable (RenderDataFormat::Enum &format, uint32_t bufferIndex)=0
 Like getBuffer(), but also returns the buffer's format. Can be changed.
virtual bool getBufferData (void *dstBuffer, nvidia::RenderDataFormat::Enum dstBufferFormat, uint32_t dstBufferStride, uint32_t bufferIndex, uint32_t startVertexIndex, uint32_t elementCount) const =0
 Accessor for data in a desired format from the buffer indexed by bufferIndex. If the channel does not exist, or if it is in a format for which there is not presently a converter to the the desired format dstBufferFormat, this function returns false. The dstBufferStride field must be at least the size of the dstBufferFormat data, or zero (in which case the stride is assumed to be the size of the dstBufferFormat data). If neither of these conditions hold, this function returns false. Otherwise, dstBuffer is filled in with elementCount elements of the converted data, starting from startVertexIndex, withe the given stride.

Detailed Description

a vertex buffer that supports multiple formats


The documentation for this class was generated from the following file:

Generated on Fri Dec 15 2017 13:58:40

Copyright © 2012-2017 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved.