11.01.2014 Views

NVIDIA CUDA

NVIDIA CUDA

NVIDIA CUDA

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4.35 Direct3D 9 Interoperability [DEPRECATED] 205<br />

4.35 Direct3D 9 Interoperability [DEPRECATED]<br />

Functions<br />

• CUresult cuD3D9GetDirect3DDevice (IDirect3DDevice9 ∗∗ppD3DDevice)<br />

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

• CUresult cuD3D9MapResources (unsigned int count, IDirect3DResource9 ∗∗ppResource)<br />

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

• CUresult cuD3D9RegisterResource (IDirect3DResource9 ∗pResource, unsigned int Flags)<br />

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

• CUresult cuD3D9ResourceGetMappedArray (CUarray ∗pArray, IDirect3DResource9 ∗pResource, unsigned int<br />

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 />

• CUresult cuD3D9ResourceGetMappedPitch (unsigned int ∗pPitch, unsigned int ∗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 />

• CUresult cuD3D9ResourceGetMappedPointer (CUdeviceptr ∗pDevPtr, IDirect3DResource9 ∗pResource, unsigned<br />

int Face, unsigned int Level)<br />

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

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

• CUresult cuD3D9ResourceGetMappedSize (unsigned int ∗pSize, IDirect3DResource9 ∗pResource, unsigned<br />

int 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 />

• CUresult cuD3D9ResourceGetSurfaceDimensions (unsigned int ∗pWidth, unsigned int ∗pHeight, unsigned int<br />

∗pDepth, IDirect3DResource9 ∗pResource, unsigned int Face, unsigned int Level)<br />

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

• CUresult cuD3D9ResourceSetMapFlags (IDirect3DResource9 ∗pResource, unsigned int Flags)<br />

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

• CUresult cuD3D9UnmapResources (unsigned int count, IDirect3DResource9 ∗∗ppResource)<br />

Unmaps Direct3D resources.<br />

• CUresult cuD3D9UnregisterResource (IDirect3DResource9 ∗pResource)<br />

Unregister a Direct3D resource.<br />

4.35.1 Detailed Description<br />

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