当您创建渲染通道子通道描述时,您将提供指向颜色附件的指针:
VkSubpassDescription::pColorAttachments
Run Code Online (Sandbox Code Playgroud)
以及指向深度和模板附件的指针:
VkSubpassDescription::pDepthStencilAttachment;
Run Code Online (Sandbox Code Playgroud)
然而,在 API 的新动态渲染方法中,我们可以单独指定它们:
VkRenderingInfo::pColorAttachments;
VkRenderingInfo::pDepthAttachment;
VkRenderingInfo::pStencilAttachment;
Run Code Online (Sandbox Code Playgroud)
为什么是这样?
| 归档时间: |
|
| 查看次数: |
393 次 |
| 最近记录: |