UpdateInstanceIndexBuffer

This function should be preceded by the function CalculateInstances(), the only allowed other API functions in between are UpdateVertexBuffer() and UpdateTransformationBuffer().

It is expected to be called with a buffer indexBuffer of at least the size as given by CalculateInstances().

If not called for the first time it will expect to contain the same content as from previous call, even is size is changed. This can be overruled by the function ClearedExternalBuffers().

Syntax

//   Visual Studio for Windows
public:
__int64 __declspec(dllexport) __stdcall UpdateInstanceIndexBuffer(
            __int64        owlInstance,
            void           * indexBuffer
        );

//   Linux, OS-X and non-Visual Studio Windows solutions
public:
int64_t UpdateInstanceIndexBuffer(
            int64_t        owlInstance,
            void           * indexBuffer
        );    

Property owlInstance

Size: 64 bit / 8 byte (value)
...

Property indexBuffer

Size: 64 bit / 8 byte (reference)
...