11.01.2014 Views

NVIDIA CUDA

NVIDIA CUDA

NVIDIA CUDA

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4.17 Texture Reference Management 99<br />

z - Z component<br />

w - W component<br />

f - Channel format<br />

Returns:<br />

See also:<br />

Channel descriptor with format f<br />

cudaCreateChannelDesc (C++ API), cudaGetChannelDesc, cudaGetTextureReference, cudaBindTexture (C API),<br />

cudaBindTexture2D (C API), cudaBindTextureToArray (C API), cudaUnbindTexture (C API), cudaGetTexture-<br />

AlignmentOffset (C API)<br />

4.17.2.5 cudaError_t cudaGetChannelDesc (struct cudaChannelFormatDesc ∗ desc, const struct cudaArray<br />

∗ array)<br />

Returns in ∗desc the channel descriptor of the <strong>CUDA</strong> array array.<br />

Parameters:<br />

desc - Channel format<br />

array - Memory array on device<br />

Returns:<br />

Note:<br />

See also:<br />

cudaSuccess, cudaErrorInvalidValue<br />

Note that this function may also return error codes from previous, asynchronous launches.<br />

cudaCreateChannelDesc (C API), cudaGetTextureReference, cudaBindTexture (C API), cudaBindTexture2D (C<br />

API), cudaBindTextureToArray (C API), cudaUnbindTexture (C API), cudaGetTextureAlignmentOffset (C API)<br />

4.17.2.6 cudaError_t cudaGetTextureAlignmentOffset (size_t ∗ offset, const struct textureReference ∗ texref)<br />

Returns in ∗offset the offset that was returned when texture reference texref was bound.<br />

Parameters:<br />

offset - Offset of texture reference in bytes<br />

texref - Texture to get offset of<br />

Returns:<br />

cudaSuccess, cudaErrorInvalidTexture, cudaErrorInvalidTextureBinding<br />

Note:<br />

Note that this function may also return error codes from previous, asynchronous launches.<br />

Generated for <strong>NVIDIA</strong> <strong>CUDA</strong> Library by Doxygen

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!