Public Member Functions
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 Sat Dec 1 2018 15:52:11

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