|
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 to subResource . The value set in pSize may change every time that pResource is mapped.
If pResource has not been registered for use with CUDA then cudaErrorInvalidHandle is returned. If pResource was not registered with usage flags cudaD3D10RegisterFlagsNone, then cudaErrorInvalidHandle is returned. If pResource is not mapped for access by CUDA then cudaErrorUnknown is returned.
For usage requirements of the subResource parameter see cudaD3D10ResourceGetMappedPointer().
- Parameters:
-
| pSize | - Returned size of subresource |
| pResource | - Mapped resource to access |
| subResource | - Subresource of pResource to access |
- Returns:
- cudaSuccess, cudaErrorInvalidValue, cudaErrorInvalidResourceHandle, cudaErrorUnknown
- Note:
- Note that this function may also return error codes from previous, asynchronous launches.
- See also:
- cudaD3D10GetDevice, cudaD3D10SetDirect3DDevice, cudaD3D10RegisterResource, cudaD3D10UnregisterResource, cudaD3D10MapResources, cudaD3D10UnmapResources, cudaD3D10ResourceGetSurfaceDimensions, cudaD3D10ResourceSetMapFlags, cudaD3D10ResourceGetMappedPointer, cudaD3D10ResourceGetMappedArray, cudaD3D10ResourceGetMappedPitch
|