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.12 Direct3D 9 Interoperability [DEPRECATED] 69<br />

4.12 Direct3D 9 Interoperability [DEPRECATED]<br />

Functions<br />

• cudaError_t cudaD3D9GetDirect3DDevice (IDirect3DDevice9 ∗∗ppD3D9Device)<br />

Gets the Direct3D device against which the current <strong>CUDA</strong> context was created.<br />

• cudaError_t cudaD3D9MapResources (int count, IDirect3DResource9 ∗∗ppResources)<br />

Map Direct3D resources for access by <strong>CUDA</strong>.<br />

• cudaError_t cudaD3D9RegisterResource (IDirect3DResource9 ∗pResource, unsigned int flags)<br />

Registers a Direct3D resource for access by <strong>CUDA</strong>.<br />

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

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

Get an array through which to access a subresource of a Direct3D resource which has been mapped for access by <strong>CUDA</strong>.<br />

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

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

Get the pitch of a subresource of a Direct3D resource which has been mapped for access by <strong>CUDA</strong>.<br />

• cudaError_t cudaD3D9ResourceGetMappedPointer (void ∗∗pPointer, IDirect3DResource9 ∗pResource, unsigned<br />

int face, unsigned int level)<br />

Get a pointer through which to access a subresource of a Direct3D resource which has been mapped for access by<br />

<strong>CUDA</strong>.<br />

• cudaError_t cudaD3D9ResourceGetMappedSize (size_t ∗pSize, IDirect3DResource9 ∗pResource, unsigned int<br />

face, unsigned int level)<br />

Get the size of a subresource of a Direct3D resource which has been mapped for access by <strong>CUDA</strong>.<br />

• cudaError_t cudaD3D9ResourceGetSurfaceDimensions (size_t ∗pWidth, size_t ∗pHeight, size_t ∗pDepth, IDirect3DResource9<br />

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

Get the dimensions of a registered Direct3D surface.<br />

• cudaError_t cudaD3D9ResourceSetMapFlags (IDirect3DResource9 ∗pResource, unsigned int flags)<br />

Set usage flags for mapping a Direct3D resource.<br />

• cudaError_t cudaD3D9UnmapResources (int count, IDirect3DResource9 ∗∗ppResources)<br />

Unmap Direct3D resources for access by <strong>CUDA</strong>.<br />

• cudaError_t cudaD3D9UnregisterResource (IDirect3DResource9 ∗pResource)<br />

Unregisters a Direct3D resource for access by <strong>CUDA</strong>.<br />

4.12.1 Detailed Description<br />

This section describes deprecated Direct3D 9 interoperability functions.<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!