Commit Graph

5323 Commits

Author SHA1 Message Date
Labrium f8f7fd9afb Merge branch 'love2d:main' into sdf-font-hintingmode 2024-06-22 15:55:56 -06:00
Sasha Szpakowski f548430f06 remove more obsolete code 2024-06-22 16:32:29 -03:00
Sasha Szpakowski 46402d4ff7 vulkan: fix missing resource validation in Shader:send 2024-06-22 16:32:10 -03:00
Labrium 2eb8892ddf Merge branch 'love2d:main' into sdf-font-hintingmode 2024-06-22 13:20:46 -06:00
Sasha Szpakowski ca9aa81744 vulkan: improve performance and memory usage when there are many draws without many texture/buffer changes.
Descriptor set updates only happen if a resource binding changed since the last draw. Uniform data uses a dynamic uniform buffer descriptor so it doesn't need to update the descriptor set if only the offset changes between draws.
2024-06-21 22:44:30 -03:00
Miku AuahDark 39da33adff Android: Use SDL_OpenURL for love.system.openURL().
Fixes love2d/love-android#273.
2024-06-21 10:43:35 +08:00
Sasha Szpakowski 25a6576785 Remove more obsolete code. 2024-06-20 22:14:31 -03:00
Sasha Szpakowski 8ceae23aa3 Merge pull request #2051 from learn-more/vs_grouping
Group liblove and lovedep projects in Visual Studio
2024-06-20 18:38:10 -03:00
Sasha Szpakowski 8b37337436 Remove a workaround for a driver that's no longer supported 2024-06-20 18:14:46 -03:00
Sasha Szpakowski 66a1197053 Remove a couple internal support checks that aren't needed anymore. 2024-06-20 17:50:36 -03:00
Sasha Szpakowski ad0af743d8 Shaders use GLSL3 instead of GLSL1 by default.
Remove support for GLSL1.
Deprecate use of 'texture' uniform variable names and 'texture2D' function calls in shader code. They aren't supported in modern GLSL.
2024-06-20 17:49:50 -03:00
Sasha Szpakowski 54a31ec615 Minimum required opengl version is now OpenGL 3.3 / OpenGL ES 3.0. 2024-06-19 18:08:09 -03:00
Sasha Szpakowski 5112345893 Fix the first TextBatch:set call uploading vertices twice. 2024-06-18 22:19:40 -03:00
Sasha Szpakowski 4c778fa878 Fix typo 2024-06-17 21:13:06 -03:00
Sasha Szpakowski bfc4212f30 Remove NormalMatrix shader uniform.
It doesn't provide much value given its costs. It also didn't work properly with auto-batched draws.
2024-06-17 20:57:28 -03:00
Sasha Szpakowski e180b256b8 vulkan: fix cull mode in quad drawing code 2024-06-17 17:08:31 -03:00
Mark Jansen ce173dd89b Group liblove and lovedep projects in Visual Studio 2024-06-17 10:18:48 +02:00
Sasha Szpakowski 78f8cfc4dc Add Shader:getBufferFormat.
Returns a table with the same setup as the data format table used with love.graphics.newBuffer.
2024-06-16 17:07:34 -03:00
Sasha Szpakowski 12bbadb0fa replace 'onesided' bool in EdgeShape constructors with prev/next vertex coordinates. 2024-06-16 11:17:46 -03:00
Sasha Szpakowski 946579a903 Fix delete key not using the right name 2024-06-15 20:11:24 -03:00
Sasha Szpakowski 6869737a3f vulkan: recognize more vendor ids for love.graphics.getRendererInfo 2024-06-15 15:40:48 -03:00
Sasha Szpakowski 8e67fd5861 metal: fix compile error 2024-06-15 15:02:44 -03:00
Sasha Szpakowski 2eb8198dba metal/vulkan: fix uniform numbers and vectors in arrays of structs. 2024-06-15 14:46:27 -03:00
Sasha Szpakowski d13a7f7620 Fix missing deprecated Shape:getShape method. 2024-06-07 17:38:08 -03:00
Sasha Szpakowski a23d53183e key press events and love.keyboard support arbitrary non-ascii key constants.
Closes #2012.
2024-06-01 21:21:20 -03:00
Miku AuahDark d5766924ed Update build instructions for *nix.
Closes #2026.

Co-authored-by: Kartik Agaram <github@akkartik.com>
Co-authored-by: Mark Jansen <mark.jansen@reactos.org>
2024-05-30 10:26:22 +08:00
Sasha Szpakowski 657b3de9d9 Merge pull request #2069 from ryandesign/cmake-macos
Fix CMake build on macOS
2024-05-10 21:50:22 -03:00
Ryan Carsten Schmidt e26106222a On macOS/iOS, use apple.mm, macos.mm and/os ios.mm
Fixes #2068
2024-05-10 01:27:41 -05:00
Ryan Carsten Schmidt 2c23b16556 On macOS/iOS, use Metal instead of Vulkan
See #2066
See #2068
2024-05-10 01:24:48 -05:00
Sasha Szpakowski b4427a1186 Merge pull request #2065 from ryandesign/patch-2
Remove duplicate entry in changes.txt
2024-05-09 19:01:02 -03:00
Sasha Szpakowski cccd46af49 Merge pull request #2067 from ryandesign/fobjc-arc
Add -fobjc-arc for love_3p_luahttps on macOS
2024-05-09 19:00:53 -03:00
Ryan Carsten Schmidt ce03fb839a Add -fobjc-arc for love_3p_luahttps on macOS
Fixes error: "ARC is off"
2024-05-08 22:46:57 -05:00
Ryan Carsten Schmidt 4ccf81bada Remove duplicate entry in changes.txt 2024-05-08 21:16:39 -05:00
Sasha Szpakowski 9473c8d710 vulkan: fix validation error when creating a non-square array texture. 2024-05-05 09:40:28 -03:00
Sasha Szpakowski 03f364e131 graphics: bind internal depth-compare textures to unbound sampler2DShadow vars. 2024-05-03 20:56:13 -03:00
Sasha Szpakowski a894c2f6a4 vulkan: fix validation errors related to scissors when drawing. 2024-05-03 20:24:25 -03:00
Sasha Szpakowski 8d8cf317d5 opengl+windows: work around a performance issue with lines. 2024-05-02 18:05:42 -03:00
Miku AuahDark 629fc1c581 Android: Use mode a+rwx for directories and a+rw for files in external storage path.
Issue love2d/love-android#269.
2024-04-27 12:38:30 +08:00
Sasha Szpakowski 0089749ad0 metal: work around texture swizzle bug in the github runner VM 2024-04-26 20:40:37 -03:00
Sasha Szpakowski 5f97efd402 CI: run metal tests on macOS 2024-04-26 20:40:32 -03:00
Sasha Szpakowski 8cba8ce292 tests: remove macOS-specific audio codepath
It's not needed now that OpenAL Soft has been updated on macOS
2024-04-26 20:11:10 -03:00
Sasha Szpakowski 7755bf668e CI: use wave backend for OpenAL Soft during tests 2024-04-26 20:05:18 -03:00
Sasha Szpakowski a238d5ae2c CI: pull from main branch of love-apple-dependencies 2024-04-26 19:51:28 -03:00
Sasha Szpakowski 1e2696b403 improve errors when openal fails to initialize 2024-04-25 18:23:58 -03:00
Miku AuahDark 329796d3ba Android: Fix inconsistency issue with t.externalstorage. 2024-04-25 12:36:43 +08:00
Miku AuahDark 8cdbeb20b9 Fix compile error from previous commit. 2024-04-25 12:04:33 +08:00
Miku AuahDark 4270985df1 Android: Fix missing directories and files with externalstorage when trying to browse it through MTP. 2024-04-25 11:54:13 +08:00
Sasha Szpakowski 562de22289 CI: fix jit modules not being uploaded 2024-04-20 19:12:10 -03:00
Sasha Szpakowski f3a1535dd0 CI: build for iOS simulator using an Apple Silicon computer 2024-04-20 18:58:35 -03:00
Sasha Szpakowski 0b3e5af85f CI: don't build for 32 bit windows 2024-04-20 18:47:13 -03:00