Repository navigation
Windows: Direct3D 12, MSIX packaging, screen readers (AccessKit), maximize fix - #64
Merged
Merged
Conversation
|
Caution Review failedThe pull request is closed.
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. |
4 of 7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this change?
Stacked on #63 (base
css-specs), which is stacked on #62; merge those first. Four commits:maximize button
WindowDecorations::Client) hands its maximize button to the app now.d3d12 backend
Application::gpu_api(GpuApi::D3d12),BUI_gpu_set_api,BUI_GPU_API=d3d12, or a default stored in the executable.gpu_device.c) through a 15-operationBuiGpuOpstable, and draw byte-identical frames.BUI_GPU_DEBUG=2turns it on; it reports 0 errors, warnings and leaks on AMD and NVIDIA.BUI_GPU_ADAPTER=high-performance: renders on the discrete GPU of a hybrid laptop. The default stays the display's GPU; vendor profilers only see work on their GPU.cli packaging
bui build app.jsx --msixmakes an MSIX package (installable, Store-ready; the modern form of UWP packaging) instead of a bare.exe.--gpu d3d11|d3d12stores which Direct3D the app starts with.bui package app.exe --msix|--gpudoes both for any BUI executable (Rust, C ...).makeappx, andsigntoolto sign.a11y windows
a11y/crate (bui-a11y). It runs UI Automation throughWM_GETOBJECT, sends only changed nodes, and builds nothing until a reader asks.a11yfeature: on for Rust and Node; optional for CMake builds, where it needs cargo.examples/a11y.rsis a small app to try with Narrator. macOS and Linux are next.How was it tested?
ctest --test-dir buildpasses (the GPU ctests, including new*_d3d12variants, passed in the working tree on the AMD iGPU and the RTX 3050 Ti)cargo testpasses: whole workspace in the working tree. At thed3d12 backendcommit the GPU and render-target tests pass on Direct3D 12.bui-a11yunit tests;tests/suite/a11y.rs, with headless trees and reader requests;bindings/node/test/windows.test.js;gpu/tests/test_gpu_api.h.bench_frameswitha11yon and no reader attached shows no change. Direct3D 12 frame costs are listed above.A real UI Automation client (PowerShell
System.Windows.Automation) read the example window:on_click.makeappxpacked a real BUI executable, and the unpacked manifest and logos were checked. Narrator itself was not tried by ear.Checklist
CHANGELOG.mdupdated (Unreleased)SPDX-License-Identifier: GPL-2.0-or-laterheader