12.07.2015 Views

NVIDIA CUDA

NVIDIA CUDA

NVIDIA CUDA

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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

58 Module Documentation• Resources allocated as shared may not be registered with <strong>CUDA</strong>.• Any resources allocated in D3DPOOL_SYSTEMMEM or D3DPOOL_MANAGED may not be registered with<strong>CUDA</strong>.• Textures which are not of a format which is 1, 2, or 4 channels of 8, 16, or 32-bit integer or floating-point datacannot be shared.• Surfaces of depth or stencil formats cannot be shared.If Direct3D interoperability is not initialized on this context, then cudaErrorInvalidDevice is returned. If pResourceis of incorrect type (e.g, is a non-stand-alone IDirect3DSurface9) or is already registered, then cudaErrorInvalidResourceHandleis returned. If pResource cannot be registered then cudaErrorUnknown is returned.Parameters:pResource - Resource to registerflags - Parameters for resource registrationReturns:Note:See also:cudaSuccess, cudaErrorInvalidValue, cudaErrorInvalidResourceHandle, cudaErrorUnknownNote that this function may also return error codes from previous, asynchronous launches.cudaD3D9GetDevice, cudaD3D9SetDirect3DDevice, cudaD3D9GetDirect3DDevice, cudaD3D9UnregisterResource,cudaD3D9MapResources, cudaD3D9UnmapResources,cudaD3D9ResourceGetSurfaceDimensions, cudaD3D9ResourceSetMapFlags, cudaD3D9ResourceGetMappedArray,cudaD3D9ResourceGetMappedPointer, cudaD3D9ResourceGetMappedSize,cudaD3D9ResourceGetMappedPitch3.10.3.5 cudaError_t cudaD3D9ResourceGetMappedArray (cudaArray ∗∗ ppArray, IDirect3DResource9 ∗pResource, unsigned int face, unsigned int level)Returns in ∗pArray an array through which the subresource of the mapped Direct3D resource pResource,which corresponds to face and level may be accessed. The value set in pArray may change every time thatpResource is mapped.If pResource is not registered then cudaErrorInvalidResourceHandle is returned. If pResource was not registeredwith usage flags cudaD3D9RegisterFlagsArray, then cudaErrorInvalidResourceHandle is returned. If pResource isnot mapped, then cudaErrorUnknown is returned.For usage requirements of face and level parameters, see cudaD3D9ResourceGetMappedPointer().Parameters:ppArray - Returned array corresponding to subresourcepResource - Mapped resource to accessface - Face of resource to accesslevel - Level of resource to accessGenerated 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!