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

Method isValid

Source/Falcor/RenderGraph/RenderPassReflection.cpp:176–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176bool RenderPassReflection::Field::isValid() const
177{
178 if (mSampleCount > 1 && mMipCount > 1)
179 {
180 logError("Trying to create a multisampled RenderPassReflection::Field '{}' with mip-count larger than 1. This is illegal.", mName);
181 return false;
182 }
183
184 if (is_set(mVisibility, Visibility::Internal) && is_set(mFlags, Flags::Optional))
185 {
186 logError("Internal resource can't be optional, since there will never be a graph edge that forces their creation");
187 return false;
188 }
189
190 return true;
191}
192
193RenderPassReflection::Field& RenderPassReflection::addField(const Field& field)
194{

Callers 3

allocateResourcesMethod · 0.45
insertAutoPassesMethod · 0.45
allocateResourcesMethod · 0.45

Calls 1

logErrorFunction · 0.85

Tested by

no test coverage detected