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.29 Direct3D 10 Interoperability 191See also:cuD3D10CtxCreate, cuD3D10GetDevice, cuD3D10MapResources, cuD3D10RegisterResource,cuD3D10ResourceGetMappedArray, cuD3D10ResourceGetMappedPitch, cuD3D10ResourceGetMappedSize,cuD3D10ResourceGetSurfaceDimensions, cuD3D10ResourceSetMapFlags, cuD3D10UnmapResources,cuD3D10UnregisterResource3.29.2.8 CUresult cuD3D10ResourceGetMappedSize (unsigned int ∗ pSize, ID3D10Resource ∗ pResource,U32 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 <strong>CUDA</strong>_ERROR_INVALID_HANDLE is returned. IfpResource was not registered with usage flags CU_D3D10_REGISTER_FLAGS_NONE, then <strong>CUDA</strong>_ERROR_-INVALID_HANDLE is returned. If pResource is not mapped for access by <strong>CUDA</strong>, then <strong>CUDA</strong>_ERROR_NOT_-MAPPED is returned.For usage requirements of the SubResource parameter, see cuD3D10ResourceGetMappedPointer().Parameters:pSize - Returned size of subresourcepResource - Mapped resource to accessSubResource - Subresource of pResource to accessReturns:Note:<strong>CUDA</strong>_SUCCESS, <strong>CUDA</strong>_ERROR_DEINITIALIZED, <strong>CUDA</strong>_ERROR_NOT_INITIALIZED, <strong>CUDA</strong>_-ERROR_INVALID_CONTEXT, <strong>CUDA</strong>_ERROR_INVALID_VALUE, <strong>CUDA</strong>_ERROR_INVALID_HANDLE,<strong>CUDA</strong>_ERROR_NOT_MAPPEDSee also:Note that this function may also return error codes from previous, asynchronous launches.cuD3D10CtxCreate, cuD3D10GetDevice, cuD3D10MapResources, cuD3D10RegisterResource,cuD3D10ResourceGetMappedArray, cuD3D10ResourceGetMappedPitch, cuD3D10ResourceGetMappedPointer,cuD3D10ResourceGetSurfaceDimensions, cuD3D10ResourceSetMapFlags, cuD3D10UnmapResources,cuD3D10UnregisterResource3.29.2.9 CUresult cuD3D10ResourceGetSurfaceDimensions (unsigned int ∗ pWidth, unsigned int ∗ pHeight,unsigned int ∗ pDepth, ID3D10Resource ∗ pResource, U32 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.Generated 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!