MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Draw

Method Draw

Source/Engine/Graphics/GPUContext.cpp:91–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91void 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
104void GPUContext::Draw(GPUTexture* dst, GPUTextureView* src)
105{

Callers

nothing calls this directly

Calls 4

SetViewportFunction · 0.85
SetStateFunction · 0.85
GetCopyLinearPSMethod · 0.80
ViewMethod · 0.45

Tested by

no test coverage detected