Skip to content

Conversation

noituri
Copy link

@noituri noituri commented Oct 6, 2025

Connections
Closes #8205

Description
Currently it was not possible to render onto planes of multiplanar textures (in this case, it's only possible for NV12).

To make it work:

  • I changed how allowed usages are checked on texture creation. For multiplanar textures I check features of underlying planes' formats instead of the multi planar texture's itself.
  • Changed how render_extent is calculated for texture views

Testing
I tried to render on both Vulkan and DX12 (the only supported backends) + I've added tests.
987 tests run: 982 passed, 5 failed, 12 skipped.
On my machine 5 tests were failing before and after my changes.

Checklist

  • Run cargo fmt.
  • Run taplo format.
  • Run cargo clippy --tests. If applicable, add:
    • --target wasm32-unknown-unknown
  • Run cargo xtask test to run tests.
  • If this contains user-facing changes, add a CHANGELOG.md entry.

@noituri noituri force-pushed the @noituri/renderable-nv12-texture branch from a9b592c to 658925c Compare October 6, 2025 07:44
@noituri noituri force-pushed the @noituri/renderable-nv12-texture branch from 658925c to 5a10d31 Compare October 6, 2025 07:44
@noituri noituri marked this pull request as ready for review October 6, 2025 07:49
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.

Allow RENDER_ATTACHMENT on multi planar texture formats
2 participants