#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.
◆ GetBuildTimestamp()
AZ::u64 AZ::RPI::ShaderVariantAsset::GetBuildTimestamp |
( |
| ) |
const |
Return the timestamp when this asset was built, and it must be >= than the timestamp of the main ShaderAsset. This is used to synchronize versions of the ShaderAsset and ShaderVariantAsset, especially during hot-reload.
◆ 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, 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