[package]
# Semantic Versioning is used: https://semver.org/
version = "0.1.4"

# Lists people or organizations that are considered the "authors" of the package.
authors = ["NVIDIA"]

# The title and description fields are primarily for displaying extension info in UI
title = "RTX tests"
description="Extension for RTX renderer python tests."

# Path (relative to the root) or content of readme markdown file for UI.
readme  = "docs/README.md"

# URL of the extension source repository.
repository = ""

# One of categories for UI.
category = "Rendering"

# Keywords for the extension
keywords = ["kit", "rtx", "rendering", "tests"]

# Location of change log file in target (final) folder of extension, relative to the root. Can also be just a content
# of it instead of file path. More info on writing changelog: https://keepachangelog.com/en/1.0.0/
changelog="docs/CHANGELOG.md"

[dependencies]
"omni.kit.commands" = {}
"omni.kit.renderer.capture" = {}
"omni.kit.test_helpers_gfx" = {}
"omni.kit.window.property" = {}
"omni.kit.viewport.utility" = {}
"omni.usd" = {}

# Temporary until we can move the tetmesh imaging
# logic and test cases into the physics repo.
"omni.usd.schema.physx" = {}


# Main python module this extension provides, it will be publicly available as "import omni.example.hello".
[[python.module]]
name = "omni.rtx.tests"

[[test]]
pythonTests.unreliable = [ "*UNSTABLE*" ]

args = [
    "--/renderer/enabled=rtx",
    "--/renderer/active=rtx",
    "--/renderer/multiGpu/enabled=false",
    "--/renderer/multiGpu/autoEnable=false",
    "--/app/asyncRendering=false",
    "--/app/captureFrame/setAlphaTo1=true",
    "--/omni.kit.plugin/syncUsdLoads=true",
    "--/rtx-transient/resourcemanager/texturestreaming/async=false",
    "--/rtx/materialDb/syncLoads=true",
    "--/rtx/hydra/materialSyncLoads=true",
    "--/rtx/pathtracing/lightcache/cached/enabled=false",
    "--/rtx/raytracing/lightcache/spatialCache/enabled=false",
    "--/rtx/post/aa/op=0",
    "--/rtx-defaults/post/aa/op=0",

    "--/app/viewport/forceHideFps=true",
    "--/persistent/app/viewport/displayOptions=0",
    "--/persistent/app/primCreation/PrimCreationWithDefaultXformOps=true",

    "--/app/window/hideUi=true",
    "--/app/docks/disabled=true",
    "--/app/window/dpiScaleOverride=1.0",
    "--/app/window/scaleToMonitor=false",
    "--/app/window/width=512",
    "--/app/window/height=512",
    "--no-window",
]

# Aftermath in lightmode (Windows only right now)
"filter:platform"."windows-x86_64"."args" = [
    "--/renderer/debug/aftermath/enabled=true",
    "--/renderer/debug/aftermath/useLightMode=true",
]

dependencies = [
    "omni.usd",
    "omni.kit.commands",
    "omni.kit.renderer.capture",
    "omni.kit.mainwindow",
    "omni.hydra.rtx",
    "omni.kit.viewport.utility",
    "omni.kit.window.viewport",
    "omni.volume" # Tests use volume rendering
]

profiling = false

# RTX regression OM-51983
timeout = 700
