MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / blit

Method blit

Source/Falcor/Core/API/RenderContext.cpp:205–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205void RenderContext::blit(
206 const ref<ShaderResourceView>& pSrc,
207 const ref<RenderTargetView>& pDst,
208 uint4 srcRect,
209 uint4 dstRect,
210 TextureFilteringMode filter
211)
212{
213 const TextureReductionMode componentsReduction[] = {
214 TextureReductionMode::Standard,
215 TextureReductionMode::Standard,
216 TextureReductionMode::Standard,
217 TextureReductionMode::Standard,
218 };
219 const float4 componentsTransform[] = {
220 float4(1.0f, 0.0f, 0.0f, 0.0f),
221 float4(0.0f, 1.0f, 0.0f, 0.0f),
222 float4(0.0f, 0.0f, 1.0f, 0.0f),
223 float4(0.0f, 0.0f, 0.0f, 1.0f),
224 };
225
226 blit(pSrc, pDst, srcRect, dstRect, filter, componentsReduction, componentsTransform);
227}
228
229void RenderContext::blit(
230 const ref<ShaderResourceView>& pSrc,

Callers 15

executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
executeInternalMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80

Calls 15

logDebugFunction · 0.85
isIntegerFormatFunction · 0.85
ViewportClass · 0.85
getWidthMethod · 0.80
getHeightMethod · 0.80
compareDescMethod · 0.80
getFormatMethod · 0.80
setVariableMethod · 0.80
asTextureMethod · 0.80
attachColorTargetMethod · 0.80
setViewportMethod · 0.80
to_stringFunction · 0.70

Tested by 4

frameMethod · 0.64
resizeTargetFBOMethod · 0.64
testDDSFunction · 0.64
testBlitFunction · 0.64