| 41 | // |
| 42 | |
| 43 | ShaderVar ShaderVar::operator[](std::string_view name) const |
| 44 | { |
| 45 | FALCOR_CHECK(isValid(), "Cannot lookup on invalid ShaderVar."); |
| 46 | auto result = findMember(name); |
| 47 | FALCOR_CHECK(result.isValid(), "No member named '{}' found.", name); |
| 48 | return result; |
| 49 | } |
| 50 | |
| 51 | ShaderVar ShaderVar::operator[](size_t index) const |
| 52 | { |
nothing calls this directly
no test coverage detected