Skip to content

Textures are uploaded through NVRHI's staging textures - #70

Merged
ASDAlexander77 merged 1 commit into
mainfrom
nvrhi-staging-upload
Oct 13, 2026
Merged

ASDAlexander77 merged 1 commit into
mainfrom
nvrhi-staging-upload

Conversation

@ASDAlexander77

Copy link
Copy Markdown
Owner

The next NVRHI step: uploading textures through staging textures the CPU writes. With this, all three of copyTexture's overloads and both of mapStagingTexture's access modes are tested.

Verified on tslang pre-alpha101:

  • Windows CTest 61/61
  • nvrhi_direct with -dx12 -debug and -vk -debug
  • JIT: nvrhi_direct (dx12 and vk, -debug) and headless
  • Android emulator: headless and nvrhi_direct pass on x86_64 and on arm64 (translated)
  • Negative check: without the staging-to-texture copy, the readback is all zeros and the test fails (dx12 and vk)

🤖 Generated with Claude Code

nvrhi.copyTextureFromStaging(): ICommandList::copyTexture's third overload, a staging texture into
a texture (its arguments through `| null` locals, TSLANG_ISSUES.md #19). nvrhi_direct tests it
with a command list of its own: a staging texture the CPU writes (CPU_ACCESS_WRITE,
mapStagingTexture for writing, row by row at its row pitch), copied into a texture, which is read
back through a staging texture: the same pixels.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ASDAlexander77
ASDAlexander77 merged commit 54880aa into main Oct 13, 2026
@ASDAlexander77
ASDAlexander77 deleted the nvrhi-staging-upload branch October 13, 2026 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant