Class TwoByTwoTextureReplacementExperiment
Inheritance Relationships
Base Type
public gpa::playback::ResourceExperiment::Prefab
(Class ResourceExperiment::Prefab)
Class Documentation
-
class TwoByTwoTextureReplacementExperiment : public gpa::playback::ResourceExperiment::Prefab
Encapsulates an Experiment to replace one or multiple textures with a smaller 2x2 texture.
Public Functions
-
TwoByTwoTextureReplacementExperiment()
Creates an instance of TwoByTwoTextureReplacementExperiment.
-
~TwoByTwoTextureReplacementExperiment()
Destroys this instance of TwoByTwoTextureReplacementExperiment.
-
bool operator!=(TwoByTwoTextureReplacementExperiment const &other) const
Gets a value indicating whether or not a given TwoByTwoTextureReplacementExperiment is inequal to this TwoByTwoTextureReplacementExperiment.
- Parameters
other -- The TwoByTwoTextureReplacementExperiment to check for inequality
- Returns
Whether or not the give TwoByTwoTextureReplacementExperiment is inequal to this TwoByTwoTextureReplacementExperiment
-
void AddTargetReplacementBinding(uint64_t descriptorSetIndex, uint64_t bindingIndex, uint64_t arrayIndex = 0)
Adds a new binding to the list of texture bindings that should be replaced with a 2x2 image.
This needs to be called for each desired texture replacement location. Thus, if texture replacement experiment should replace the texture of multiple bindings, then all the desired replacement bindings should be set as such before applying the experiment: —Pseudocode follows:— for replacement in replacements: experiment.AddTargetReplacementBinding(replacement.descriptorSet, replacment.bindingSlot, replacement.arrayIndex);
- Parameters
descriptorSetIndex -- the index of the descriptor set of interest inside of the range to be experimented on
bindingIndex -- the index of the desired binding of interest within the specified descriptor set
arrayIndex -- the index of the descriptor within in the specified array that the experiment should modify
-
void ClearReplacmentBindings()
Clears the list of bindings where images should be replaced.
-
virtual BaseExperiment::Prefab::Impl const &GetImpl() const final override
Gets this TwoByTwoTextureReplacementExperiment's implementation object.
- Returns
This TwoByTwoTextureReplacementExperiment's implementation object
-
TwoByTwoTextureReplacementExperiment()