Commit Graph

1955 Commits

Author SHA1 Message Date
Sasha Szpakowski c89192990b vulkan: potentially improved highdpi support.
Mostly untested.
2022-12-06 20:36:36 -04:00
Sasha Szpakowski d70514b2d1 vulkan: when vsync is off prefer immediate instead of mailbox mode, for now.
Fixes #1852. This might be reevaluated in the future.
2022-12-04 17:51:11 -04:00
Sasha Szpakowski 6599697835 opengl: Fix love_PixelCoord and love_ScreenSize in shaders.
Fixes #1866.
2022-11-25 23:27:04 -04:00
slime 8cda22ef7d Remove NaN-check C assert calls in line drawing code.
Users can pass NaN point values into line drawing code. love shouldn't abort the entire program if that happens.
2022-10-30 12:30:42 -03:00
niki 089746dbf1 Merge branch '12.0-development' of https://github.com/nikeinikei/love into 12.0-development 2022-10-27 14:22:46 +02:00
niki 3b3bd63c93 vulkan: improve loop in createVulkanVertexFormat 2022-10-27 14:22:43 +02:00
nikeinikei fd6870a7ce Merge branch 'love2d:12.0-development' into 12.0-development 2022-10-26 12:16:04 +02:00
slime ae0688c834 macOS/metal: workaround for bug where high power GPU won't fully activate 2022-10-25 19:51:03 -03:00
niki e95319873c Merge remote-tracking branch 'upstream/12.0-development' into 12.0-development 2022-10-25 13:52:35 +02:00
Miku AuahDark 4862d95687 Deprecate love.graphics.setNewFont. 2022-10-17 01:30:44 +08:00
niki f4bdc57fb3 vulkan: keep track of device/instance api version 2022-10-16 03:33:09 +02:00
niki 6a3fffaee2 vulkan: Buffer:fill is now more like OpenGL impl 2022-10-14 14:58:27 +02:00
niki 087fe4c196 vulkan: improve negated bit syntax 2022-10-14 14:29:19 +02:00
nikeinikei 04e5703bed Merge branch 'love2d:12.0-development' into 12.0-development 2022-10-14 00:01:58 +02:00
niki 940ac05137 vulkan: call invalidate if mapping is incoherent 2022-10-13 23:58:31 +02:00
slime 919ffc08f0 remove some dead code 2022-10-10 14:35:12 -03:00
slime 99ad576668 metal: implement storage texture support for shaders.
Fixes #1783
2022-10-10 13:47:17 -03:00
niki ecc272e0ca vulkan: flush allocations if needed
There is no guarantee that the created buffer is actually host coherent.
If it is not we have to manually flush it.
2022-10-06 02:12:36 +02:00
niki a95ff597d5 vulkan: remove unnecessary code
Since we supply the vulkan headers ourselves
we can be sure that all the definitions used are there.
2022-10-06 01:18:27 +02:00
niki c924d943d6 vulkan: readd local streambuffer frame index 2022-10-05 12:59:37 -03:00
niki 1ab0d819ff vulkan: fix incorrect uniform values 2022-10-05 12:59:37 -03:00
niki c89cca9e60 vulkan: readd local streambuffer frame index 2022-10-05 17:55:40 +02:00
niki e4543c604c vulkan: fix incorrect uniform values 2022-10-05 15:18:27 +02:00
slime 2466e49fd1 Change behaviour of love.graphics.newImage when image size is too big.
Previously it would load a placeholder error texture, now it causes a Lua error - which is the same behaviour as love.graphics.newCanvas.
2022-10-01 21:55:59 -03:00
slime 6173c1638d macOS: fix colors appearing oversaturated on P3 displays.
The fix only applies to macOS 11+ when using OpenGL.
2022-09-30 15:17:46 -03:00
nikeinikei 60036d5dfe fix keying of samplerstate (#1853) 2022-09-26 23:57:53 -03:00
slime 752a386640 vulkan: stencils use the same reversed compare mode convention as other backends 2022-09-26 21:20:09 -03:00
slime e3ba7a0bff vulkan: fix missing stencil compare mask dynamic state setup 2022-09-26 21:18:51 -03:00
slime b9da6d6ddc vulkan: always use optimal image tiling.
Linear is useful for intermediate texture copy steps between the CPU and GPU, but we use buffers instead of textures for that.
2022-09-25 22:05:18 -03:00
slime 1eb4f1f172 vulkan: flush batched draws before clear(). minor code cleanup. 2022-09-25 17:41:47 -03:00
slime 1ada8c9a0b vulkan: update engine name 2022-09-25 17:41:08 -03:00
slime 95bfd948ca vulkan: move StreamBuffer frame management to StreamBuffer implementation
Fixes crashes with lots of auto-batched draws in a frame.
2022-09-25 17:40:53 -03:00
slime 108758c3d3 vulkan: fix stencil buffer having undefined contents
note: there are still other issues with draws using stencils.
2022-09-22 23:01:31 -03:00
slime 1b89de4497 vulkan: clean up texture creation flags 2022-09-22 22:20:42 -03:00
nikeinikei 755a9c8879 Merge branch 'love2d:12.0-development' into 12.0-development 2022-09-21 14:03:39 +02:00
niki 503b17a5fc vulkan: fill buffer with initial data if supplied 2022-09-21 14:03:06 +02:00
slime 510b73c2b6 vulkan supports min/max blend ops 2022-09-20 22:13:32 -03:00
slime 3c3ba7d658 vulkan: initial support for clampzero and clampone wrap modes. 2022-09-20 22:10:11 -03:00
slime 26ec23f4ba vulkan: convert clear colors from sRGB to linear when gamma-correct rendering is on 2022-09-20 19:13:12 -03:00
slime 45c3638209 vulkan: use sRGB backbuffer format when gamma-correct rendering is on 2022-09-20 19:12:40 -03:00
slime 2b074fe90e vulkan: improve sRGB support for textures 2022-09-20 19:04:56 -03:00
niki b0fb00c54f vulkan: fix crashes
in isPixelFormatSupported and setStencilMode
2022-09-20 14:49:56 +02:00
niki a4f654c809 Merge branch '12.0-development' of https://github.com/nikeinikei/love into 12.0-development 2022-09-20 12:36:58 +02:00
niki eaa043c3ff vulkan: report approximate used texture memory 2022-09-20 12:36:56 +02:00
niki 735c8b0290 vulkan: provide vulkan headers ourselves 2022-09-20 02:10:51 +02:00
niki f8af91ece5 vulkan: provide vulkan headers ourselves 2022-09-20 01:59:51 +02:00
slime73 8695e6160c Merge pull request #1789 from nikeinikei/vulkan
Vulkan Graphics Backend
2022-09-19 16:44:06 -03:00
niki 58c801be58 vulkan: fix incorrect samplers 2022-09-19 19:51:48 +02:00
niki fe8cbfecbf vulkan: remove shader version code 2022-09-19 15:43:25 +02:00
niki 50cc954d6a vulkan: determine correct supported api version 2022-09-19 15:38:33 +02:00