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

Add support for Xbox Series: new macro HL_XBS, directx adapt #613

Merged
merged 5 commits into from Aug 30, 2023

Conversation

yuxiaomao
Copy link
Collaborator

This commit add a new target platform to hashlink : Xbox Series (console), aka Scarlett. Defined with macro HL_XBS. It does not contain Xbox specific features, except for some adaptation in DirectX12, but will allow the use of hashlink (instead of hashlink C) on the target platform.

Use with -lib heaps, add -lib directx -D dx12 -D usesys and definitions of haxe.AudioTypes, haxe.GameController, haxe.System.

  • Tested on game with GDK version 230303, where 2D display are ok with Heaps.io
  • Known issues:
    • Support only 1920x1080 resolution + 60 FPS, but not yet 2k / 4k / 120 FPS.
    • The dx12.getRequiredIntermediateSize return size+offset for HL_XBS, which is a tmp fix for dx12.updateSubResource error when first != 0

This commit add a new target platform to hashlink : Xbox Series (console), aka Scarlett. Defined with macro `HL_XBS`.
It does not contain Xbox specific features, except for some adaptation in DirectX12, but will allow the use of hashlink (instead of hashlink C) on the target platform.

Use with `-lib heaps`, add `-lib directx -D dx12 -D usesys` and definitions of `haxe.AudioTypes`, `haxe.GameController`, `haxe.System`.

- Tested on game with GDK version 230303, where 2D display are ok with Heaps.io
- Known issues:
  - Support only 1920x1080 resolution + 60 FPS, but not yet 2k / 4k / 120 FPS.
  - The `dx12.getRequiredIntermediateSize` return size+offset for HL_XBS, which is a tmp fix for `dx12.updateSubResource` error when `first != 0`
@ncannasse
Copy link
Member

ncannasse commented Aug 22, 2023 via email

@ncannasse ncannasse merged commit 12f9126 into HaxeFoundation:master Aug 30, 2023
2 of 10 checks passed
@yuxiaomao yuxiaomao deleted the dev-xbs branch September 11, 2023 13:00
crazyjul pushed a commit to playdigious/hashlink that referenced this pull request Jan 18, 2024
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.

None yet

2 participants