Shaders: 16-bit vertex inputs are refused #1511
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 Bloh09 on 2026-11-24T18:39:45Z.
Shaders: 16-bit vertex inputs are refused
load_inputreturns "a 16-bit input" for a signature element withhalfset (the fetch shader's attributes). Pixel interpolation already unpacks 16-bit inputs to 32-bit host values; the vertex path does not.The host signature already declares these 32-bit (
SigElement.half). The fetch result on the console is the 16-bit value in the low half of the VGPR (one per dword). Packed (two per dword) is a later slice:VsInputhas no pack flags.Synthetic test, no game files.
Imported from Marvisak/VIctory. Originally posted by Bloh09 on 2026-11-24T18:39:53Z.
Taking this, PR today.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T10:24:01Z.
Automated triage for the maintainers.
In scope. On
main(940d32f),load_inputincrates/victory-shader/src/emit/lower.rsrefuses a signature element withhalfset ("a 16-bit input"); itsshortcut:note says vertex inputs are not unpacked while pixel inputs are. The change is open as PR #1519 from the same author, so review goes there.Generated by Claude Code
Imported from Marvisak/VIctory. Originally posted by pes7 on 2026-11-26T15:22:56Z.
Different 16-bit problem, same family — worth saying so that nobody waits on the wrong fix.
#2936 (
b1ec6e0) widens the packed colour formats the host has no equivalent for:B5G6R5,B5G5R5A1,B4G4R4A4→BGRA8inpc_format, "the one function resources, views, twins and pipeline target formats all go through". The failure it fixed was a removal rather than a refusal: the device went away withDXGI_ERROR_INVALID_CALLon a typed UAV ofB5G5R5A1and on aB4G4R4A4render target. With it, the title reaches gameplay (2 555 draws a frame).That is a resource format widening. This issue — a 16-bit vertex input the translator refuses — is untouched by it: the vertex fetch path still has to unpack the 16-bit components into the attribute, and #1519 ("unpack 16-bit vertex inputs into the low half") and #1512's own scope are where that lives.
Related, also separate: #1946 (a null UAV for packed 16-bit formats D3D12 refuses) is the descriptor side of the packed-colour change and merges next to
descriptor/host.rsrather than in it; #2636 decodes packed 16-bit UNORM diagnostic targets, which is how a widened target is read back for comparison.So: packed colour formats are handled in #2936, packed vertex inputs here are still open.