MCPcopy Create free account
hub / github.com/NVIDIA-RTX/NVRHI / ClearColorAttachment

Function ClearColorAttachment

src/common/utils.cpp:116–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 2

getDescMethod · 0.45
clearTextureFloatMethod · 0.45

Tested by

no test coverage detected