|
template<class T , int dim, enum cudaTextureReadMode readMode>
cudaError_t cudaGetTextureAlignmentOffset |
( |
size_t * |
offset, |
|
|
const struct texture< T, dim, readMode > & |
tex | |
|
) |
| | |
Returns in *offset the offset that was returned when texture reference tex was bound.
- Parameters:
-
| offset | - Offset of texture reference in bytes |
| tex | - Texture to get offset of |
- Returns:
- cudaSuccess, cudaErrorInvalidTexture, cudaErrorInvalidTextureBinding
- Note:
- Note that this function may also return error codes from previous, asynchronous launches.
- See also:
- cudaCreateChannelDesc (C++ API), cudaGetChannelDesc, cudaGetTextureReference, cudaBindTexture (C++ API), cudaBindTexture (C++ API, inherited channel descriptor), cudaBindTexture2D (C++ API), cudaBindTexture2D (C++ API, inherited channel descriptor), cudaBindTextureToArray (C++ API), cudaBindTextureToArray (C++ API, inherited channel descriptor), cudaUnbindTexture (C++ API), cudaGetTextureAlignmentOffset (C API)
|