| 114 | } |
| 115 | |
| 116 | void ClearColorAttachment(ICommandList* commandList, IFramebuffer* framebuffer, uint32_t attachmentIndex, Color color) |
| 117 | { |
| 118 | const FramebufferAttachment& att = framebuffer->getDesc().colorAttachments[attachmentIndex]; |
| 119 | if (att.texture) |
| 120 | { |
| 121 | commandList->clearTextureFloat(att.texture, att.subresources, color); |
| 122 | } |
| 123 | } |
| 124 | |
| 125 | void ClearDepthStencilAttachment(ICommandList* commandList, IFramebuffer* framebuffer, float depth, uint32_t stencil) |
| 126 | { |
nothing calls this directly
no test coverage detected