Expand description
CUDA arrays + texture / surface objects (Runtime API).
Mirrors [baracuda_driver::array]. An Array is an opaque
on-device layout optimized for texture fetches. TextureObject /
SurfaceObject wrap the CUDA 5+ object-based texture API; the
legacy reference-based API is intentionally not wrapped.
Structs§
- Array
- A 2-D / 3-D CUDA array handle.
- Mipmapped
Array - A mipmapped CUDA array.
- Surface
Object - A surface object — writable array access from kernels.
- Texture
Object - A texture object — a read-only sampler bound to an array (or linear
device memory). Pass
as_raw()as a u64 kernel argument.
Functions§
- channel_
desc - Construct a
cudaChannelFormatDescwith 1/2/4 channels ofbitsbits of the givenkind(matches thecudaCreateChannelDesc<T>()helpers in CUDA headers). - channel_
desc_ f32 cudaCreateChannelDesc<f32>— one 32-bit float channel.- channel_
desc_ u8 cudaCreateChannelDesc<u8>— one 8-bit unsigned channel.