MCPcopy Create free account
hub / github.com/ValveSoftware/steam-audio / BakedReflectionsData

Method BakedReflectionsData

core/src/core/baked_reflection_data.cpp:27–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25// ---------------------------------------------------------------------------------------------------------------------
26
27BakedReflectionsData::BakedReflectionsData(const BakedDataIdentifier& identifier,
28 int numProbes,
29 bool hasConvolution,
30 bool hasParametric)
31 : mIdentifier(identifier)
32 , mHasConvolution(hasConvolution)
33 , mHasParametric(hasParametric)
34 , mNeedsUpdate(numProbes)
35{
36 if (hasConvolution)
37 {
38 mEnergyFields.resize(numProbes);
39 }
40
41 if (hasParametric)
42 {
43 mReverbs.resize(numProbes);
44 }
45
46 for (auto i = 0; i < numProbes; ++i)
47 {
48 mNeedsUpdate[i] = true;
49 }
50}
51
52BakedReflectionsData::BakedReflectionsData(const BakedDataIdentifier& identifier,
53 int numProbes,

Callers

nothing calls this directly

Calls 4

resizeMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected