Skip to content

feat(graphics): implement layered render target subsystem and 2D array color/depth views on native Metal - #546

Merged
RINNECODER merged 1 commit into
mainfrom
feat/layered-render-target-subsystem
Oct 18, 2026
Merged

RINNECODER merged 1 commit into
mainfrom
feat/layered-render-target-subsystem

Conversation

@RINNECODER

Copy link
Copy Markdown
Owner

Summary

Implements the Layered Render Target Subsystem (adapting upstream PR boykopovar#7254 and boykopovar#7256 to native Metal):

  • Slice-Level Dirty Tracking: Added StorageTexture::MarkSliceDirty(uint32_t slice, uint32_t count = 1) in Texture.hpp and Texture.cpp to track partial writes per array layer / cubemap face without full image invalidation.
  • Layered Render Target Decoding:
    • ColorTarget::layers and DepthTarget::layers decoded from view slices.
    • State::renderLayers and State::layerExports tracking for multi-slice export and 2D array texture views.
    • Lifted restriction on layered draws into several array slices in DecodeColorBuffer.
  • Native Metal Pipeline:
    • Updated colorSurface in MetalDraw.mm to properly configure TextureDimension::k2DArray with arrayLastSlice.
    • Configured renderPass.renderTargetArrayLength = std::max(depthLayers, state.renderLayers).
    • Set attachment.slice = color.arraySlice on color attachments.
    • Enabled layered depth rendering simultaneously with color targets.
  • Updated RenderState.mm tests to verify layered 2D array color decoding.

Verification

  • Conventions: 100% pass (check_conventions.py --base main, zero code comments policy upheld)
  • Rosetta test suite: 25/25 passed (100%)
  • Metal native test suite: 63/63 passed (100%)

@RINNECODER
RINNECODER merged commit 53e4d5a into main Oct 18, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-18T02:08:11.470157Z f0ee788 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@RINNECODER
RINNECODER deleted the feat/layered-render-target-subsystem branch October 18, 2026 02:08
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Oct 18, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 359d0fc0-d52c-4e69-9cd3-83337bf9fee9
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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