MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / operator[]

Method operator[]

Source/Falcor/Core/Program/ShaderVar.cpp:43–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41//
42
43ShaderVar 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
51ShaderVar ShaderVar::operator[](size_t index) const
52{

Callers

nothing calls this directly

Calls 15

findMemberFunction · 0.85
ShaderVarOffsetClass · 0.85
asResourceTypeMethod · 0.80
getRootVarMethod · 0.80
asArrayTypeMethod · 0.80
getUniformMethod · 0.80
getRangeIndexMethod · 0.80
getArrayIndexMethod · 0.80
asStructTypeMethod · 0.80
getByteSizeMethod · 0.80

Tested by

no test coverage detected