Skip to main content

channel_desc

Function channel_desc 

Source
pub fn channel_desc(
    bits_x: i32,
    bits_y: i32,
    bits_z: i32,
    bits_w: i32,
    kind: i32,
) -> cudaChannelFormatDesc
Expand description

Construct a cudaChannelFormatDesc with 1/2/4 channels of bits bits of the given kind (matches the cudaCreateChannelDesc<T>() helpers in CUDA headers).