Sasha Szpakowski
d73036f44d
vulkan: safer cleanup on shutdown
2024-10-20 14:35:23 -03:00
Sasha Szpakowski
a6d29e4a76
Fix build
2024-10-20 13:00:41 -03:00
Sasha Szpakowski
88137d1b65
Add optional wait timeout parameter to love.event.pump.
...
Deprecate love.event.wait.
2024-10-20 12:43:29 -03:00
Sasha Szpakowski
0c7fc9c04a
love.timer.sleep max precision is now in ns instead of ms.
...
resolves #1970 .
2024-10-19 15:36:34 -03:00
Sasha Szpakowski
b116857102
add love.exposed and love.occluded event callbacks.
...
Add love.window.isOccluded.
Resolves #2004 .
2024-10-19 13:41:34 -03:00
Sasha Szpakowski
6e82633b56
love.visible is called when minimizing/unminimizing the window.
2024-10-19 12:33:42 -03:00
Sasha Szpakowski
d3cd2aef36
love.window.isVisible also checks if the window is minimized.
2024-10-19 11:26:17 -03:00
Sasha Szpakowski
d2d8792ca4
fix cmake error
2024-10-18 20:32:53 -03:00
Sasha Szpakowski
9617c631b9
Fix xcode project
2024-10-18 20:24:11 -03:00
Sasha Szpakowski
337d8fa048
remove source code support for SDL2
2024-10-18 20:22:26 -03:00
Sasha Szpakowski
caca6196fc
make sure non-app common paths are canonicalized.
2024-10-17 20:56:48 -03:00
Sasha Szpakowski
1ecc8a1fd9
tests: don't run window minimize/maximize tests on Linux CI
...
xvfb doesn't support those operations.
2024-10-16 22:37:36 -03:00
Sasha Szpakowski
31ce65b9d2
Fix love.resize when SDL3 is used
...
Also fixes #2100 .
2024-10-14 22:34:24 -03:00
Sasha Szpakowski
b69a22dca3
sync window state in love.window.minimize
2024-10-14 17:37:56 -03:00
Sasha Szpakowski
56c75170ef
cmake: find SDL3 on linux
2024-10-14 17:35:12 -03:00
Sasha Szpakowski
95c2a62d7e
CI: change love-appimage-source branch to main
2024-10-13 15:56:54 -03:00
Sasha Szpakowski
d8a17e583b
CI: update mesa version
2024-10-13 14:46:33 -03:00
Sasha Szpakowski
74a44883fa
fix SDL3.dll not being included in the zip/installer on Windows
2024-10-13 09:20:27 -03:00
Miku AuahDark
72d865eedc
Android: Fix error when trying to open .love file through "Load .love File".
2024-10-13 13:54:37 +08:00
Sasha Szpakowski
910af324dd
macOS: fix crash on launch when opengl is used
2024-10-12 12:32:39 -03:00
Sasha Szpakowski
aaccc6d7f0
CI: fix run syntax for macOS
2024-10-12 12:22:02 -03:00
Sasha Szpakowski
72cda62fae
Use SDL3 on macOS and iOS
2024-10-12 12:19:19 -03:00
Miku AuahDark
86bb7ba0ae
Android: Initial SDL3 support.
2024-10-12 19:44:54 +08:00
Sasha Szpakowski
05eddac6ff
vulkan: update VMA to latest code from github
2024-10-11 19:00:07 -03:00
Sasha Szpakowski
5383390937
vulkan: fix initialization when SDL3 is used
2024-10-11 18:59:32 -03:00
Sasha Szpakowski
f20b413e7d
SDL3: Remove usage of SDL_DelayNS in sleep calls.
...
SDL3 currently busy-waits in its implementation, which defeats the purpose of the sleep calls.
2024-10-09 21:21:33 -03:00
Sasha Szpakowski
8227b7bcba
iOS: fix compile errors when SDL3 is used
2024-10-08 17:05:39 -03:00
Sasha Szpakowski
28393cdfd5
Fix compilation on Windows when SDL3 is used
2024-10-06 20:27:59 -03:00
Sasha Szpakowski
e986160431
Use SDL3-compatible SDL includes when SDL3 headers are available
2024-10-06 20:27:28 -03:00
Sasha Szpakowski
20b527f2ab
Fix compile errors when SDL2 is used
2024-10-06 17:08:35 -03:00
Sasha Szpakowski
dda7603d0d
update SDL3 codepaths to work with 3.1.
2024-10-06 16:53:09 -03:00
Sasha Szpakowski
e1494d4ad2
revert to previous names for a couple graphics enums
2024-10-03 12:42:11 -03:00
Sasha Szpakowski
eeec2429e2
vulkan: use subpass dependencies for layout transitions when switching canvases.
2024-09-30 23:04:58 -03:00
Sasha Szpakowski
3a6833ffb5
fix compile error
2024-09-30 20:15:11 -03:00
Sasha Szpakowski
1ee89154c0
vulkan: memory barrier after compute dispatches.
2024-09-30 19:58:45 -03:00
Sasha Szpakowski
64e4eaec74
vulkan: memory barriers for buffer copy/write operations.
2024-09-30 14:43:27 -03:00
Sasha Szpakowski
6d40eab097
vulkan: slightly improve memory placement for fullscreen canvases.
2024-09-29 17:00:10 -03:00
Sasha Szpakowski
8e6efac595
vulkan: fix a crash when the window has no depth or stencil.
2024-09-28 18:30:26 -03:00
Sasha Szpakowski
61e58bb361
add tests for no depth or stencil in the window.
2024-09-28 18:23:40 -03:00
Sasha Szpakowski
a16db4fb72
metal: fix a crash when the window has no depth or stencil.
2024-09-28 18:23:09 -03:00
Sasha Szpakowski
ef252b7d0f
vulkan: possible fix for validation error when sampling an int texture
2024-09-27 19:57:44 -03:00
Sasha Szpakowski
d185eb8218
vulkan: fix validation errors when generating mipmaps for a compute-writable texture.
2024-09-27 19:50:11 -03:00
Sasha Szpakowski
876625d7e3
move common shader:send texture/buffer code to platform-agnostic layer.
...
Fixes issues in the Metal backend when a shader using a readonly buffer is created.
2024-09-19 22:41:31 -03:00
Sasha Szpakowski
0a552ef352
mesh and spritebatch attributes reuse buffer bindings when possible.
2024-09-11 18:46:21 -03:00
Sasha Szpakowski
2c288715d4
metal: fix vertex attribute locations not being set correctly.
2024-09-08 15:08:10 -03:00
Sasha Szpakowski
247effb43b
Fix vertex input check looking at builtin vertex inputs.
2024-09-07 19:22:34 -03:00
Sasha Szpakowski
50ff1e4d2b
use location numbers for vertex input attributes, instead of name-based binding.
...
- add 'location' named field to buffer and mesh vertex format tables, replaces 'name' field.
- location numbers are expected to match 'layout (location = #)' qualifiers in vertex inputs in shader code.
- deprecate vertex inputs in shader code that don't have layout location qualifiers.
- love's default vertex attributes use location 0 for position, 1 for texcoord, and 2 for color.
- add new variants of Mesh:attachAttribute, setAttributeEnabled, and isAttributeEnabled which take location numbers instead of names.
Improves draw performance in vulkan and metal backends.
2024-09-07 18:06:03 -03:00
Sasha Szpakowski
c7b4ebbc55
newShader validates overlapping vertex input locations.
2024-09-07 17:36:34 -03:00
Sasha Szpakowski
cbadb06182
lower max vertex attributes from 32 to 30, some platforms don't support that many
2024-09-07 17:35:56 -03:00
Sasha Szpakowski
6c67835b6a
vulkan: fix typo in error message
2024-09-07 17:35:15 -03:00