MCPcopy Create free account
hub / github.com/DiligentGraphics/DiligentFX / ComputeMipCount

Method ComputeMipCount

PostProcess/Bloom/src/Bloom.cpp:148–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148Int32 Bloom::ComputeMipCount(Uint32 Width, Uint32 Height, float Radius)
149{
150 Uint32 MaxMipCount = ComputeMipLevelsCount(Width, Height);
151 return static_cast<Int32>(Radius * static_cast<float>(MaxMipCount));
152}
153
154bool Bloom::PrepareShadersAndPSO(const RenderAttributes& RenderAttribs, FEATURE_FLAGS FeatureFlags)
155{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected