#include <ShaderVariantAsset.h>
Inherits AZ::Data::AssetData.
|
|
static constexpr const char * | Extension = "azshadervariant" |
| |
|
static constexpr const char * | DisplayName = "ShaderVariant" |
| |
|
static constexpr const char * | Group = "Shader" |
| |
|
static constexpr uint32_t | ShaderVariantAssetSubProductType = 1 |
| |
|
|
class | ShaderVariantAssetHandler |
| |
|
class | ShaderVariantAssetCreator |
| |
A ShaderVariantAsset contains the shader byte code for each shader stage (Vertex, Fragment, Tessellation, etc) for a given RHI::APIType (dx12, vulkan, metal, etc). One independent file per RHI::APIType.
◆ IsFullyBaked()
| bool AZ::RPI::ShaderVariantAsset::IsFullyBaked |
( |
| ) |
const |
Returns whether the variant is fully baked variant (all options are static branches), or false if the variant uses dynamic branches for some shader options. If the shader variant is not fully baked or fully specialized, the ShaderVariantKeyFallbackValue must be correctly set when drawing.
◆ MakeAssetProductSubId()
| static uint32_t AZ::RPI::ShaderVariantAsset::MakeAssetProductSubId |
( |
uint32_t |
rhiApiUniqueIndex, |
|
|
uint32_t |
supervariantIndex, |
|
|
ShaderVariantStableId |
variantStableId, |
|
|
uint32_t |
subProductType = 0 |
|
) |
| |
|
static |
The documentation for this class was generated from the following file:
- Gems/Atom/RPI/Code/Include/Atom/RPI.Reflect/Shader/ShaderVariantAsset.h