| 2082 | } |
| 2083 | |
| 2084 | void CommandBuffer::BeginRenderingColor(const VkImageView imageView, VkRect2D render_area) { |
| 2085 | VkRenderingAttachmentInfo color_attachment = vku::InitStructHelper(); |
| 2086 | color_attachment.imageView = imageView; |
| 2087 | color_attachment.imageLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; |
| 2088 | |
| 2089 | VkRenderingInfo renderingInfo = vku::InitStructHelper(); |
| 2090 | renderingInfo.colorAttachmentCount = 1; |
| 2091 | renderingInfo.pColorAttachments = &color_attachment; |
| 2092 | renderingInfo.layerCount = 1; |
| 2093 | renderingInfo.renderArea = render_area; |
| 2094 | |
| 2095 | BeginRendering(renderingInfo); |
| 2096 | } |
| 2097 | |
| 2098 | void CommandBuffer::EndRendering() { |
| 2099 | if (vk::CmdEndRenderingKHR) { |
no outgoing calls
no test coverage detected