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

Method reflect

Source/RenderPasses/ImageLoader/ImageLoader.cpp:80–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80RenderPassReflection ImageLoader::reflect(const CompileData& compileData)
81{
82 RenderPassReflection reflector;
83 uint2 fixedSize = mpTex ? uint2(mpTex->getWidth(), mpTex->getHeight()) : uint2(0);
84 const uint2 sz = RenderPassHelpers::calculateIOSize(mOutputSizeSelection, fixedSize, compileData.defaultTexDims);
85
86 reflector.addOutput(kDst, "Destination texture").format(mOutputFormat).texture2D(sz.x, sz.y);
87 return reflector;
88}
89
90Properties ImageLoader::getProperties() const
91{

Callers

nothing calls this directly

Calls 4

getWidthMethod · 0.80
getHeightMethod · 0.80
addOutputMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected