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.

66 Module Documentation• cudaError_t cudaD3D10SetDirect3DDevice (ID3D10Device ∗pDxDevice)Sets the Direct3D device to use for interoperability in this thread.• cudaError_t cudaD3D10UnmapResources (int count, ID3D10Resource ∗∗ppResources)Unmaps Direct3D resources.• cudaError_t cudaD3D10UnregisterResource (ID3D10Resource ∗pResource)Unregisters a Direct3D resource.3.11.1 Detailed DescriptionThis section describes the Direct3D 10 interoperability functions of the <strong>CUDA</strong> runtime application programminginterface.3.11.2 Enumeration Type Documentation3.11.2.1 enum cudaD3D10MapFlags<strong>CUDA</strong> D3D10 Map FlagsEnumerator:cudaD3D10MapFlagsNone Default; Assume resource can be read/written.cudaD3D10MapFlagsReadOnly <strong>CUDA</strong> kernels will not write to this resource.cudaD3D10MapFlagsWriteDiscard <strong>CUDA</strong> kernels will only write to and will not read from this resource.3.11.2.2 enum cudaD3D10RegisterFlags<strong>CUDA</strong> D3D10 Register FlagsEnumerator:cudaD3D10RegisterFlagsNone Default; Resource can be accessed through a void∗.cudaD3D10RegisterFlagsArray Resource can be accessed through a CUarray∗.3.11.3 Function Documentation3.11.3.1 cudaError_t cudaD3D10GetDevice (int ∗ device, IDXGIAdapter ∗ pAdapter)Returns in ∗device the <strong>CUDA</strong>-compatible device corresponding to the adapter pAdapter obtained from IDXGI-Factory::EnumAdapters. This call will succeed only if a device on adapter pAdapter is Cuda-compatible.Parameters:device - Returns the device corresponding to pAdapterpAdapter - D3D10 adapter to get device forReturns:cudaSuccess, cudaErrorInvalidValue, cudaErrorUnknownGenerated 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!