Skip to content

Conversation

@beicause
Copy link
Contributor

@beicause beicause commented Oct 2, 2025

Objective

CameraOutputMode doesn't Implement Reflect and is ignored in Camera.

Solution

Like #15355, this Implements opaque Reflect for wgpu::BlendState thus we can add #derive(Reflect) for CameraOutputMode.

As the commnent says, it can also implement Reflect througth reflect_remote (#6042), but I'm not sure if we should do this for wgpu types.

Testing

ci

@beicause beicause force-pushed the reflect-camera-output-mode branch from e4926f0 to 6b7f7c7 Compare October 2, 2025 12:20
@dloukadakis dloukadakis added S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it A-Reflection Runtime information about types labels Oct 2, 2025
@dloukadakis dloukadakis added the D-Straightforward Simple bug fixes and API improvements, docs, test and examples label Oct 2, 2025
@james7132 james7132 added this pull request to the merge queue Oct 3, 2025
Merged via the queue into bevyengine:main with commit dfb809c Oct 3, 2025
46 checks passed
@beicause beicause deleted the reflect-camera-output-mode branch October 3, 2025 13:10
beicause added a commit to beicause/bevy that referenced this pull request Oct 6, 2025
# Objective

`CameraOutputMode` doesn't Implement `Reflect` and is ignored in
`Camera`.

## Solution

Like bevyengine#15355, this Implements opaque `Reflect` for `wgpu::BlendState`
thus we can add `#derive(Reflect)` for `CameraOutputMode`.

As the commnent says, it can also implement `Reflect` througth
`reflect_remote` (bevyengine#6042), but I'm not sure if we should do this for wgpu
types.

## Testing

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

Labels

A-Reflection Runtime information about types D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants