NVIDIA OptiX 6.5 API nvidia_logo_transpbg.gif Up
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
RTmemoryblock Struct Reference

Public Attributes

RTformat format
 
void * baseAddress
 
unsigned int mipLevel
 
unsigned int x
 
unsigned int y
 
unsigned int z
 
unsigned int width
 
unsigned int height
 
unsigned int depth
 
unsigned int rowPitch
 
unsigned int planePitch
 

Detailed Description

Structure describing a block of demand loaded memory.

Description

RTmemoryblock describes a one-, two- or three-dimensional block of bytes in memory for a mipLevel that are interpreted as elements of format.

The region is defined by the elements beginning at (x, y, z) and extending to (x + width - 1, y + height - 1, z + depth - 1). The element size must be taken into account when computing addresses into the memory block based on the size of elements. There is no padding between elements within a row, e.g. along the x direction.

The starting address of the block is given by baseAddress and data is stored at addresses increasing from baseAddress. One-dimensional blocks ignore the rowPitch and planePitch members and are described entirely by the baseAddress of the block. Two dimensional blocks have contiguous bytes in every row, starting with baseAddress, but may have gaps between subsequent rows along the height dimension. The rowPitch describes the offset in bytes between subsequent rows within the two-dimensional block. Similarly, the planePitch describes the offset in bytes between subsequent planes within the depth dimension.

History

RTmemoryblock was introduced in OptiX 6.1

See also RTbuffercallback RTtexturesamplercallback