ID3D12GraphicsCommandList4::BeginRenderPass 方法 (d3d12.h)

藉由系結一組輸出資源,在轉譯階段期間標記轉譯傳遞的開頭。 這些系結位於一或多個轉譯目標檢視 (RTV) 和/或深度樣板檢視 (DSV) 。

語法

void BeginRenderPass(
  UINT                                       NumRenderTargets,
  const D3D12_RENDER_PASS_RENDER_TARGET_DESC *pRenderTargets,
  const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC *pDepthStencil,
  D3D12_RENDER_PASS_FLAGS                    Flags
);

參數

NumRenderTargets

UINT。 正在系結的轉譯目標數目。

pRenderTargets

數D3D12_RENDER_PASS_RENDER_TARGET_DESC指標,其描述 (轉譯期間) 一或多個轉譯目標檢視 (RTV) 的系結,以及其開頭和結束存取特性。

pDepthStencil

常數 D3D12_RENDER_PASS_DEPTH_STENCIL_DESC的指標,描述轉譯期間 (固定的系結) 至 DSV) 深度樣板檢視 (,以及其開頭和結束存取特性。

Flags

D3D12_RENDER_PASS_FLAGS。 轉譯階段的本質/需求;例如,無論是暫停或繼續轉譯階段,還是想要寫入未排序的存取檢視 () 。

傳回值

需求

   
最低支援的用戶端 Windows 10 版本 1809 [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2016 [僅限傳統型應用程式]
目標平台 Windows
標頭 d3d12.h
程式庫 D3D12.lib
Dll D3D12.dll

另請參閱

EndRenderPass

ID3D12GraphicsCommandList4

轉譯