feat(d3d12_x): create Vulkan image descriptions from texture resource descriptions #49
No reviewers
Labels
No labels
accessibility
bug
ci
docs
documentation
duplicate
enhancement
fixes issue
good first issue
help wanted
invalid
library request
libs
needs rebase
question
relinker
stale
tools
unblocks title
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Dark3581--AnyBox!49
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/49/head"
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?
@Dark3581 on GitHub · 2026-11-22 21:27 UTC · original
Dark3581:feat/texture-desc→main· +406 −8 · 8 files · 1 commits · merged 2026-11-22 21:31 UTCWhat
Texture creation's description half, from public D3D12 semantics:
resources/TextureDesc.cpp:TranslateTextureDescturns a textureD3D12_RESOURCE_DESCinto aVkImageCreateInfo. 1D, 2D and 3D textures with their extent and array size, the mip chain (MipLevels0 is a full chain), the sample count, and usage from the flags (transfer always, sampled unlessDENY_SHADER_RESOURCE, colour attachment, depth-stencil attachment, storage). Square 2D arrays of six layers are cube compatible, and 3D render targets can take 2D array views.TextureStorageFormatextends the format table to textures: typeless formats become a format of their class withMUTABLE_FORMATandEXTENDED_USAGE(the views choose the real format), the typeless depth families (R32_TYPELESS,R24G8_TYPELESS,R32G8X24_TYPELESS,R16_TYPELESS) become depth formats when the texture allows depth-stencil, BC1 to BC7 in all their variants, andB8G8R8X8stored asB8G8R8A8.ALLOW_DEPTH_STENCILand the reverse, depth textures that also allow render target or UAV,DENY_SHADER_RESOURCEwithout depth-stencil, block-compressed textures that are 1D or writable, zero or oversized extents and unknown flags.textureCompressionBCwhen offered, and the description records it as a requirement.Whether the console's own texture creation path (a device method beyond the desktop ones) passes this description is not known; the debt fragment says so.
Tested
Windows 10, RTX 3070 Ti (driver 621.14), Khronos validation layer.
pso_probe textures-selftest: full mip chains, the typeless, depth and block format mappings, twelve descriptions translated, six checked field by field (usage, flags, mips, layers, samples, the BC requirement), and 15 refusals with their messages.pso_probe textures-gpu --validate: the twelve descriptions (render target and UAV with a full chain, typeless render target, D32 and typeless depth, an unsampled D32S8 array, a BC7 cube, a typeless BC1 array, a typeless R32 UAV, 4x MSAA RGBA16F, a 3D UAV render target, a 1D array UAV, BGRX) create images with 0 validation errors. Both run in thepipeline_statetest.ctest: 66 of 66. Thed3d12_xtargets and probes also build with MSVC 2022.python tools/check_conventions.pyanddebt_fold.py --check: ok.Checklist
main; no other open PR implements the same functionspython tools/check_conventions.pypasses (no comments in code, one declaration per export, Conventional Commit subjects)AbxNotImplemented/AbxUnsupported); silent stubs are listed under Silent stubs through a debt fragmentdocs/dev/debt/changes/<branch>.md