'宣言 Public Overloads Function MapSubresource( _ ByVal resourceRef As Resource, _ ByVal subresource As System.Integer, _ ByVal mapType As MapMode, _ ByVal mapFlags As MapFlags _ ) As DataBox
public DataBox MapSubresource( Resource resourceRef, System.int subresource, MapMode mapType, MapFlags mapFlags )
パラメータ
- 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
- Flagthat specifies what the CPU should do when the GPU is busy. This flag is optional.
戻り値の型
The mapped subresource (see C1.Util.DX.DataBox ). If MapFlags.DoNotWaitis used and the resource is still being used by the GPU, this method return an empty DataBox whose property C1.Util.DX.DataBox.IsEmptyreturns
true
.