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
santorac a896ff11bc Changed .material serialization to avoid loading the .materialtype file, since the .material builder doesn't declare a source dependency on the .materialtype. Otherwise there can be ambiguous edge cases where changes to the .materialtype might or might not impact the baked MaterialAsset. Note that another option would have been to add a the appropriate source dependency, but that would hurt iteration time as any change to the .materialtype file would cause every .material file and .fbx to rebuild.
These changes have the added benefit of simplifying some of the serialization code. MaterialSourceDataSerializer is no longer needed, as its main purpose was to pass the MaterialTypeSourceData down to the MaterialPropertyValueSerializer.

Before, the JSON serialization system gave a lot of data flexibility because it did best-effort conversions, like allowing a float to be loaded as an int for example. But now the material serialization code doesn't know target data type, so it has to assume the data type based on what's in the .material file, and then the MaterialAsset will convert the data to the appropriate type later when Finalize() is called.

Signed-off-by: santorac <55155825+santorac@users.noreply.github.com>
4 years ago
..
External/MaskedOcclusionCulling Added Masked Occlusion Culling external files 5 years ago
Include/Atom Changed .material serialization to avoid loading the .materialtype file, since the .material builder doesn't declare a source dependency on the .materialtype. Otherwise there can be ambiguous edge cases where changes to the .materialtype might or might not impact the baked MaterialAsset. Note that another option would have been to add a the appropriate source dependency, but that would hurt iteration time as any change to the .materialtype file would cause every .material file and .fbx to rebuild. 4 years ago
Source Changed .material serialization to avoid loading the .materialtype file, since the .material builder doesn't declare a source dependency on the .materialtype. Otherwise there can be ambiguous edge cases where changes to the .materialtype might or might not impact the baked MaterialAsset. Note that another option would have been to add a the appropriate source dependency, but that would hurt iteration time as any change to the .materialtype file would cause every .material file and .fbx to rebuild. 4 years ago
Tests Changed .material serialization to avoid loading the .materialtype file, since the .material builder doesn't declare a source dependency on the .materialtype. Otherwise there can be ambiguous edge cases where changes to the .materialtype might or might not impact the baked MaterialAsset. Note that another option would have been to add a the appropriate source dependency, but that would hurt iteration time as any change to the .materialtype file would cause every .material file and .fbx to rebuild. 4 years ago
Tests.Builders Changes call from AZ_TRACE to AZ_PROFILE. AZ_TRACE uses a driller bus that is going to be removed 4 years ago
Tests.Editor Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
CMakeLists.txt Templates restricted (#6498) 4 years ago
atom_rpi_builders_files.cmake Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
atom_rpi_builders_shared_files.cmake Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
atom_rpi_builders_stub_files.cmake Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
atom_rpi_builders_tests_files.cmake Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
atom_rpi_edit_files.cmake Changed .material serialization to avoid loading the .materialtype file, since the .material builder doesn't declare a source dependency on the .materialtype. Otherwise there can be ambiguous edge cases where changes to the .materialtype might or might not impact the baked MaterialAsset. Note that another option would have been to add a the appropriate source dependency, but that would hurt iteration time as any change to the .materialtype file would cause every .material file and .fbx to rebuild. 4 years ago
atom_rpi_editor_files.cmake Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
atom_rpi_editor_tests_files.cmake Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
atom_rpi_masked_occlusion_files.cmake Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
atom_rpi_private_files.cmake Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
atom_rpi_private_shared_files.cmake Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
atom_rpi_public_files.cmake Changing all ClearPass to SlowClearPass 4 years ago
atom_rpi_reflect_files.cmake Merged MaterialAssetCreatorCommon class into MaterialTypeAssetCreator because it is no longer needed for MaterialAssetCreator. 4 years ago
atom_rpi_tests_files.cmake Added basic unit test for relative path function 4 years ago
rpi_shared_files.cmake Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago