diff options
| author | VibeClauding <360230414+VibeClauding@users.noreply.github.com> | 2026-11-24 08:41:07 +0200 |
|---|---|---|
| committer | VibeClauding <360230414+VibeClauding@users.noreply.github.com> | 2026-11-24 08:50:40 +0200 |
| commit | 28052acd70fa90b0bb793730974321f9d3a13793 (patch) | |
| tree | 6f51ac9df08b78eeb8802b323fba6deb73bb579b /runtime/src/main.cpp | |
| parent | 8f481cf16f261c7f37458aeb45e8f4e19994146d (diff) | |
d3d12: B4G4R4A4 render targets are RGBA8 images where no 4444 format is a colour attachment (RT-4444-TARGET)
NVIDIA has no renderable 4444 Vulkan format (A4R4G4B4, R4G4B4A4, B4G4R4A4 are sampled only), so a B4G4R4A4_UNORM
texture with ALLOW_RENDER_TARGET was refused and GetResourceAllocationInfo answered UINT64_MAX. Such a texture is now
an RGBA8 image, which holds every 4-bit value exactly: RTVs and PSO target formats follow the image, SRV T#s still
name 4_4_4_4, and bind_image views the RGBA8 image with A4R4G4B4's channels. Not covered: buffer copies of it move
4-byte texels.
Test: d3d12_b4g4r4a4_target (size and creation, RTV clears read back, SRV T# format; 0 validation errors).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/main.cpp')
0 files changed, 0 insertions, 0 deletions