SDL 3.4.16 build fails for Xbox Scarlet & Xbox One (GDK)
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- c
- Domain
- build-system, computer-graphics
Research direction
Start with src/gpu/d3d12/SDL_gpu_d3d12.c at line 1962 and inspect the D3D12_RESOURCE_STATES initialization reported by the GDK compiler. Reproduce the build for Gaming.Xbox.Scarlett.x64 or Gaming.Xbox.XboxOne.x64, then verify that both targets compile successfully.
Written by the indexing model from the issue text.
Description
Building the library with GDK for Gaming.Xbox.Scarlett.x64 or Gaming.Xbox.XboxOne.x64 throws the following error:
1>SDL_gpu_d3d12.c 1>Z:\pixel\resources\SDL\21092026\SDL-release-3.4.16\src\gpu\d3d12\SDL_gpu_d3d12.c(1962,34): error C2440: 'initializing': cannot convert from 'int' to 'D3D12_RESOURCE_STATES' 1> Z:\pixel\resources\SDL\21092026\SDL-release-3.4.16\src\gpu\d3d12\SDL_gpu_d3d12.c(1962,34): 1> Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or parenthesized function-style cast) 1>Generating Code... 1>Done building project "SDL.vcxproj" -- FAILED. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
The error was not happening a few months back so it might relate to a recent change.
- Dominant language
- C
- Stars
- 16.6k
- Forks
- 3k
- Avg merge
- 15h 40m
- Merged PRs (30d)
- 70
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from libsdl-org/SDL
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
libsdl-org/SDL#16220 ·
-
Flydigi Vader 5 Pro rumble does not work — rumble path missed by the unnumbered-report fix in #15594 Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
libsdl-org/SDL#16187 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
libsdl-org/SDL#16089 ·
-
SDL2 testtimer query Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
libsdl-org/SDL#16053 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
libsdl-org/SDL#16353 · 3 comments ·
Similar issues
-
level/task module/gcp type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
hapostgres/pg_auto_failover#1190 ·
-
docs
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
P3 sonic-vpp
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
sonic-net/sonic-buildimage#29662 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 94/100
spack/spack-packages#6586 ·