Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how to access render adapter info #18426

Open
alice-i-cecile opened this issue Mar 19, 2025 · 0 comments
Open

Document how to access render adapter info #18426

alice-i-cecile opened this issue Mar 19, 2025 · 0 comments
Labels
A-Rendering Drawing game state to the screen D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Ready-For-Implementation This issue is ready for an implementation PR. Go for it! X-Uncontroversial This work is generally agreed upon

Comments

@alice-i-cecile
Copy link
Member

pub fn setup_debug_hud(
    mut commands: Commands,
    system: Res<SystemInfo>,
    adapter: Res<RenderAdapterInfo>,
    query_monitor: Query<(Entity, &Monitor, Has<PrimaryMonitor>)>,
    query_window: Query<&Window>,
) {
<...>
    let adapter_info = format!("{}", adapter.name);

Originally posted by @shwwwa in #18417 (comment)

@alice-i-cecile alice-i-cecile added A-Rendering Drawing game state to the screen S-Ready-For-Implementation This issue is ready for an implementation PR. Go for it! X-Uncontroversial This work is generally agreed upon D-Straightforward Simple bug fixes and API improvements, docs, test and examples labels Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Ready-For-Implementation This issue is ready for an implementation PR. Go for it! X-Uncontroversial This work is generally agreed upon
Projects
None yet
Development

No branches or pull requests

1 participant