D3D12_BARRIER_SUBRESOURCE_RANGE 結構 (d3d12.h)

可讓您轉換子資源邏輯相鄰的範圍。

語法

typedef struct D3D12_BARRIER_SUBRESOURCE_RANGE {
  UINT IndexOrFirstMipLevel;
  UINT NumMipLevels;
  UINT FirstArraySlice;
  UINT NumArraySlices;
  UINT FirstPlane;
  UINT NumPlanes;
} D3D12_BARRIER_SUBRESOURCE_RANGE;

成員

IndexOrFirstMipLevel

範圍中第一個 mip 層級的索引;如果 NumMipLevels 為零,則為子資源索引。 如果子資源索引,您可以使用 值 0xffffffff 來指定所有子資源。

NumMipLevels

範圍中的 mip 層級數目,或零表示 IndexOrFirstMipLevel 是子資源索引。

FirstArraySlice

範圍中第一個陣列配量的索引。 如果 NumMipLevels 為零,則會忽略。

NumArraySlices

範圍中的陣列配量數目。 如果 NumMipLevels 為零,則會忽略。

FirstPlane

範圍中的第一個平面配量。 如果 NumMipLevels 為零,則會忽略。

NumPlanes

範圍中的平面配量數目。 如果 NumMipLevels 為零,則會忽略。

規格需求

需求
標頭 d3d12.h