Skip to content

Bound mesh-compute raw buffer addresses - #31

Closed
Personed wants to merge 2 commits into
compat/mesh-compute-dispatchfrom
compat/mesh-compute-address-limits
Closed

Personed wants to merge 2 commits into
compat/mesh-compute-dispatchfrom
compat/mesh-compute-address-limits

Conversation

@Personed

@Personed Personed commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Reject mesh-compute dispatch plans whose output buffer exceeds the 32-bit byte-offset space used by D3D12 raw buffers.
  • Permit exactly 2^32 bytes, whose final aligned dword remains addressable at u32::MAX - 3.
  • Add boundary tests for the largest accepted allocation and over-limit multi-group allocations.
  • Stacked on Plan checked mesh-compute dispatch sizes #28; this is a safety precondition for the future compute writer/vertex reader, not a rendering or FPS change.

Validation

  • cargo fmt --all -- --check, git diff --check, repository asset policy, and Rust test-harness object compilation pass.
  • Local test execution is blocked by the missing MSVC linker; CI will execute the unit tests.

Devin Review

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 Devin Review: 1 flag

Not posted on this PR by your GitHub settings — view it in Devin Review. (Configure)

Devin Review

@Personed

Copy link
Copy Markdown
Owner Author

Closing as superseded after investigation: #26 is merged and contains the actual mesh-emulation layout and shader-side buffer writes; the independent layout/dispatch helper here was not used by production runtime. I fixed the Clippy div_ceil warning found in the first CI run; the rerun is green, but this PR is intentionally not merged to avoid maintaining duplicate infrastructure.

@Personed Personed closed this Nov 25, 2026
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