Skip to main content

Module texture

Module texture 

Source
Expand description

Texture and surface memory — CUDA array allocation and bindless objects.

Implements the following CUDA Runtime API families:

  • Array management: cudaMallocArray, cudaFreeArray, cudaMalloc3DArray, cudaArrayGetInfo
  • Host-to-array copies: cudaMemcpyToArray, cudaMemcpyFromArray, cudaMemcpyToArrayAsync, cudaMemcpyFromArrayAsync
  • Texture objects (bindless): cudaCreateTextureObject, cudaDestroyTextureObject, cudaGetTextureObjectResourceDesc
  • Surface objects (bindless): cudaCreateSurfaceObject, cudaDestroySurfaceObject

Structs§

Array3DFlags
Flags for 3-D CUDA array creation.
CudaArray
RAII wrapper for a CUDA array (1-D or 2-D).
CudaArray3D
RAII wrapper for a 3-D (or layered / cubemap) CUDA array.
CudaSurfaceObject
RAII wrapper for a CUDA bindless surface object.
CudaTextureObject
RAII wrapper for a CUDA bindless texture object.
ResourceViewDesc
Optional resource-view descriptor for texture objects.
TextureDesc
Ergonomic texture-object sampling configuration.

Enums§

AddressMode
Texture coordinate wrapping mode (maps to cudaTextureAddressMode).
ArrayFormat
Element format for each channel in a CUDA array.
FilterMode
Texture sampling filter mode (maps to cudaTextureFilterMode).
ResourceDesc
High-level resource description for texture and surface objects.