|
|
| AZ_TYPE_INFO (AZ::RPI::ShaderOptionDescriptor, "{07B9E2F7-5408-49E9-904D-CC1A9C33230E}") |
| |
| | ShaderOptionDescriptor (const Name &name, const ShaderOptionType &optionType, uint32_t bitOffset, uint32_t order, const ShaderOptionValues &nameIndexList, const Name &defaultValue={}, uint32_t cost=0, int specializationId=-1) |
| |
|
| AZ_DEFAULT_COPY_MOVE (ShaderOptionDescriptor) |
| |
|
const Name & | GetName () const |
| |
|
uint32_t | GetBitOffset () const |
| | Returns the offset and count of bits comprising the local mask for the option.
|
| |
|
uint32_t | GetBitCount () const |
| |
|
uint32_t | GetOrder () const |
| | Returns the order (rank) for this option. Lower order means higher priority.
|
| |
|
uint32_t | GetCostEstimate () const |
| |
|
int | GetSpecializationId () const |
| | Return the specialization id. -1 if this option can't be specialize.
|
| |
|
ShaderVariantKey | GetBitMask () const |
| | Returns the mask comprising bits specific to this option.
|
| |
|
ShaderVariantKey | GetBitMaskNot () const |
| | Returns the reverse mask for this option, used to unset the mask.
|
| |
|
HashValue64 | GetHash () const |
| | Returns a unique hash value describing this descriptor.
|
| |
| bool | Set (ShaderOptionGroup &group, const Name &valueName) const |
| |
|
bool | Set (ShaderOptionGroup &group, const ShaderOptionValue value) const |
| | Sets the corresponding option in the option group to the specified option value.
|
| |
|
bool | Set (ShaderVariantKey &key, const ShaderOptionValue value) const |
| | Sets the corresponding option in the variant key directly to the specified option value.
|
| |
|
ShaderOptionValue | Get (const ShaderOptionGroup &group) const |
| | Gets the option value for the corresponding option in the option group.
|
| |
|
void | Clear (ShaderOptionGroup &group) const |
| | Sets the corresponding option in the option group to an uninitialized state.
|
| |
|
void | SetDefaultValue (const Name &valueName) |
| | Sets the default value for this option by name.
|
| |
|
const Name & | GetDefaultValue () const |
| | Gets the default value for this option by name.
|
| |
|
uint32_t | GetValuesCount () const |
| | Gets the number of valid values for this option.
|
| |
|
void | SetType (ShaderOptionType optionType) |
| | Sets the type for the shader option (bool, enum, integer range, etc.).
|
| |
|
const ShaderOptionType & | GetType () const |
| | Gets the type for the shader option (bool, enum, integer range, etc.).
|
| |
|
ShaderOptionValue | GetMinValue () const |
| | Gets the minimal possible option value for the corresponding option .
|
| |
|
ShaderOptionValue | GetMaxValue () const |
| | Gets the maximum possible option value for the corresponding option.
|
| |
|
ShaderOptionValue | FindValue (const Name &valueName) const |
| | Finds a shader value index from a value name. Returns an empty handle if the value name was not found.
|
| |
|
Name | GetValueName (ShaderOptionValue value) const |
| | Gets the name for the option value.
|
| |
|
Name | GetValueName (uint32_t valueIndex) const |
| | Gets the name for the option value.
|
| |
|
bool | operator== (const ShaderOptionDescriptor &) const |
| |
|
bool | operator!= (const ShaderOptionDescriptor &) const |
| |
| uint32_t | DecodeBits (ShaderVariantKey key) const |
| |
Describes a shader option to the ShaderOptionGroupLayout class. Maps a shader option to a set of bits in a mask in order to facilitate packing values into a mask to form a ShaderKey.