MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / GetMipSize

Method GetMipSize

Source/Engine/Graphics/Textures/GPUTexture.cpp:240–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238}
239
240void GPUTexture::GetMipSize(int32 mipLevelIndex, int32& mipWidth, int32& mipHeight) const
241{
242 ASSERT(mipLevelIndex >= 0 && mipLevelIndex < MipLevels());
243 mipWidth = Math::Max(1, Width() >> mipLevelIndex);
244 mipHeight = Math::Max(1, Height() >> mipLevelIndex);
245}
246
247void GPUTexture::GetMipSize(int32 mipLevelIndex, int32& mipWidth, int32& mipHeight, int32& mipDepth) const
248{

Callers 9

RenderMethod · 0.80
runMethod · 0.80
ResolveMultisampleMethod · 0.80
UpdateTextureMethod · 0.80
CopyTextureMethod · 0.80
CopySubresourceMethod · 0.80
UpdateTextureMethod · 0.80
CopyTextureMethod · 0.80
UpdateTextureMethod · 0.80

Calls 5

MipLevelsFunction · 0.85
WidthFunction · 0.70
HeightFunction · 0.70
DepthFunction · 0.70
MaxFunction · 0.50

Tested by

no test coverage detected