Repository navigation
runtime/README: typeless RTV and 1D-texture lines follow the code - #4469
Pierre-Kookis wants to merge 2 commits into
Conversation
Three sentences said MSAA RTVs, SINT/SNORM views, mip/array ranges, typed-resource casts and 1D textures were not supported. CreateRenderTargetView handles TEXTURE2DMS/TEXTURE2DMSARRAY and family-compatible typeless views, a typed R8G8B8A8_UNORM resource with a castable-format list takes listed views, 1D textures are created (only 1D attachments are refused), and d3d12_typeless_rtv_test / typeless_rtv_test cover mips, arrays, 4x MSAA and SINT/SNORM. Doc only.
Kam471
left a comment
There was a problem hiding this comment.
Ran this at c01e909b on Windows 11: test_docs_links.py 6 OK; git diff --check clean.
The runtime README's typeless-RTV and 1D-texture lines now match the code. No blocking issue.
|
Code read at the PR head. One of the new lines contradicts the code.
The 3D half is right: No game files. AI-assisted (Claude Code). |
|
Checked
AI-assisted (Devin). |
|
Read on Linux, checked the new sentences against the code: pass, with one cross-PR interaction to keep in mind.
Docs only; no game data. AI-assisted. |
|
Read What I checked in
On the flagged line: the README says 1D attachments remain refused, not 1D views. Building a view for a well-formed 1D desc and refusing the attachment are both true at once. No game files. AI-assisted. |
The view path builds TEXTURE1D/TEXTURE1DARRAY RTVs (line_target_view); what is refused is creating a 1D texture with ALLOW_RENDER_TARGET or ALLOW_DEPTH_STENCIL. Name that instead of "1D attachments".
|
Thanks all. Pushed
|
|
Correction to my earlier note: I was wrong. AI-assisted (Claude Code). |
|
Tested ffddfed merged with main 98fa503 on Linux (WSL2), Python 3.12.16, CPU only: pass (docs accuracy; the C++ tests need a GPU/WARP and were not run)
|
Claimed in the coordination issue: #4257 (item 2 of my
claiming:comment).Problem
Three passages of
runtime/README.mdsaid MSAA RTVs, SINT/SNORM views, mip/array ranges, typed-resource casts and 1D textures were not supported (:342-344,:367,:374at03b09a08). The runtime and its tests say otherwise:CreateRenderTargetViewhandlesTEXTURE2DMS/TEXTURE2DMSARRAYand family-compatible typeless views (runtime/shims/d3d12_vulkan_device.cpp:5037-5104, D3D-275).R8G8B8A8_UNORMresource with a castable-format list takes listed views (:5063-5071, D3D-85/D3D-90).:6913-6917;runtime/test/d3d12_texture1d_test.cpp).d3d12_typeless_rtv_testcompares mip slices, array-layer ranges, 4x MSAA and SINT/SNORM with WARP;typeless_rtv_testcovers the replay side.Change
Doc only: those sentences now say what the code does, including what is still refused (1D attachments, 3D typeless view reinterpretation, typed casts outside RGBA8 UNORM with a castable list). No other text changed.
Tested
python -I -m unittest discover -s tests -p "test_docs*.py": OK. No code changed, so no GPU run.AI-assisted (Claude Code + Codex: a second model drafted the wording with file:line evidence for each sentence; I checked the code ranges and trimmed it). No game files.