Skip to content

raisin::RayraiWindow::MaterialTextureBudgetRecommendation ​

struct · #include <rayrai/RayraiWindow.hpp>

Result of recommendMaterialTextureBudget(). Byte counts are estimates from GL texture sizes.

Public attributes ​

materialTextureReferences ​

cpp
size_t materialTextureReferences

Material texture references, including duplicates.

uniqueMaterialTextures ​

cpp
size_t uniqueMaterialTextures

Distinct material textures.

materialTextureBytes ​

cpp
size_t materialTextureBytes

Estimated bytes of the distinct textures.

budgetBytes ​

cpp
size_t budgetBytes

Budget used (the argument, or the preset default: 128/256/512/1024 MiB).

overBudget ​

cpp
bool overBudget

materialTextureBytes exceeds budgetBytes.

changed ​

cpp
bool changed

recommendedSettings differs from the current settings.

recommendedTextureAnisotropy ​

cpp
float recommendedTextureAnisotropy

Suggested texture anisotropy (capped at 4 when over budget).

recommendedTextureMipLodBias ​

cpp
float recommendedTextureMipLodBias

Suggested texture mip bias (at least 0.75 when over budget).

recommendedPbrEnvironmentMipLodBias ​

cpp
float recommendedPbrEnvironmentMipLodBias

Suggested environment mip bias (at least 0.5 when over budget).

recommendedReflectionProbeFilteringEnabled ​

cpp
bool recommendedReflectionProbeFilteringEnabled

Suggested probe-filtering flag (false when over budget).

recommendedSettings ​

cpp
RenderQualitySettings recommendedSettings

Current settings with the recommendations applied.

reason ​

cpp
std::string reason

Machine-readable reason, e.g. within_material_texture_budget.

RaiSim — physics for robotics and AI.