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

Method bindShaderData

Source/Falcor/Scene/Lights/EnvMap.cpp:93–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91 }
92
93 void EnvMap::bindShaderData(const ShaderVar& var) const
94 {
95 FALCOR_ASSERT(var.isValid());
96
97 // Set variables.
98 var["data"].setBlob(mData);
99
100 // Bind resources.
101 var["envMap"].setTexture(mpEnvMap);
102 var["envSampler"].setSampler(mpEnvSampler);
103 }
104
105 EnvMap::Changes EnvMap::beginFrame()
106 {

Callers

nothing calls this directly

Calls 4

isValidMethod · 0.45
setBlobMethod · 0.45
setTextureMethod · 0.45
setSamplerMethod · 0.45

Tested by

no test coverage detected