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.

72 Module DocumentationpResource - Registered resource to accesssubResource - Subresource of pResource to accessReturns:Note:See also:cudaSuccess, cudaErrorInvalidValue, cudaErrorInvalidResourceHandle,Note that this function may also return error codes from previous, asynchronous launches.cudaD3D10GetDevice, cudaD3D10SetDirect3DDevice, cudaD3D10RegisterResource, cudaD3D10UnregisterResource,cudaD3D10MapResources, cudaD3D10UnmapResources,cudaD3D10ResourceSetMapFlags, cudaD3D10ResourceGetMappedArray, cudaD3D10ResourceGetMappedPointer,cudaD3D10ResourceGetMappedSize, cudaD3D10ResourceGetMappedPitch3.11.3.9 cudaError_t cudaD3D10ResourceSetMapFlags (ID3D10Resource ∗ pResource, unsigned int flags)Set usage 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:• cudaD3D10MapFlagsNone: 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.• cudaD3D10MapFlagsReadOnly: Specifies that <strong>CUDA</strong> kernels which access this resource will not write to thisresource.• cudaD3D10MapFlagsWriteDiscard: 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 cudaErrorInvalidHandle is returned. If pResourceis 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, cudaErrorUnknown,Note that this function may also return error codes from previous, asynchronous launches.cudaD3D10GetDevice, cudaD3D10SetDirect3DDevice, cudaD3D10RegisterResource, cudaD3D10UnregisterResource,cudaD3D10MapResources, cudaD3D10UnmapResources,cudaD3D10ResourceGetSurfaceDimensions, cudaD3D10ResourceGetMappedArray, cudaD3D10ResourceGetMappedPointer,cudaD3D10ResourceGetMappedSize, cudaD3D10ResourceGetMappedPitchGenerated 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!