| 174 | } |
| 175 | |
| 176 | bool 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 | |
| 193 | RenderPassReflection::Field& RenderPassReflection::addField(const Field& field) |
| 194 | { |
no test coverage detected