Skip to content

fix(dx12): match indirect descriptor ABI size#258

Open
besmpl wants to merge 1 commit into
gogpu:mainfrom
besmpl:codex/upstream-dx12-indirect-abi
Open

fix(dx12): match indirect descriptor ABI size#258
besmpl wants to merge 1 commit into
gogpu:mainfrom
besmpl:codex/upstream-dx12-indirect-abi

Conversation

@besmpl

@besmpl besmpl commented Jul 14, 2026

Copy link
Copy Markdown

Summary

Match the native D3D12_INDIRECT_ARGUMENT_DESC layout: its largest union member is three uint32 values, so the union is 12 bytes and the full descriptor is 16 bytes. Add exact size and offset assertions.

This extracts the independent DX12 ABI correctness fix from #253. It contains no counted-draw or prepared-indexed behavior.

Verification

  • GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go test -c -o /tmp/wgpu-d3d12-windows-amd64.test.exe ./hal/dx12/d3d12
  • GOOS=windows GOARCH=arm64 CGO_ENABLED=0 go test -c -o /tmp/wgpu-d3d12-windows-arm64.test.exe ./hal/dx12/d3d12
  • git diff --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant