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.

72 Module Documentation<br />

flags - Parameters for resource registration<br />

Returns:<br />

cudaSuccess, cudaErrorInvalidValue, cudaErrorInvalidResourceHandle, cudaErrorUnknown<br />

Note:<br />

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

See also:<br />

cudaGraphicsD3D9RegisterResource<br />

4.12.2.4 cudaError_t cudaD3D9ResourceGetMappedArray (cudaArray ∗∗ ppArray, IDirect3DResource9 ∗<br />

pResource, unsigned int face, unsigned int level)<br />

Deprecated<br />

This function is deprecated as of Cuda 3.0.<br />

Returns in ∗pArray an array through which the subresource of the mapped Direct3D resource pResource,<br />

which corresponds to face and level may be accessed. The value set in pArray may change every time that<br />

pResource is mapped.<br />

If pResource is not registered then cudaErrorInvalidResourceHandle is returned. If pResource was not registered<br />

with usage flags cudaD3D9RegisterFlagsArray, then cudaErrorInvalidResourceHandle is returned. If pResource is<br />

not mapped, then cudaErrorUnknown is returned.<br />

For usage requirements of face and level parameters, see cudaD3D9ResourceGetMappedPointer().<br />

Parameters:<br />

ppArray - Returned array corresponding to subresource<br />

pResource - Mapped resource to access<br />

face - Face of resource to access<br />

level - Level of resource to access<br />

Returns:<br />

Note:<br />

See also:<br />

cudaSuccess, cudaErrorInvalidResourceHandle, cudaErrorUnknown<br />

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

cudaGraphicsSubResourceGetMappedArray<br />

4.12.2.5 cudaError_t cudaD3D9ResourceGetMappedPitch (size_t ∗ pPitch, size_t ∗ pPitchSlice,<br />

IDirect3DResource9 ∗ pResource, unsigned int face, unsigned int level)<br />

Deprecated<br />

This function is deprecated as of Cuda 3.0.<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!