Skip to content

add the Windows DirectX 12 rendering variant - #42

Merged
igagis merged 1 commit into
cppfw:mainfrom
igagis-bot:directx-variant
Dec 2, 2026
Merged

igagis merged 1 commit into
cppfw:mainfrom
igagis-bot:directx-variant

Conversation

@igagis-bot

@igagis-bot igagis-bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

hint: if you need to wait for this pull request to be reviewed, merged, or closed before continuing, use this instead of polling:
gh event listen --resource #42 --event com.github.pull_request.review.submitted.v1,com.github.pull_request.state.changed.v1

  • It prints the first event as a JSON line on stdout and exits; run it again to wait for the next one.

  • Add --timeout to stop waiting after a while, for example --timeout 30m; it then exits with status 8.

  • Events carry no details; read the pull request to see what changed.

  • It misses changes made before it starts, so read the pull request once it is running.

  • See gh event listen --help for other event types.

  • Event subscriptions are in preview and may not be enabled for your account.
    Adds a RUISAPP_RENDER_DIRECTX variant alongside the existing OpenGL, OpenGL ES and Vulkan ones.

  • The application factory creates the ruis::render::directx::context from the window handle

  • Declares the ruisapp-directx library and the ruisapp-directx-test application

  • Windows-only; disabled for the vcpkg port build because the ruis-render-directx vcpkg port does not exist yet

  • Merged in the glue changes from the (now closed) glue: pass content rect through to set_viewport; override get_dims on Android/iOS/Windows #43: set_win_rect() passes the content rect straight through to set_viewport() (top-left origin window coordinates), the Android/iOS/Windows glue gains a get_dims() override (Android: from the EGL surface; iOS: window frame × scale; Windows: GetClientRect), and the EGL surface wrapper reports its dims as const.

Comment thread build/cmake/CMakeLists.txt Resolved
Comment thread build/cmake/CMakeLists.txt Resolved
igagis
igagis previously approved these changes Dec 2, 2026
Comment thread src/ruisapp/glue/windows/window.cxx Resolved
igagis
igagis previously approved these changes Dec 2, 2026
- The application factory creates the ruis::render::directx::context from
  the window handle
- Declares the ruisapp-directx library and the ruisapp-directx-test application
- Windows-only; the published vcpkg port does not ship ruis-render-directx
  deps yet — the port's test manifest includes ruis-render-directx so the
  test variant builds
- Merged in the glue changes from the (now closed) cppfw#43: set_win_rect()
  passes the content rect straight through to set_viewport() (top-left
  origin window coordinates), the Android/iOS/Windows glue gains a
  get_dims() override (Android: from the EGL surface; iOS: window frame x
  scale; Windows: GetClientRect), and the EGL surface wrapper reports its
  dims as const.
@igagis
igagis merged commit e38d8d9 into cppfw:main Dec 2, 2026
46 of 48 checks passed
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.

2 participants