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.

3.11 Direct3D 10 Interoperability 713.11.3.7 cudaError_t cudaD3D10ResourceGetMappedSize (size_t ∗ pSize, ID3D10Resource ∗ pResource,unsigned int subResource)Returns in ∗pSize the size of the subresource of the mapped Direct3D resource pResource which corresponds tosubResource. The value set in pSize may change every time that pResource is mapped.If pResource has not been registered for use with <strong>CUDA</strong> then cudaErrorInvalidHandle is returned. If pResourcewas not registered with usage flags cudaD3D10RegisterFlagsNone, then cudaErrorInvalidHandle is returned. IfpResource is not mapped for access by <strong>CUDA</strong> then cudaErrorUnknown is returned.For usage requirements of the subResource parameter see cudaD3D10ResourceGetMappedPointer().Parameters:pSize - Returned size of subresourcepResource - Mapped resource to accesssubResource - Subresource of pResource to accessReturns:Note:See also:cudaSuccess, cudaErrorInvalidValue, cudaErrorInvalidResourceHandle, cudaErrorUnknownNote that this function may also return error codes from previous, asynchronous launches.cudaD3D10GetDevice, cudaD3D10SetDirect3DDevice, cudaD3D10RegisterResource, cudaD3D10UnregisterResource,cudaD3D10MapResources, cudaD3D10UnmapResources,cudaD3D10ResourceGetSurfaceDimensions, cudaD3D10ResourceSetMapFlags, cudaD3D10ResourceGetMappedPointer,cudaD3D10ResourceGetMappedArray, cudaD3D10ResourceGetMappedPitch3.11.3.8 cudaError_t cudaD3D10ResourceGetSurfaceDimensions (size_t ∗ pWidth, size_t ∗ pHeight, size_t ∗pDepth, ID3D10Resource ∗ pResource, unsigned int subResource)Returns in ∗pWidth, ∗pHeight, and ∗pDepth the dimensions of the subresource of the mapped Direct3D resourcepResource which corresponds to subResource.Because anti-aliased surfaces may have multiple samples per pixel, it is possible that the dimensions of a resource willbe an integer factor larger than the dimensions reported by the Direct3D runtime.The parameters pWidth, pHeight, and pDepth are optional. For 2D surfaces, the value returned in ∗pDepth willbe 0.If pResource is not of type ID3D10Texture1D, ID3D10Texture2D, or ID3D10Texture3D, or if pResource hasnot been registered for use with <strong>CUDA</strong>, then cudaErrorInvalidHandle is returned.For usage requirements of subResource parameters see cudaD3D10ResourceGetMappedPointer().Parameters:pWidth - Returned width of surfacepHeight - Returned height of surfacepDepth - Returned depth of surfaceGenerated 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!