class VariationBase

Base class that is used for implementing both main and render thread versions of Variation.

Public

Constructors

VariationBase

VariationBase(const String &language, const ShaderVariationParameters &variationParameters)

Methods

~VariationBase

virtual ~VariationBase() noexcept = default

IsSupported

bool IsSupported() const

Checks if this variation is supported based on current render and other systems.

GetVariationParameters

const ShaderVariationParameters &GetVariationParameters() const

Returns a set of preprocessor defines used for compiling this particular variation.

Protected

Methods

MarkRenderProxyDirty

virtual void MarkRenderProxyDirty(ShaderVariationDirtyFlags flags)

Marks the contents as dirty, causing it to sync with the render thread object.

SyncToRenderProxy

virtual void SyncToRenderProxy()

Ensures all dirty syncable data is send to the render proxy (if any).

Fields

mLanguage

String mLanguage

mVariationParameters

ShaderVariationParameters mVariationParameters