3
0

ShaderAssetTestUtils.h 816 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #include <Atom/RPI.Reflect/Shader/ShaderAsset.h>
  10. namespace UnitTest
  11. {
  12. //! Utility function for creating the simplest possible ShaderAsset
  13. AZ::Data::Asset<AZ::RPI::ShaderAsset> CreateTestShaderAsset(
  14. const AZ::Data::AssetId& shaderAssetId,
  15. AZ::RHI::Ptr<AZ::RHI::ShaderResourceGroupLayout> optionalSrgLayout = nullptr,
  16. AZ::RPI::Ptr<AZ::RPI::ShaderOptionGroupLayout> optionalShaderOptions = nullptr,
  17. const AZ::Name& shaderName = AZ::Name{ "TestShader" },
  18. const AZ::Name& drawListName = AZ::Name{ "depth" } );
  19. } //namespace UnitTest