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.

174 Module Documentation3.28 Direct3D 9 InteroperabilityFunctions• CUresult cuD3D9CtxCreate (CUcontext ∗pCtx, CUdevice ∗pCuDevice, unsigned int flags, IDirect3DDevice9∗pDxDevice)Create a <strong>CUDA</strong> context for interoperability with Direct3D.• CUresult cuD3D9GetDevice (CUdevice ∗pDevice, const char ∗pszAdapterName)Gets the device number for an adapter.• CUresult cuD3D9GetDirect3DDevice (IDirect3DDevice9 ∗∗ppDxDevice)Get the Direct3D device against which the current <strong>CUDA</strong> context was created.• CUresult cuD3D9MapResources (unsigned int count, IDirect3DResource9 ∗∗ppResources)Map Direct3D resources for access by <strong>CUDA</strong>.• CUresult cuD3D9RegisterResource (IDirect3DResource9 ∗pResource, unsigned int flags)Register a Direct3D resource for access by <strong>CUDA</strong>.• CUresult cuD3D9ResourceGetMappedArray (CUarray ∗pArray, IDirect3DResource9 ∗pResource, U32 face,U32 level)Get an array through which to access a subresource of a Direct3D resource which has been mapped for access by <strong>CUDA</strong>.• CUresult cuD3D9ResourceGetMappedPitch (unsigned int ∗pPitch, unsigned int ∗pPitchSlice, IDirect3DResource9∗pResource, U32 face, U32 level)Get the pitch of a subresource of a Direct3D resource which has been mapped for access by <strong>CUDA</strong>.• CUresult cuD3D9ResourceGetMappedPointer (CUdeviceptr ∗pDevPtr, IDirect3DResource9 ∗pResource, U32face, U32 level)Get the pointer through which to access a subresource of a Direct3D resource which has been mapped for access by<strong>CUDA</strong>.• CUresult cuD3D9ResourceGetMappedSize (unsigned int ∗pSize, IDirect3DResource9 ∗pResource, U32 face,U32 level)Get the size of a subresource of a Direct3D resource which has been mapped for access by <strong>CUDA</strong>.• CUresult cuD3D9ResourceGetSurfaceDimensions (unsigned int ∗pWidth, unsigned int ∗pHeight, unsigned int∗pDepth, IDirect3DResource9 ∗pResource, unsigned int face, unsigned int level)Get the dimensions of a registered surface.• CUresult cuD3D9ResourceSetMapFlags (IDirect3DResource9 ∗pResource, unsigned int flags)Set usage flags for mapping a Direct3D resource.• CUresult cuD3D9UnmapResources (unsigned int count, IDirect3DResource9 ∗∗ppResources)Unmaps Direct3D resources.• CUresult cuD3D9UnregisterResource (IDirect3DResource9 ∗pResource)Unregister a Direct3D resource.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!