|
cuD3D10ResourceGetSurfaceDimensions |
( |
unsigned int * |
pWidth, |
|
|
unsigned int * |
pHeight, |
|
|
unsigned int * |
pDepth, |
|
|
ID3D10Resource * |
pResource, |
|
|
unsigned int |
SubResource | |
|
) |
| | |
Returns in *pWidth , *pHeight , and *pDepth the dimensions of the subresource of the mapped Direct3D resource pResource , which corresponds to SubResource .
Because anti-aliased surfaces may have multiple samples per pixel, it is possible that the dimensions of a resource will be 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 will be 0.
If pResource is not of type IDirect3DBaseTexture10 or IDirect3DSurface10 or if pResource has not been registered for use with CUDA, then CUDA_ERROR_INVALID_HANDLE is returned.
For usage requirements of the SubResource parameter, see cuD3D10ResourceGetMappedPointer().
- Parameters:
-
| pWidth | - Returned width of surface |
| pHeight | - Returned height of surface |
| pDepth | - Returned depth of surface |
| pResource | - Registered 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
- Note:
- Note that this function may also return error codes from previous, asynchronous launches.
- See also:
- cuD3D10CtxCreate, cuD3D10GetDevice, cuD3D10MapResources, cuD3D10RegisterResource, cuD3D10ResourceGetMappedArray, cuD3D10ResourceGetMappedPitch, cuD3D10ResourceGetMappedPointer, cuD3D10ResourceGetMappedSize, cuD3D10ResourceSetMapFlags, cuD3D10UnmapResources, cuD3D10UnregisterResource
|