cuda.bindings._v2.driver.Array3dFlags#

class cuda.bindings._v2.driver.Array3dFlags(value: int)#

Flags for Array3dDescriptor_v2.flags_ (CUDA_ARRAY3D_*).

LAYERED: 1

If set, the CUDA array is a collection of layers, where each layer is either a 1D or a 2D array and the Depth member of CUDA_ARRAY3D_DESCRIPTOR specifies the number of layers, not the depth of a 3D array.

ARRAY_2D: 1

If set, the CUDA array is a collection of layers, where each layer is either a 1D or a 2D array and the Depth member of CUDA_ARRAY3D_DESCRIPTOR specifies the number of layers, not the depth of a 3D array.

SURFACE_LDST: 2

This flag must be set in order to bind a surface reference to the CUDA array

CUBEMAP: 4

If set, the CUDA array is a collection of six 2D arrays, representing faces of a cube. The width of such a CUDA array must be equal to its height, and Depth must be six. If CUDA_ARRAY3D_LAYERED flag is also set, then the CUDA array is a collection of cubemaps and Depth must be a multiple of six.

TEXTURE_GATHER: 8

This flag must be set in order to perform texture gather operations on a CUDA array.

DEPTH_TEXTURE: 16

This flag if set indicates that the CUDA array is a DEPTH_TEXTURE.

COLOR_ATTACHMENT: 32

This flag indicates that the CUDA array may be bound as a color target in an external graphics API

SPARSE: 64

This flag if set indicates that the CUDA array or CUDA mipmapped array is a sparse CUDA array or CUDA mipmapped array respectively

DEFERRED_MAPPING: 128

This flag if set indicates that the CUDA array or CUDA mipmapped array will allow deferred memory mapping

VIDEO_ENCODE_DECODE: 256

This flag indicates that the CUDA array will be used for hardware accelerated video encode/decode operations.