You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
o3de/Gems/Atom/RPI/Code/Source/RPI.Reflect/Material
galibzon 6763e2a3ac
Shaders changes require two or more change cycles before updating (#5142)
* Shaders changes require two or more change cycles before updating

This fixes the problem described in the title.

Consolidated the responsibility to update the root shader variant
asset into the Shader() class. It was unnecessarily spread across
Shader(), ShaderVariant() and ShaderAsset().
In particular OnAssetReloaded now makes a temporary copy of the root
ShaderVariantAsset and updates the ShaderAsset with such reference
only when OnAssetReloaded() is called on behalf of the ShaderAsset.

Signed-off-by: galibzon <66021303+galibzon@users.noreply.github.com>
4 years ago
..
LuaMaterialFunctor.cpp Cleanup SerializeContext.h pt.1 (#4264) 4 years ago
MaterialAsset.cpp Shaders changes require two or more change cycles before updating (#5142) 4 years ago
MaterialAssetCreator.cpp Enable material version updates. 4 years ago
MaterialAssetCreatorCommon.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
MaterialDynamicMetadata.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
MaterialFunctor.cpp LYN-6882 release builds are executing code in asserts (#4305) 4 years ago
MaterialPropertiesLayout.cpp Updated the naming convention for material property "names" vs "IDs". 4 years ago
MaterialPropertyDescriptor.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
MaterialPropertyValue.cpp Cleanup SerializeContext.h pt.1 (#4264) 4 years ago
MaterialTypeAsset.cpp Made material property auto-rename procedure apply to Material Component at runtime. This ensures that an material property overrides and any gameplay scripts that work with property overrides can get the benefit of the material type version update procedure. 4 years ago
MaterialTypeAssetCreator.cpp Simplified the code around MaterialAsset::ApplyVersionUpdates() 4 years ago
MaterialVersionUpdate.cpp Made material property auto-rename procedure apply to Material Component at runtime. This ensures that an material property overrides and any gameplay scripts that work with property overrides can get the benefit of the material type version update procedure. 4 years ago
ShaderCollection.cpp Cleanup SerializeContext.h pt.1 (#4264) 4 years ago