Skip to main content

ShaderVariantWarmer.PlatformCollection

A private class in Root.Township, the global namespace. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.

Shader variant collections to warm up on one platform, part of ShaderVariantWarmer. Client only; Linux builds drop them at bake time.

Constructors​

MemberWhat it is
PlatformCollection()Creates a ShaderVariantWarmer.PlatformCollection with default values.

Fields​

3 private and internal fields
MemberWhat it is
private ShaderVariantCollection[] collectionsThe collections set in the inspector. Cleared when the build is baked.
private PlatformFlags platformPlatforms this entry applies to.
private List<ShaderVariantCollection> runtimeCollectionsCollections left after baking, which Warm walks through.

Methods​

MemberWhat it is
void BakeRuntime()Build step: makes an empty runtime list, runs SplitCollection on each collection, then clears collections.
async Task Warm()On the matching platform, warms each collection not yet warmed, one per frame, logging how long each took.
1 private and internal method
MemberWhat it is
private void SplitCollection(ShaderVariantCollection collection)Empty in this build, so baking leaves runtimeCollections empty and Warm has nothing to do.

Used in​

Members of other types that take, return or hold a PlatformCollection: