raisin::RayraiWindow::MaterialTextureBudgetRecommendation
struct · #include <rayrai/RayraiWindow.hpp>
Result of recommendMaterialTextureBudget(). Byte counts are estimates from GL texture sizes.
Public attributes
materialTextureReferences
size_t materialTextureReferencesMaterial texture references, including duplicates.
uniqueMaterialTextures
size_t uniqueMaterialTexturesDistinct material textures.
materialTextureBytes
size_t materialTextureBytesEstimated bytes of the distinct textures.
budgetBytes
size_t budgetBytesBudget used (the argument, or the preset default: 128/256/512/1024 MiB).
overBudget
bool overBudgetmaterialTextureBytes exceeds budgetBytes.
changed
bool changedrecommendedSettings differs from the current settings.
recommendedTextureAnisotropy
float recommendedTextureAnisotropySuggested texture anisotropy (capped at 4 when over budget).
recommendedTextureMipLodBias
float recommendedTextureMipLodBiasSuggested texture mip bias (at least 0.75 when over budget).
recommendedPbrEnvironmentMipLodBias
float recommendedPbrEnvironmentMipLodBiasSuggested environment mip bias (at least 0.5 when over budget).
recommendedReflectionProbeFilteringEnabled
bool recommendedReflectionProbeFilteringEnabledSuggested probe-filtering flag (false when over budget).
recommendedSettings
RenderQualitySettings recommendedSettingsCurrent settings with the recommendations applied.
reason
std::string reasonMachine-readable reason, e.g. within_material_texture_budget.