|
cuD3D10ResourceGetMappedPointer |
( |
CUdeviceptr * |
pDevPtr, |
|
|
ID3D10Resource * |
pResource, |
|
|
unsigned int |
SubResource | |
|
) |
| | |
Returns in *pDevPtr the base pointer of the subresource of the mapped Direct3D resource pResource , which corresponds to SubResource . The value set in pDevPtr may change every time that pResource is mapped.
If pResource is not registered, then CUDA_ERROR_INVALID_HANDLE is returned. If pResource was not registered with usage flags CU_D3D10_REGISTER_FLAGS_NONE, then CUDA_ERROR_INVALID_HANDLE is returned. If pResource is not mapped, then CUDA_ERROR_NOT_MAPPED is returned.
If pResource is of type ID3D10Buffer, then SubResource must be 0. If pResource is of any other type, then the value of SubResource must come from the subresource calculation in D3D10CalcSubResource().
- Parameters:
-
| pDevPtr | - Returned pointer corresponding to subresource |
| pResource | - Mapped resource to access |
| SubResource | - Subresource of pResource to access |
- Returns:
- CUDA_SUCCESS, CUDA_ERROR_DEINITIALIZED, CUDA_ERROR_NOT_INITIALIZED, CUDA_ERROR_INVALID_CONTEXT, CUDA_ERROR_INVALID_VALUE, CUDA_ERROR_INVALID_HANDLE, CUDA_ERROR_NOT_MAPPED
- Note:
- Note that this function may also return error codes from previous, asynchronous launches.
- See also:
- cuD3D10CtxCreate, cuD3D10GetDevice, cuD3D10MapResources, cuD3D10RegisterResource, cuD3D10ResourceGetMappedArray, cuD3D10ResourceGetMappedPitch, cuD3D10ResourceGetMappedSize, cuD3D10ResourceGetSurfaceDimensions, cuD3D10ResourceSetMapFlags, cuD3D10UnmapResources, cuD3D10UnregisterResource
|