Bitmap for WPF
MapSubresource(Resource,Int32,MapMode,MapFlags) メソッド

C1.WPF.DX.4.5.2 アセンブリ > C1.Util.DX.Direct3D11 名前空間 > DeviceContext クラス > MapSubresource メソッド : MapSubresource(Resource,Int32,MapMode,MapFlags) メソッド
A reference to a Resource interface.
Index number of the subresource.
Specifies the CPU's read and write permissions for a resource. For possible values, see MapMode .
Flagthat specifies what the CPU should do when the GPU is busy. This flag is optional.
Gets a reference to the data contained in a subresource, and denies the GPU access to that subresource.
シンタックス
'宣言
 
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.
参照

DeviceContext クラス
DeviceContext メンバ
オーバーロード一覧