Skip to content

Latest commit

 

History

History

layerstack_conformance

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

layerstack_conformance

Conformance harness and golden tests for layerstack.

This crate is allowed to use std and external test-only dependencies. Core composition logic remains in the layerstack crate.

Inputs

  • AOUSD core spec PDF reference: specs/aousd_core_spec_1.0.1_2025-12-12.pdf
  • AOUSD supplemental test materials: core-spec-supplemental-release_dec2025/

Exporter interoperability (optional)

scripts/export_interop.sh [OUT_DIR] writes the exporter fixtures from src/export_fixtures.rs (USDA, USDC, and generic and ARKit-profile USDZ) and checks them with OpenUSD's usdcat and usdchecker (default and --arkit validators) and Python's zipfile (scripts/check_usdz_layout.py, which also checks the ARKit profile's single USDC root layer), including negative controls. It compares usdcat's text for each document's USDC and USDA. Material fixtures are also checked for texture color spaces as usdcat reads them and, when usdrecord is available, rendered through a camera wrapper layer (scripts/render_check.py) in both profiles: the two-material cube must show both materials' colors and the textured cube both texture hues; the ARKit and generic plain cubes must render identically. It records tool versions, the selected validator rules and the renders in OUT_DIR. It is not run by CI; tests/conformance/export_interop.rs runs the usdcat/usdchecker subset and the USDC differential (our USDC against OpenUSD's usdcat -o output for the same USDA, compared structurally) when those tools are on PATH and skips otherwise.

Instancing (optional)

tests/conformance/point_instancer.rs checks PointInstancer export against OpenUSD's Python bindings (scripts/point_instancer_oracle.py: instance transforms, orientationsf, prototype order, ids, extent and bindings) and usdchecker. tests/conformance/instanced_references.rs checks the instanced-reference form that ARKit packages use, since Apple's USD stack does not draw PointInstancer instances (scripts/instancing_oracle.py: no PointInstancer, instance names, ids, tints and world transforms, and the same meshes and materials placed as the PointInstancer form), and usdchecker --arkit. Set LAYERSTACK_USD_PYTHON to a Python that imports pxr; without one, and without usdchecker on PATH, those checks skip.

On macOS, LAYERSTACK_SCENEKIT=1 also renders the ARKit package through SceneKit (scripts/scenekit_check.swift, run with swift) and requires it to draw one geometry per placed mesh. It is opt-in, and skips elsewhere, because it needs a Metal device, which CI runners may lack. The script can be run on any package: swift scripts/scenekit_check.swift in.usdz out.png.