Direct3D 10 Interoperability
[CUDA Runtime API]


Direct3D 10 Interoperability with CUDA Runtime

Direct3D 10 Interoperability with CUDA Runtime

Author:
NVIDIA Corporation


enum  cudaD3D10MapFlags {
  cudaD3D10MapFlagsNone,
  cudaD3D10MapFlagsReadOnly,
  cudaD3D10MapFlagsWriteDiscard
}
enum  cudaD3D10RegisterFlags {
  cudaD3D10RegisterFlagsNone,
  cudaD3D10RegisterFlagsArray
}
cudaError_t cudaD3D10GetDevice (int *device, IDXGIAdapter *pAdapter)
 Gets the device number for an adapter.
cudaError_t cudaD3D10MapResources (int count, ID3D10Resource **ppResources)
 Map Direct3D Resources for access by CUDA.
cudaError_t cudaD3D10RegisterResource (ID3D10Resource *pResource, unsigned int flags)
 Register a Direct3D resource for access by CUDA.
cudaError_t cudaD3D10ResourceGetMappedArray (cudaArray **ppArray, ID3D10Resource *pResource, unsigned int subResource)
 Get an array through which to access a subresource of a Direct3D resource which has been mapped for access by CUDA.
cudaError_t cudaD3D10ResourceGetMappedPitch (size_t *pPitch, size_t *pPitchSlice, ID3D10Resource *pResource, unsigned int subResource)
 Get the pitch of a subresource of a Direct3D resource which has been mapped for access by CUDA.
cudaError_t cudaD3D10ResourceGetMappedPointer (void **pPointer, ID3D10Resource *pResource, unsigned int subResource)
 Get a pointer through which to access a subresource of a Direct3D resource which has been mapped for access by CUDA.
cudaError_t cudaD3D10ResourceGetMappedSize (size_t *pSize, ID3D10Resource *pResource, unsigned int subResource)
 Get the size of a subresource of a Direct3D resource which has been mapped for access by CUDA.
cudaError_t cudaD3D10ResourceGetSurfaceDimensions (size_t *pWidth, size_t *pHeight, size_t *pDepth, ID3D10Resource *pResource, unsigned int subResource)
 Get the dimensions of a registered Direct3D surface.
cudaError_t cudaD3D10ResourceSetMapFlags (ID3D10Resource *pResource, unsigned int flags)
 Set usage flags for mapping a Direct3D resource.
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.

Detailed Description

This section describes the Direct3D 10 interoperability functions of the CUDA runtime application programming interface.

Generated by Doxygen for NVIDIA CUDA Library  NVIDIA