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

Method parseProperties

Source/RenderPasses/GBuffer/GBufferBase.cpp:60–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58} // namespace
59
60void GBufferBase::parseProperties(const Properties& props)
61{
62 for (const auto& [key, value] : props)
63 {
64 if (key == kOutputSize)
65 mOutputSizeSelection = value;
66 else if (key == kFixedOutputSize)
67 mFixedOutputSize = value;
68 else if (key == kSamplePattern)
69 mSamplePattern = value;
70 else if (key == kSampleCount)
71 mSampleCount = value;
72 else if (key == kUseAlphaTest)
73 mUseAlphaTest = value;
74 else if (key == kAdjustShadingNormals)
75 mAdjustShadingNormals = value;
76 else if (key == kForceCullMode)
77 mForceCullMode = value;
78 else if (key == kCullMode)
79 mCullMode = value;
80 // TODO: Check for unparsed fields, including those parsed in derived classes.
81 }
82
83 // Handle deprecated "disableAlphaTest" value.
84 if (props.has(kDisableAlphaTest) && !props.has(kUseAlphaTest))
85 mUseAlphaTest = !props[kDisableAlphaTest];
86}
87
88Properties GBufferBase::getProperties() const
89{

Callers

nothing calls this directly

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected