12.07.2015 Views

NVIDIA CUDA

NVIDIA CUDA

NVIDIA CUDA

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

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

54 Module Documentation3.10 Direct3D 9 InteroperabilityDirect3D 9 Interoperability with <strong>CUDA</strong> RuntimeDirect3D 9 Interoperability with <strong>CUDA</strong> RuntimeAuthor:<strong>NVIDIA</strong> Corporation• enum cudaD3D9MapFlags {cudaD3D9MapFlagsNone,cudaD3D9MapFlagsReadOnly,cudaD3D9MapFlagsWriteDiscard }• enum cudaD3D9RegisterFlags {cudaD3D9RegisterFlagsNone,cudaD3D9RegisterFlagsArray }• cudaError_t cudaD3D9GetDevice (int ∗device, const char ∗pszAdapterName)Gets the device number for an adapter.• cudaError_t cudaD3D9GetDirect3DDevice (IDirect3DDevice9 ∗∗ppDxDevice)Gets the Direct3D device against which the current <strong>CUDA</strong> context was created.• cudaError_t cudaD3D9MapResources (int count, IDirect3DResource9 ∗∗ppResources)Map Direct3D resources for access by <strong>CUDA</strong>.• cudaError_t cudaD3D9RegisterResource (IDirect3DResource9 ∗pResource, unsigned int flags)Registers a Direct3D resource for access by <strong>CUDA</strong>.• cudaError_t cudaD3D9ResourceGetMappedArray (cudaArray ∗∗ppArray, IDirect3DResource9 ∗pResource,unsigned int face, unsigned int level)Get an array through which to access a subresource of a Direct3D resource which has been mapped for access by <strong>CUDA</strong>.• cudaError_t cudaD3D9ResourceGetMappedPitch (size_t ∗pPitch, size_t ∗pPitchSlice, IDirect3DResource9∗pResource, unsigned int face, unsigned int level)Get the pitch of a subresource of a Direct3D resource which has been mapped for access by <strong>CUDA</strong>.• cudaError_t cudaD3D9ResourceGetMappedPointer (void ∗∗pPointer, IDirect3DResource9 ∗pResource, unsignedint face, unsigned int level)Get a pointer through which to access a subresource of a Direct3D resource which has been mapped for access by<strong>CUDA</strong>.• cudaError_t cudaD3D9ResourceGetMappedSize (size_t ∗pSize, IDirect3DResource9 ∗pResource, unsigned intface, unsigned int level)Get the size of a subresource of a Direct3D resource which has been mapped for access by <strong>CUDA</strong>.• cudaError_t cudaD3D9ResourceGetSurfaceDimensions (size_t ∗pWidth, size_t ∗pHeight, size_t ∗pDepth, IDirect3DResource9∗pResource, unsigned int face, unsigned int level)Get the dimensions of a registered Direct3D surface.Generated on Wed Apr 1 16:11:42 2009 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!