GPU: a multisampled title texture with unordered access gets no host texture #2350
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Marvisak/VIctory. Originally posted by BastienRodz on 2026-11-25T11:26:23Z.
What happens
host_desc(crates/victory-gpu/src/resource.rs), which turns a title texture's description into the host's, keepsD3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESSon multisampled textures. It drops the flag only for depth targets. A title texture withSampleDesc.Count > 1and the unordered flag (the console allows it) is then asked of the host with a flag combination D3D12 refuses, somake_texturegets no host texture for it.Because the flag stays on, an sRGB multisampled texture is also made typeless for unordered views it can never have, and
host::legal_forkeepsD3D12_RESOURCE_STATE_UNORDERED_ACCESSamong its states.Expected
D3D12_RESOURCE_FLAGS,D3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESS: "Can't be used with MSAA textures." The host description of a multisampled texture should drop the flag, as it already does for depth targets.Where
crates/victory-gpu/src/resource.rs,host_desc, reached fromCreateCommittedResource(X/3),CreatePlacedResourceand placed texture views throughshared_texture→make_texture. Whether the title creates such textures is not measured.AI-assisted (Gemini 4 Neon found it, Claude Code reviewed and verified it); synthetic test only, no game data.
Imported from Marvisak/VIctory. Originally posted by BastienRodz on 2026-11-25T11:32:29Z.
Closing with #2353: hosts with writable MSAA support (D3D12_OPTIONS14) create these textures, so dropping the flag would remove a working capability. See https://github.com/Marvisak/VIctory/pull/2353#issuecomment-7161126594.