Gets a reference to the data contained in a subresource, and denies the GPU access to that subresource.
Parameters
- resourceRef
- A reference to a Resource interface.
- subresource
- Index number of the subresource.
- mapType
- Specifies the CPU's read and write permissions for a resource. For possible values, see MapMode.
- mapFlags
- Flag that specifies what the CPU should do when the GPU is busy. This flag is optional.
Return Value
The mapped subresource (see
C1.Util.DX.DataBox). If
MapFlags.DoNotWait is used and the resource is still being used by the GPU, this method return an empty DataBox whose property
C1.Util.DX.DataBox.IsEmpty returns
true
.