Skip to content

Vulkan Forward+: align tile cull with viewport-derived tile pixels#127

Merged
cursor[bot] merged 1 commit into
mainfrom
cursor/forward-plus-tile-cull-dynamic-px-7dab
Apr 20, 2026
Merged

Vulkan Forward+: align tile cull with viewport-derived tile pixels#127
cursor[bot] merged 1 commit into
mainfrom
cursor/forward-plus-tile-cull-dynamic-px-7dab

Conversation

@timfox
Copy link
Copy Markdown
Owner

@timfox timfox commented Apr 20, 2026

Summary

Align forward_plus_tile_cull.comp with the PBR fragment Forward+ path: tile AABBs use viewport ÷ tileGrid instead of hard-coded 16px.

Validation

./scripts/renderer_regression_check.sh, ./scripts/compile_engine.sh vulkan.

Open in Web Open in Cursor 

- forward_plus_tile_cull.comp: sphere_tile_overlap uses dynamic tilePx
  from lights SSBO viewport and pc.tileGrid (no hard-coded 16px)
- renderer_regression_check: forbid 16px literals in compute; note alignment
- RENDERER_2026_ARCHITECTURE_PASS: document compute+fragment tile sizing
- Regenerate SPIR-V for compute shader

Co-authored-by: Tim Fox <timfox@outlook.com>
@cursor cursor Bot merged commit 46188a6 into main Apr 20, 2026
45 of 51 checks passed
@cursor cursor Bot deleted the cursor/forward-plus-tile-cull-dynamic-px-7dab branch April 20, 2026 19:21
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Security review completed for this PR.

I validated all modified code paths (forward_plus_tile_cull.comp, generated shader artifacts, and renderer_regression_check.sh) and found no medium/high/critical vulnerabilities introduced by this change.

Why no finding was filed:

  • The shader change is arithmetic alignment (tile pixel size derived from viewport/tile grid), with no new attacker-controlled input crossing into a sensitive sink.
  • The script change updates regression checks only and does not introduce a runtime trust-boundary or injection path.
  • No prior automation-authored review threads were present to revalidate or keep open.
Open in Web View Automation 

Sent by Cursor Automation: Find vulnerabilities

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.

2 participants