Dynamic Rendering we know it is depth only, but for VkRenderPass, we need to check incase it is a stencil only attachment
| 53 | |
| 54 | // Dynamic Rendering we know it is depth only, but for VkRenderPass, we need to check incase it is a stencil only attachment |
| 55 | bool AttachmentInfo::IsDepth() const { |
| 56 | return type == Type::Depth || |
| 57 | (type == Type::DepthStencil && image_view && vkuFormatHasDepth(image_view->image_state->GetFormat())); |
| 58 | } |
| 59 | |
| 60 | bool AttachmentInfo::IsStencil() const { |
| 61 | return type == Type::Stencil || |
no test coverage detected