Alex Szpakowski
9709f95194
metal: fix structs in uniforms.
2022-01-01 17:41:23 -04:00
Alex Szpakowski
e2c397355c
metal: implement copyBufferToTexture and copyTextureToBuffer.
2022-01-01 15:48:43 -04:00
Alex Szpakowski
40aa50662a
Merge branch '12.0-development' into metal
2022-01-01 15:36:57 -04:00
Alex Szpakowski
e602f08c24
metal: support constant initializer values for local uniforms.
2022-01-01 15:28:42 -04:00
Alex Szpakowski
8e7fd10b6f
Update copyright year for 2022
2021-12-31 18:33:40 -04:00
Alex Szpakowski
813c9d1781
Fix GL version check for arbitrary texture-to-buffer copy support.
...
love never creates a GL4.5 context, so we also need to check for the extension that provides the same functionality.
2021-12-30 19:25:10 -04:00
Alex Szpakowski
cf0a45f601
Fix non-stream buffers uploading redundant data when a sub-range is modified.
...
https://love2d.org/forums/viewtopic.php?f=4&t=92458
2021-12-28 15:10:09 -04:00
Alex Szpakowski
bfcf025ef7
Add 'staging' buffer data usage enum.
2021-12-28 12:49:33 -04:00
Alex Szpakowski
52101b2563
Add love.graphics.copyTextureToBuffer and copyBufferToTexture.
2021-12-28 12:46:56 -04:00
Alex Szpakowski
d7bfc2ebcb
Fix compile error
2021-12-27 21:31:04 -04:00
Alex Szpakowski
5b3a5e7721
Remove the need for copysource and copydest buffer usage flags.
2021-12-27 21:17:04 -04:00
Alex Szpakowski
4195911680
Relax Texture:replacePixels sub-rect restriction for compressed textures.
2021-12-27 12:10:37 -04:00
Alex Szpakowski
045f5ff0a5
Fix initializing the graphics module after a window is opened.
2021-12-26 12:34:47 -04:00
Alex Szpakowski
19feec43f9
metal: don't do auto sRGB -> P3 color conversions on the backbuffer
2021-12-25 22:31:18 -04:00
Alex Szpakowski
37ff7ef665
metal: support for depth16 on iOS
2021-12-25 14:21:59 -04:00
Alex Szpakowski
30fe00d767
metal: implement storage buffer bindings
2021-12-25 14:21:45 -04:00
Alex Szpakowski
c6e4cfdc64
metal: initial love.graphics.dispatchThreadgroups implementation
2021-12-24 23:04:44 -04:00
Alex Szpakowski
a03041043f
metal: partial implementation of love.graphics.discard
2021-12-24 22:41:31 -04:00
Alex Szpakowski
759937a458
metal: fix depth24stencil8 fallback on macOS
2021-12-24 22:20:25 -04:00
Alex Szpakowski
2868ede191
metal: restrict to macOS 10.15+ and iOS 13+.
2021-12-24 19:22:10 -04:00
Alex Szpakowski
620dc42292
metal: fix quad drawing on older iOS devices
2021-12-24 19:13:48 -04:00
Alex Szpakowski
a431e70179
metal: add internal compute encoder APIs
2021-12-24 18:56:21 -04:00
Alex Szpakowski
bcd64fe537
metal: implement mesh cull modes
2021-12-24 18:46:06 -04:00
Alex Szpakowski
dab174b120
metal: fix a couple compiler warnings
2021-12-24 18:04:11 -04:00
Alex Szpakowski
7eb8366b2d
metal: integer texture format support.
2021-12-24 17:50:17 -04:00
Alex Szpakowski
304b569a39
metal: tag texture formats with compute write support
2021-12-24 17:45:05 -04:00
Alex Szpakowski
7a910484c3
Fix compilation
2021-12-24 16:45:23 -04:00
Alex Szpakowski
75b2ddc3c9
Fix love.graphics.clear's alpha component.
2021-12-24 16:14:06 -04:00
Alex Szpakowski
3d8117ccbb
Merge branch '12.0-development' into metal
2021-12-24 15:35:18 -04:00
Alex Szpakowski
e63025b74f
Merge branch '12.0-development' into metal
2021-12-24 15:34:05 -04:00
Alex Szpakowski
c8038f22df
Merge branch 'main' into 12.0-development
2021-12-24 11:35:35 -04:00
Miku AuahDark
fb815edc28
Change luaL_loadbuffer chunkname with prefixes.
2021-12-12 09:23:00 +08:00
Alex Szpakowski
d0e22fb56e
Merge pull request #1739 from s-walrus/fix/font-getwrap-final-newline
...
Fix #1707 : Font:getWrap() removing final newline charancter
2021-11-20 16:43:56 -04:00
Alex Szpakowski
bd741a8c78
Fix incorrect particle offsets when Quads are used without setOffset.
...
Fixes #1741 .
2021-11-19 21:44:04 -04:00
Alex Szpakowski
a3ff9999d1
Disallow mat3 formats in shader storage buffers.
...
GLSL's std430 layout rules make it really unintuitive for users to deal with.
2021-11-06 18:30:08 -03:00
Alex Szpakowski
5c98cbdabd
Fix Shader:send with storage buffers when the shader uses more than 1.
2021-11-06 17:03:54 -03:00
Alex Szpakowski
fb77e64f61
Allow plain arrays of a base type as shader buffer block declarations.
2021-11-06 16:42:41 -03:00
Alex Szpakowski
68977ec311
Fix alignment of storage buffers with vec3 or mat3 components.
2021-11-06 11:17:23 -03:00
Alex Szpakowski
041aa2fc23
Revert Shader:send to cause a Lua error instead of returning false,
...
if the given variable doesn't exist or is optimized out in the shader.
2021-11-06 10:43:43 -03:00
Alex Szpakowski
b916c0ad92
Fix error message when sending buffers to unused variables
2021-11-06 10:41:30 -03:00
Semyon Yentsov
a57d207a57
Fix bug #1707
2021-11-01 01:37:18 +03:00
Alex Szpakowski
8a48f1b733
Merge branch 'main' into 12.0-development
2021-10-19 21:50:19 -03:00
Alex Szpakowski
4574805486
Make rounded rectangles more robust.
...
- rx and ry parameters are set to 0 if they're negative.
- automatic points calculation doesn't cause an unnecessarily large amount of points when rx or ry are greater than half the rectangle's size.
2021-10-10 22:08:56 -03:00
Alex Szpakowski
ad2de2702a
Fix a missing #include causing a potential compile error
2021-10-02 15:32:07 -03:00
Alex Szpakowski
4a579bf2a7
Merge pull request #1730 from zombrodo/fix/1721-printf-wrap
...
Fix #1721 : floor result of scaling kerning based on dpi
2021-09-24 23:01:51 -03:00
Alex Szpakowski
7851124260
metal: work on storage buffers
2021-09-05 13:18:10 -03:00
Alex Szpakowski
f4a694c266
Merge branch 'master' into 12.0-development
2021-09-05 13:03:46 -03:00
Alex Szpakowski
16ebaea390
Fix DXT1 textures which use 1 bit alpha-cutout.
...
Note that premultiplied alpha blending must be used with DXT1 alpha cutout textures if linear filtering is used, otherwise transparent black pixels will be blended with opaque non-black pixels resulting in dark fringes.
2021-09-05 12:55:32 -03:00
Jack Robinson
bfca659e37
Fix #1721 : floor result of scaling kerning based on dpi
2021-08-31 21:22:06 +12:00
Alex Szpakowski
7038c66ab2
Hook up missing reflection data for writable textures in compute
2021-08-23 16:53:55 -03:00