struct cudaChannelFormatDesc cudaCreateChannelDesc ( int  x,
int  y,
int  z,
int  w,
enum cudaChannelFormatKind  f 
) [read]

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.

Parameters:
x - X component
y - Y component
z - Z component
w - W component
f - Channel format
Returns:
Channel descriptor with format f
See also:
cudaCreateChannelDesc (C++ API), cudaGetChannelDesc, cudaGetTextureReference, cudaBindTexture (C API), cudaBindTexture2D (C API), cudaBindTextureToArray (C API), cudaUnbindTexture (C API), cudaGetTextureAlignmentOffset (C API)


Generated by Doxygen for NVIDIA CUDA Library  NVIDIA