DiffuseGITest.bv.lua 1.3 KB

123456789101112131415161718192021222324252627282930
  1. ----------------------------------------------------------------------------------------------------
  2. --
  3. -- All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
  4. -- its licensors.
  5. --
  6. -- For complete copyright and license terms please see the LICENSE at the root of this
  7. -- distribution (the "License"). All use of this software is governed by the License,
  8. -- or, if provided, by the license below or the license accompanying this file. Do not
  9. -- remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
  10. -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. --
  12. --
  13. ----------------------------------------------------------------------------------------------------
  14. if GetRenderApiName() == "vulkan" or GetRenderApiName() == "metal" then
  15. Warning("Vulkan or metal is not supported by this test.")
  16. else
  17. g_screenshotOutputFolder = ResolvePath('@user@/Scripts/Screenshots/DiffuseGITest/')
  18. Print('Saving screenshots to ' .. NormalizePath(g_screenshotOutputFolder))
  19. OpenSample('Features/DiffuseGI')
  20. ResizeViewport(800, 600)
  21. SelectImageComparisonToleranceLevel("Level G")
  22. IdleSeconds(5)
  23. CaptureScreenshot(g_screenshotOutputFolder .. '/screenshot_cornellbox.ppm')
  24. end
  25. OpenSample(nil)