Base.cpp 553 B

1234567891011121314151617181920212223
  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. #include <Atom/RPI.Reflect/Base.h>
  9. namespace AZ
  10. {
  11. namespace RPI
  12. {
  13. bool Validation::s_isEnabled = RHI::BuildOptions::IsDebugBuild || RHI::BuildOptions::IsProfileBuild;
  14. void Validation::SetEnabled(bool enabled)
  15. {
  16. s_isEnabled = enabled;
  17. }
  18. } // namespace RPI
  19. } // namespace AZ