[Contribution] Drop-In Zero-Copy GPU BCPack Decoder for d3d12_xs / IDStorageQueueX (bcpack_gpu.dll, MIT/Apache-2.0) #53
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Freminet--ScarlettX#53
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?
@POMXARK on GitHub · 2026-11-25 19:28 UTC · original
Hi team,
To help unblock DirectStorage (
IDStorageQueueX) /d3d12_xsasset streaming without burning CPU cores on BCPack MDU rANS decompression, I built a clean-room,MIT OR Apache-2.0licensed GPU Compute BCPack decompressor packaged as a drop-in C-ABI DLL + HLSL SM 6.6 / SPIR-V shaders:v0.10.0): https://github.com/POMXARK/bcpack-gpu-hlsl/releases/tag/v0.10.0 (bcpack-gpu-sdk-v0.10.0-win64.zip)docs/AI_ARCHITECTURE.mdHighlights (
19/19 PASSBit-Exact on RTX 5080, DX12 Debug Layer Clean)ID3D12DeviceSharing (include/bcpack_gpu.h): Supports both raw buffer output (BcPackDecodeToBuffer) and direct 2D texture mip upload (BcPackDecodeToTexture2D, with automatic 256B RowPitch padding on small mips) — zero CPU readback.32/32lanes active), and fused AMD Gfx10SW_64KB_D/SW_4KB_Sdetile at 432.6 GB/s (0.144 ms/64 MiB).ResourceDescriptorHeap[]pager (1.25Mvirtual →262Kphysical slots in0.064 ms,0mismatches) to avoid NVIDIA's ~1M shader-visible heap cap.Feel free to drop
bcpack_gpu.dllstraight into your DirectStorage hooks or cherry-pick the HLSL shaders!