| 320 | } |
| 321 | |
| 322 | void Renderer::DrawPostFxMaterial(GPUContext* context, const RenderContext& renderContext, MaterialBase* material, GPUTexture* output, GPUTextureView* input) |
| 323 | { |
| 324 | CHECK(material && material->IsPostFx()); |
| 325 | CHECK(context && output); |
| 326 | |
| 327 | context->ResetSR(); |
| 328 | context->SetViewport((float)output->Width(), (float)output->Height()); |
| 329 | context->SetRenderTarget(output->View()); |
| 330 | context->FlushState(); |
| 331 | |
| 332 | MaterialBase::BindParameters bindParams(context, renderContext); |
| 333 | bindParams.Input = input; |
| 334 | material->Bind(bindParams); |
| 335 | |
| 336 | context->DrawFullscreenTriangle(); |
| 337 | context->ResetRenderTarget(); |
| 338 | } |
| 339 | |
| 340 | void Renderer::DrawActors(RenderContext& renderContext, const Array<Actor*>& customActors) |
| 341 | { |
no test coverage detected