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.37 Direct3D 10 Interoperability [DEPRECATED] 221<br />

pPitchSlice - Returned Z-slice pitch of subresource<br />

pResource - Mapped resource to access<br />

SubResource - Subresource of pResource to access<br />

Returns:<br />

Note:<br />

<strong>CUDA</strong>_SUCCESS, <strong>CUDA</strong>_ERROR_DEINITIALIZED, <strong>CUDA</strong>_ERROR_NOT_INITIALIZED, <strong>CUDA</strong>_-<br />

ERROR_INVALID_CONTEXT, <strong>CUDA</strong>_ERROR_INVALID_VALUE, <strong>CUDA</strong>_ERROR_INVALID_HANDLE,<br />

<strong>CUDA</strong>_ERROR_NOT_MAPPED<br />

See also:<br />

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

cuGraphicsSubResourceGetMappedArray<br />

4.37.2.5 cuD3D10ResourceGetMappedPointer (CUdeviceptr ∗ pDevPtr, ID3D10Resource ∗ pResource,<br />

unsigned int SubResource)<br />

Deprecated<br />

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

Returns in ∗pDevPtr the base pointer of the subresource of the mapped Direct3D resource pResource, which<br />

corresponds to SubResource. The value set in pDevPtr may change every time that pResource is mapped.<br />

If pResource is not registered, then <strong>CUDA</strong>_ERROR_INVALID_HANDLE is returned. If pResource was not<br />

registered with usage flags CU_D3D10_REGISTER_FLAGS_NONE, then <strong>CUDA</strong>_ERROR_INVALID_HANDLE is<br />

returned. If pResource is not mapped, then <strong>CUDA</strong>_ERROR_NOT_MAPPED is returned.<br />

If pResource is of type ID3D10Buffer, then SubResource must be 0. If pResource is of any other type, then<br />

the value of SubResource must come from the subresource calculation in D3D10CalcSubResource().<br />

Parameters:<br />

pDevPtr - Returned pointer corresponding to subresource<br />

pResource - Mapped resource to access<br />

SubResource - Subresource of pResource to access<br />

Returns:<br />

Note:<br />

<strong>CUDA</strong>_SUCCESS, <strong>CUDA</strong>_ERROR_DEINITIALIZED, <strong>CUDA</strong>_ERROR_NOT_INITIALIZED, <strong>CUDA</strong>_-<br />

ERROR_INVALID_CONTEXT, <strong>CUDA</strong>_ERROR_INVALID_VALUE, <strong>CUDA</strong>_ERROR_INVALID_HANDLE,<br />

<strong>CUDA</strong>_ERROR_NOT_MAPPED<br />

See also:<br />

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

cuGraphicsResourceGetMappedPointer<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!