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 ::cudaChannelFormatKindSigned, ::cudaChannelFormatKindUnsigned, or ::cudaChannelFormatKindFloat.
§Return value
Channel descriptor with format f
See also: ::cudaCreateChannelDesc(void) “cudaCreateChannelDesc (C++ API)”, ::cudaGetChannelDesc, ::cudaCreateTextureObject, ::cudaCreateSurfaceObject
§Parameters
x: - X componenty: - Y componentz: - Z componentw: - W componentf: - Channel format