| 170 | } |
| 171 | |
| 172 | void HnRenderPassState::Begin(Uint32 NumRenderTargets, |
| 173 | ITextureView* ppRTVs[], |
| 174 | ITextureView* pDSV, |
| 175 | float4* ClearColors, |
| 176 | float ClearDepth, |
| 177 | Uint32 ClearMask) |
| 178 | { |
| 179 | VERIFY(NumRenderTargets == m_NumRenderTargets, "Number of render targets does not match the value set in the render pass state"); |
| 180 | |
| 181 | m_ClearMask = ClearMask; |
| 182 | for (Uint32 rt = 0; rt < NumRenderTargets; ++rt) |
| 183 | { |
| 184 | m_RTVs[rt] = ppRTVs[rt]; |
| 185 | VERIFY((m_RTVs[rt] != nullptr ? m_RTVs[rt]->GetDesc().Format : TEX_FORMAT_UNKNOWN) == m_RTVFormats[rt], "Invalid render target view format"); |
| 186 | if (ClearColors != nullptr) |
| 187 | { |
| 188 | m_ClearColors[rt] = ClearColors[rt]; |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | m_DSV = pDSV; |
| 193 | VERIFY((m_DSV != nullptr ? m_DSV->GetDesc().Format : TEX_FORMAT_UNKNOWN) == m_DepthFormat, "Invalid depth-stencil view format"); |
| 194 | m_ClearDepth = ClearDepth; |
| 195 | |
| 196 | m_IsCommited = false; |
| 197 | } |
| 198 | |
| 199 | } // namespace USD |
| 200 |
no outgoing calls
no test coverage detected