APEX Framework: nvidia::apex::UserRenderInstanceBuffer Class Reference

NVIDIA APEX

nvidia::apex::UserRenderInstanceBuffer Class Reference

Used for storing per-instance data for rendering. More...

#include <UserRenderInstanceBuffer.h>

List of all members.

Public Member Functions

virtual bool getInteropResourceHandle (CUgraphicsResource &handle)
virtual void writeBuffer (const void *data, uint32_t firstInstance, uint32_t numInstances)
 Called when APEX wants to update the contents of the instance buffer.

Detailed Description

Used for storing per-instance data for rendering.


Member Function Documentation

virtual bool nvidia::apex::UserRenderInstanceBuffer::getInteropResourceHandle ( CUgraphicsResource handle) [inline, virtual]

Get the low-level handle of the buffer resource

Returns:
true if succeeded, false otherwise
virtual void nvidia::apex::UserRenderInstanceBuffer::writeBuffer ( const void *  data,
uint32_t  firstInstance,
uint32_t  numInstances 
) [inline, virtual]

Called when APEX wants to update the contents of the instance buffer.

The source data type is assumed to be the same as what was defined in the descriptor. APEX should call this function and supply data for ALL semantics that were originally requested during creation every time its called.

Parameters:
[in]dataContains the source data for the instance buffer.
[in]firstInstancefirst instance to start writing to.
[in]numInstancesnumber of instance to write.

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

Generated on Fri Dec 15 2017 13:58:41

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