pso: add static sampler root signature #1084
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1091"
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 R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-11-24T00:49:15Z.
Change
Create the smallest PSO for a test root through the D3D12.X device path, including a static
sampler.
tests/d3d12x_pso.hlslis acs_6_0shader that samplest0at LOD 0 and writesu0.s0with distinct non-default fields: LINEAR, WRAP/CLAMP/BORDER, MipLODBias 2.5,MaxAnisotropy 4, GREATER_EQUAL, OPAQUE_WHITE, MinLOD 1.5, MaxLOD 9, register/space 0, ALL
visibility, plus flags
0x03000000.D3D12XboxCreateDevice, serializes through the shim,compares the 208-byte blob with the desktop baseline after stripping the two documented flag
bits, deserializes and compares every static-sampler field, then creates the root signature and
compute PSO.
ShaderVisibility=99,Filter=0x7fffffff, flag0x04000000,ParameterType=0x7fffffffand PSO creation without a root signature. Desktop and shim mustboth return
E_INVALIDARGwith no blob; the rootless PSO must also be null.Verification
cmake --build --preset dev --target d3d12_xs_shim d3d12x_device_checkctest --preset dev --no-tests=error -R '^d3d12x_(pso|device)_' -Vroot=S_OK pso=S_OK, non-null objects.desktop=0x80070057 shim=0x80070057,blobs=null; rootless PSO0x80070057, PSO null.docs_links_check.py:Self-test passed.,Checked 15 Markdown files and 238 links..git diff --check origin/main...HEAD: clean.Evidence and follow-up
pso/root-signatures, headf8df277, based on0afcdfa1(contains XCL-08 andXCL-22).
src/: the shim alreadystrips only the two documented console flag bits.
D3D12XBOX_CREATE_DEVICE_PARAMETERSandIID_ID3D12Device1remain unimplemented.d3d12.hconstants and the local XCL-08 evidence.No XCL code, table or output is used.
docs/experiments.mdrecords the root, sampler fields and exact CTests.Checklist