application-flow
High-level overview of a typical ovrtx application lifecycle. Use when user asks how to structure an ovrtx program, what the main…
Zero-copy attribute map/unmap for direct memory access to ovstage buffers. Use when user asks about zero-copy writes, map attribute, direct memory access, or repeated mapped updates. Use attribute-bindings for repeated writes with caller-owned tensors when a copy is acceptable.
$ npx -y skills add nvidia-omniverse/ovrtx --skill mapping-attributes --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/mapping-attributesContext preview
The summary Claude sees to decide when to auto-load this skill.
Zero-copy attribute map/unmap for direct memory access to ovstage buffers. Use when user asks about zero-copy writes, map attribute, direct memory access, or repeated mapped updates. Use attribute-bindings for repeated writes with caller-owned tensors when a copy is acceptable.
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: LicenseRef-NvidiaProprietary # # NVIDIA CORPORATION, its affiliates and licensors retain all intellectual # property and proprietary rights in and to this material, related # documentation and any modifications thereto. Any use, reproduction, # disclosure or distribution of this material and related documentation # without an express license agreement from NVIDIA CORPORATION or # its affiliates is strictly prohibited. name: mapping-attributes description: > Zero-copy attribute map/unmap for direct memory access to ovstage buffers. Use when user asks about zero-copy writes, map attribute, direct memory access, or repeated mapped updates. Use attribute-bindings for repeated writes with caller-owned tensors when a copy is acceptable. license: LicenseRef-NvidiaProprietary author: NVIDIA ovrtx tags: - ovrtx - attributes - mapping tools: - Read - Grep
Use this skill when the user asks about zero-copy writes, `map_attribute`, direct memory access, or mapped attribute updates. Use `attribute-bindings` for repeated writes through a reusable ovstage query when the caller already owns the data tensor.
Resolve inputs in this order: existing repository files and referenced snippets, explicit user request, then broader agent context.
1. Identify the concrete map/unmap target, language, prim list, attribute name, memory target, and synchronization requirement. 2. Read the matching source snippet and copy its map/write/unmap lifecycle rather than inventing equivalent calls. 3. Validate dtype, shape, semantic, mappability, and ownership rules before proposing or editing code. 4. Keep mapped tensor views alive only until unmap, and copy anything that must outlive the mapping. 5. For repeated map/unmap cycles, retain and reuse the ovstage query. 6. When changing code, run the narrow docs test or example that owns the snippet whenever practical.
This skill has no scripts.
Mapping gives you direct access to an ovstage attribute buffer. Instead of copying data in, write through each fetched group, then unmap and advance the write floor.
The pattern is: **map -> write into tensor -> unmap**.
> **Source:** `tests/docs/python/test_attribute_bindings.py` snippet `doc-map-attribute-cpu`
> **Source:** `tests/docs/python/test_attribute_bindings.py` snippet `doc-map-attribute-cpu`
From the planet-system example -- map on CUDA, compute with a Warp kernel, unmap with stream sync:
> **Source:** `tests/docs/python/test_attribute_bindings.py` snippet `doc-map-attribute-cuda`
Reuse the query across map/unmap cycles:
> **Source:** `tests/docs/python/test_attribute_bindings.py` snippet `doc-map-bound-attribute`
> **Source:** `tests/docs/c/test_attribute_bindings.cpp` snippet `doc-map-attribute-cpu-c`
> **Source:** `examples/c/vulkan-interop/src/main.cpp` snippet `map-rendered-output-cuda-array`
| Python | C | |--------|---| | `stage.map_attribute(query, attr, ordinal=..., element_sizes=...)` | `ovrtx_map_attribute(renderer, &binding, desc, &out)` | | `mapping.fetch_next()` | `out_mapping.dl` (DLTensor) | | `mapping.unmap()` | `ovrtx_unmap_attribute(renderer, handle, sync)` |
Read and map descriptors use scalar lanes: scalars `(N,)`, generic tuples `(N, C)`, and semantic square matrices `(N, S, S)` for S=2, 3, or 4. Per-prim array tensors use the same trailing axes. Strides count scalar elements. Attribute creation and canonical write inputs still use the lane-based rules in the `writing-attributes` skill.
> **Source:** `tests/docs/python/test_attribute_shapes.py` snippets `doc-shape-scalar-int32`, `doc-shape-float3-array`, `doc-shape-mat4-array`.
ovrtx is a C and Python library for embedding Omniverse RTX sensor simulation and visualization directly into applications.
High-level overview of a typical ovrtx application lifecycle. Use when user asks how to structure an ovrtx program, what the main…
Asynchronous operation patterns including polling, timeouts, and non-blocking workflows. Use when user asks about async…
Replacing persistent ovrtx attribute bindings with reusable ovstage queries for repeated writes or maps. Use when user asks about…
Binding materials to prims at runtime. Use when user asks to assign a material, change a material, set material binding, or swap…
Available camera render outputs for Real-Time Path-Tracing (RT2) mode. Use when user asks what AOVs/render vars are available,…
Cloning USD subtrees to create copies at new paths. Use when user asks to clone, duplicate, copy a prim, or create instances of…