Daniel Ludwig
b1b4a9cd1b
GDK build: PFN_D3D12_XBOX_CREATE_DEVICE not defined for Xbox One ( #10690 )
2024-09-03 08:09:00 -05:00
Sam Lantinga
73898a0a64
Renamed NDA platform constants to "PRIVATE"
2024-09-02 21:00:34 -07:00
Sam Lantinga
35dadda327
Fixed build warnings
2024-09-02 17:17:48 -07:00
Andrei Alexeyev
fb7245fb93
GPU: Add support for more texture formats ( #10641 )
2024-09-02 19:14:48 -05:00
Caleb Cornett
f405def691
Change GPU flag enums to defines ( #10681 )
2024-09-02 15:19:43 -07:00
Davis Gallinghouse
deb313dd99
GPU: Compile Metal shader source from NSString
...
Using the @() syntax to construct an NSString assumes the parenthesized
pointer is null-terminated, but the Metal shader source included in
render/sdlgpu/shaders/metal.h is not null-terminated.
Quoting the clang documentation on Objective-C literals:
When the type of the parenthesized expression is (char *) or (const
char *), the result of the boxed expression is a pointer to an
NSString object containing equivalent character data, which is
assumed to be ‘\0’-terminated and UTF-8 encoded.
Because the @() syntax assumes null-termination, it may read garbage
data after the shader source (up to the next null byte), which can then
cause the Metal shader compiler to fail. To prevent this, instead of
using the @() boxing syntax, we explicitly construct an NSString using
the string length passed by the caller.
2024-09-02 07:20:36 -07:00
Zero
2c0ffdc6d5
GPU: Pass the new window size when resizing the swapchain for d3d12 ( #10665 )
2024-09-01 08:48:29 -07:00
Andrei Alexeyev
d4b8072614
GPU: Fix and generalize BytesPerRow() and BytesPerImage() ( #10663 )
...
These functions had special cases for a few BC formats, but all
block-compressed formats should need the same logic. Furthermore they
weren't handling the sRGB variants of those formats.
2024-08-31 23:07:38 -07:00
Sam Lantinga
b17ca32d8c
Changed GPU driver names to match renderer driver names
...
Fixes https://github.com/libsdl-org/SDL/issues/10650
2024-08-31 10:06:27 -07:00
Sam Lantinga
f827c1322c
Renamed SDL_Del* to SDL_Remove*
2024-08-31 07:46:28 -07:00
Jan Sedivy
00708b976a
GPU Metal: Fix uninitialized memory
2024-08-31 07:29:32 -07:00
Anonymous Maarten
31a5f3b833
Fix C4090: 'function': different 'const' qualifiers
2024-08-31 06:49:33 -07:00
Andrei Alexeyev
0e08d15cca
GPU: Fix unhandled R16G16_UNORM in SDL_GPUTextureFormatTexelBlockSize() ( #10638 )
2024-08-30 17:05:17 -07:00
Evan Hemsley
12ecdb9dde
GPU: Rename some awkwardly named functions ( #10642 )
2024-08-30 15:31:10 -07:00
cosmonaut
906044569d
GPU D3D12: Fix command buffer leak
2024-08-30 10:46:41 -07:00
Evan Hemsley
4bbf0d45fd
GPU D3D12: Fix teardown and leaks on device creation failure ( #10639 )
2024-08-30 10:24:02 -07:00
Andrei Alexeyev
d1a2c57fb9
GPU: Fix memory leak in VULKAN_CreateDevice ( #10631 )
2024-08-29 22:15:08 -07:00
Sam Lantinga
5518aca054
Use stdbool internally in SDL
2024-08-29 18:54:05 -07:00
Sam Lantinga
683e5b8d52
Removed Unicode BOM
2024-08-29 17:33:52 -07:00
Sam Lantinga
62f6e6b701
Removed the preferLowPower parameter from SDL_CreateGPUDevice()
2024-08-29 17:33:52 -07:00
Sam Lantinga
b8e7ef27f3
Renamed GPU device creation properties
2024-08-29 17:33:52 -07:00
Sam Lantinga
d70578b9aa
Renamed Gpu to GPU
2024-08-29 17:33:52 -07:00
cosmonaut
2e7d5bb429
Add the SDL_GPU API
...
Project Lead: Evan Hemsley <evan@moonside.games >
Co-designer, Metal Port, Console Ports:
Co-authored-by: Caleb Cornett <caleb.cornett@outlook.com >
Production, QA, Debug:
Co-authored-by: Ethan Lee <flibitijibibo@gmail.com >
SDL_Render Driver, Bugfixes:
Co-authored-by: Andrei Alexeyev <akari@taisei-project.org >
Additional D3D12 Programming, Bugfixes:
Co-authored-by: Bart van der Werf <bluelive@gmail.com >
Bugfixes and Feedback:
Co-authored-by: Zakary Strange <zakarystrange@gmail.com >
Co-authored-by: meyraud705 <meyraud705@gmail.com >
Co-authored-by: Joshua T. Fisher <playmer@gmail.com >
Co-authored-by: Topi Ritala <ritalat@fastmail.com >
Co-authored-by: David Gow <david@ingeniumdigital.com >
Original API Proposal:
Co-authored-by: Ryan C. Gordon <icculus@icculus.org >
2024-08-29 15:57:29 -07:00