pub unsafe extern "C" fn cudaCreateChannelDesc(
x: c_int,
y: c_int,
z: c_int,
w: c_int,
f: cudaChannelFormatKind,
) -> cudaChannelFormatDescExpand description
Returns a channel descriptor using the specified format.
Returns a channel descriptor with format f and number of bits of each component x, y, z, and w. The cudaChannelFormatDesc is defined as:
struct cudaChannelFormatDesc {
int x, y, z, w;
enum cudaChannelFormatKind f;
};where cudaChannelFormatKind is one of cudaChannelFormatKind::cudaChannelFormatKindSigned, cudaChannelFormatKind::cudaChannelFormatKindUnsigned, or cudaChannelFormatKind::cudaChannelFormatKindFloat.
§Parameters
x: X component.y: Y component.z: Z component.w: W component.f: Channel format.
§Return value
Channel descriptor with format f.
See also: cudaCreateChannelDesc (C++ API), cudaGetChannelDesc, cudaCreateTextureObject, cudaCreateSurfaceObject.