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.

62 Module DocumentationReturns:Note:See also:cudaSuccess, cudaErrorInvalidValue, cudaErrorInvalidResourceHandle,Note that this function may also return error codes from previous, asynchronous launches.cudaD3D9GetDevice, cudaD3D9SetDirect3DDevice, cudaD3D9GetDirect3DDevice, cudaD3D9RegisterResource,cudaD3D9UnregisterResource, cudaD3D9MapResources, cudaD3D9UnmapResources,cudaD3D9ResourceSetMapFlags, cudaD3D9ResourceGetMappedArray, cudaD3D9ResourceGetMappedPointer,cudaD3D9ResourceGetMappedSize, cudaD3D9ResourceGetMappedPitch3.10.3.10 cudaError_t cudaD3D9ResourceSetMapFlags (IDirect3DResource9 ∗ pResource, unsigned intflags)Set flags for mapping the Direct3D resource pResource.Changes to flags will take effect the next time pResource is mapped. The flags argument may be any of thefollowing:• cudaD3D9MapFlagsNone: Specifies no hints about how this resource will be used. It is therefore assumed thatthis resource will be read from and written to by <strong>CUDA</strong> kernels. This is the default value.• cudaD3D9MapFlagsReadOnly: Specifies that <strong>CUDA</strong> kernels which access this resource will not write to thisresource.• cudaD3D9MapFlagsWriteDiscard: Specifies that <strong>CUDA</strong> kernels which access this resource will not read fromthis resource and will write over the entire contents of the resource, so none of the data previously stored in theresource will be preserved.If pResource has not been registered for use with <strong>CUDA</strong>, then cudaErrorInvalidResourceHandle is returned. IfpResource is presently mapped for access by <strong>CUDA</strong>, then cudaErrorUnknown is returned.Parameters:pResource - Registered resource to set flags forflags - Parameters for resource mappingReturns:Note:See also:cudaSuccess, cudaErrorInvalidValue, cudaErrorInvalidResourceHandle, cudaErrorUnknownNote that this function may also return error codes from previous, asynchronous launches.cudaD3D9GetDevice, cudaD3D9SetDirect3DDevice, cudaD3D9GetDirect3DDevice, cudaD3D9RegisterResource,cudaD3D9UnregisterResource, cudaD3D9MapResources, cudaD3D9UnmapResources,cudaD3D9ResourceGetSurfaceDimensions, cudaD3D9ResourceGetMappedArray,cudaD3D9ResourceGetMappedPointer, cudaD3D9ResourceGetMappedSize, cudaD3D9ResourceGetMappedPitchGenerated 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!