Function rcudnn_sys::cudaCreateChannelDesc [−][src]
pub unsafe extern "C" fn cudaCreateChannelDesc(
x: c_int,
y: c_int,
z: c_int,
w: c_int,
f: cudaChannelFormatKind
) -> cudaChannelFormatDesc
Expand description
\brief Returns a channel descriptor using the specified format
Returns a channel descriptor with format \p f and number of bits of each component \p x, \p y, \p z, and \p w. The ::cudaChannelFormatDesc is defined as: \code struct cudaChannelFormatDesc { int x, y, z, w; enum cudaChannelFormatKind f; }; \endcode
where ::cudaChannelFormatKind is one of ::cudaChannelFormatKindSigned, ::cudaChannelFormatKindUnsigned, or ::cudaChannelFormatKindFloat.
\param x - X component \param y - Y component \param z - Z component \param w - W component \param f - Channel format
\return Channel descriptor with format \p f
\sa \ref ::cudaCreateChannelDesc(void) “cudaCreateChannelDesc (C++ API)”, ::cudaGetChannelDesc, ::cudaCreateTextureObject, ::cudaCreateSurfaceObject