Repository navigation
feat(rtx): add geometry MDL scene-data aliases - #394
Draft
kvankooten wants to merge 1 commit into
Draft
kvankooten wants to merge 1 commit into
kvankooten wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
One native MDL material can now request a scene-data name while different geometries store it in different existing attribute slots. Add
ANARI_VISRTX_GEOMETRY_MDL_SCENE_DATA: geometry parameters such assceneData.temperature = "attribute2"override material bindings for the same exact name, with material fallback when an alias is unset or invalid. A valid alias selecting absent data returns the MDL default.Use synchronized device-local name tokens to bridge material-local MDL string IDs to compact geometry alias tables. Float/color lookups and
data_isvalidshare resolution, including synthetic geometry-light hits. Preserve existing interpolation, presence and uniform eligibility. Correct the material scene-data upload to pass an element count after expanding its table entries.Include extension discovery, API examples, implementation notes, GPU regression coverage and an optional alias-count benchmark. Initial advertised geometry subtypes are triangle, quad, sphere, cylinder, cone, curve, SDF and isosurface.
Validation
Windows Release, Visual Studio 2022, CUDA 13.2, OptiX 7.7, ANARI 0.16.0, MDL SDK 2025.0.5, RTX A3000 Laptop GPU:
TestMdlSceneData,rtx::MdlSceneDataInstance,rtx::MdlSceneDataDescriptor,rtx::MdlEmissionClassifier, and MDL-disabledTestDenoiserReusepass.git diff --checkpass.Known limitations
The existing
rtx::MdlMaterialRegistryWindows canonical-module recovery fixture fails withsource acquire failed (no fallback permitted); the same failure was reproduced using the parent checkout's unchanged registry/test sources and a fresh build of unchanged libmdl code.Alias-only edits still rebuild BLAS. Interned names live until device destruction, and GPU resolution searches the alias list linearly. Extension-name/specification review, MaterialX/neural coverage and broader subtype/performance testing remain follow-ups. Detailed design, validation and assertion-enabled World-ordering observations are recorded in
devices/rtx/docs/geometry-attribute-names-investigation.md.