D3D12_BOX 結構 (d3d12.h)

描述 3D 方塊。

語法

typedef struct D3D12_BOX {
  UINT left;
  UINT top;
  UINT front;
  UINT right;
  UINT bottom;
  UINT back;
} D3D12_BOX;

成員

left

方塊左側的 x 位置。

top

方塊頂端的 Y 位置。

front

方塊前端的 z 位置。

right

方塊右側的 x 位置,加上 1。 這表示等於 right - left 方塊的寬度。

bottom

方塊底部的 Y 位置加上 1。 這表示等於 bottom - top 方塊的高度。

back

方塊背面的 z 位置加上 1。 這表示等於 back - front 方塊的深度。

備註

這個結構是由 WriteToSubresourceReadFromSubresourceCopyTextureRegion 方法使用。

規格需求

需求
標頭 d3d12.h

另請參閱

CD3DX12_BOX

核心結構