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

Method SetResidentMipLevels

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

Source from the content-addressed store, hash-verified

883}
884
885void GPUTexture::SetResidentMipLevels(int32 count)
886{
887 count = Math::Clamp(count, 0, MipLevels());
888 if (_residentMipLevels == count || !IsRegularTexture())
889 return;
890 _residentMipLevels = count;
891 OnResidentMipsChanged();
892 ResidentMipsChanged(this);
893}

Callers 4

OnSyncMethod · 0.80
SetPixelsMethod · 0.80
OnSyncMethod · 0.80
SetProbeDataMethod · 0.80

Calls 3

ClampFunction · 0.85
MipLevelsFunction · 0.85
IsRegularTextureFunction · 0.85

Tested by

no test coverage detected