| 89 | } |
| 90 | |
| 91 | void GPUContext::Draw(GPUTexture* dst, GPUTexture* src) |
| 92 | { |
| 93 | ASSERT_LOW_LAYER(dst && src); |
| 94 | ResetRenderTarget(); |
| 95 | const float width = (float)dst->Width(); |
| 96 | const float height = (float)dst->Height(); |
| 97 | SetViewport(width, height); |
| 98 | SetRenderTarget(dst->View()); |
| 99 | BindSR(0, src->View()); |
| 100 | SetState(_device->GetCopyLinearPS()); |
| 101 | DrawFullscreenTriangle(); |
| 102 | } |
| 103 | |
| 104 | void GPUContext::Draw(GPUTexture* dst, GPUTextureView* src) |
| 105 | { |
nothing calls this directly
no test coverage detected