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

Function getDepth

Source/Falcor/Core/API/Texture.h:119–122  ·  view source on GitHub ↗

* Get a mip-level depth */

Source from the content-addressed store, hash-verified

117 * Get a mip-level depth
118 */
119 uint32_t getDepth(uint32_t mipLevel = 0) const
120 {
121 return (mipLevel == 0) || (mipLevel < mMipLevels) ? std::max(1U, mDepth >> mipLevel) : 0;
122 }
123
124 /**
125 * Get the number of mip-levels

Callers 2

getSubresourceLayoutMethod · 0.70
getTexelCountMethod · 0.70

Calls 1

maxFunction · 0.50

Tested by

no test coverage detected