Alex Szpakowski
0c7793e195
Fix detection of #pragma language glsl3 in shaders
2020-07-19 15:41:04 -03:00
Alex Szpakowski
f848b201ae
Merge branch 'master' into 12.0-development
2020-07-18 21:29:36 -03:00
Alex Szpakowski
dde3db3006
Apply Image:replacePixels/missing text workaround to more ATI drivers
...
issue #1563
2020-07-12 18:25:55 -03:00
Alex Szpakowski
d60d8867f4
Possible workaround for an Intel driver bug with readable depth buffers
...
https://github.com/love2d/love/issues/1592
2020-07-11 17:21:26 -03:00
Alex Szpakowski
50eeed7bb1
Fix Shader:send's Data variant when a matrix layout arg is used.
...
Also add a second more consistent Data+matrix layout variant of Shader:send which matches the argument order of the table+matrix layout variant - Shader:send(name, matrixlayout, data, ...).
2020-07-10 22:52:23 -03:00
Alex Szpakowski
96b8d29a5c
Clean up code for computing smooth line vertex colors.
2020-06-28 21:58:13 -03:00
Alex Szpakowski
426798ab10
metal: fix a freeze issue with the main uniform buffer
2020-06-15 22:00:30 -03:00
Alex Szpakowski
9aa9319eb5
metal: implement depth/stencil state
2020-06-14 21:14:56 -03:00
Alex Szpakowski
9d2dca5740
metal: nogame and error screens work.
...
- implement love.graphics.setColor
- implement default textures
- hacky implementation of default uniform data
- use texture swizzles to set up LA8 (text) texture data
- shader reflection work
2020-06-13 20:29:23 -03:00
Alex Szpakowski
6cd4b3e3f7
Update glslang
2020-06-07 15:36:23 -03:00
Alex Szpakowski
2c4bfab1de
Merge branch '12.0-development' into GraphicsBuffer
2020-05-23 20:29:38 -03:00
Alex Szpakowski
0fae32706d
Fix a crash on Windows. Resolves #1570 .
2020-05-23 15:19:28 -03:00
Alex Szpakowski
de041ded0e
metal: initial vertex attribute support for pipelines
...
Also hook up samplers
2020-05-03 17:14:54 -03:00
Alex Szpakowski
9765485222
metal: partial implementation of pipeline states.
...
Add BGRA8 pixel format.
2020-05-03 12:48:43 -03:00
Alex Szpakowski
ceb1e4459b
metal: initial sampler cache implementation
2020-04-26 09:09:26 -03:00
Alex Szpakowski
643a046d64
metal: basic implementation of love.graphics.clear
2020-04-23 22:49:38 -03:00
Alex Szpakowski
99b39065b6
metal: hook up the backbuffer
2020-04-23 18:38:29 -03:00
Alex Szpakowski
acc4064a6c
metal: implement stubs for missing methods
2020-04-22 23:18:00 -03:00
Alex Szpakowski
d13e97fd83
Merge branch 'master' into 12.0-development
2020-03-15 19:25:48 -03:00
Alex Szpakowski
8fac08809a
Eliminate redundant glActiveTexture calls when shaders are used.
...
The redundant calls were introduced with the previous commit.
2020-03-15 19:24:49 -03:00
Alex Szpakowski
c5b6cc3228
Merge branch 'master' into 12.0-development
2020-03-15 19:17:04 -03:00
Alex Szpakowski
9c2454816f
Fix the active GL texture unit not always being set properly.
...
Fixes issues where texture methods wouldn't have any effect, depending on the current internal opengl state.
2020-03-15 01:29:33 -03:00
Alex Szpakowski
e0ff593d09
Fix love.graphics.newTexture(imagedata, {canvas=true}) not using an sRGB format when it should
2020-03-04 20:37:41 -04:00
Alex Szpakowski
10fbdf68f4
Fix love.graphics.newCanvas(w, h) not creating a canvas-capable texture
2020-03-04 20:36:06 -04:00
Alex Szpakowski
2cff535eb1
Move shader parsing code from Lua to C++.
2020-03-03 19:30:22 -04:00
Alex Szpakowski
fec6cfd449
metal: fix compilation errors
2020-02-28 23:25:25 -04:00
Alex Szpakowski
a5b87a10d1
Merge branch '12.0-development' into metal
2020-02-28 23:21:08 -04:00
Alex Szpakowski
bbdadcba8a
Fix build
2020-02-28 23:12:22 -04:00
Alex Szpakowski
7fbb68e90e
Merge branch '12.0-development' into GraphicsBuffer
2020-02-28 23:10:21 -04:00
Alex Szpakowski
d77dabaa6b
Add Mesh:getAttachedAttributes.
2020-02-28 23:01:35 -04:00
Alex Szpakowski
7c1a344c23
Minor cleanup of some metal helper code
2020-02-28 23:00:07 -04:00
Alex Szpakowski
b95788c104
Shader:send now returns false if the uniform doesn't exist
...
It also returns false if the uniform exists but was optimized out by the shader compiler. Previously it would cause a Lua error in both situations.
2020-02-27 20:19:55 -04:00
Alex Szpakowski
9425c9224b
Rename internal batched draw code to be more clear
2020-02-27 20:08:50 -04:00
Alex Szpakowski
4197a364fd
Internal restructuring of some Mesh code
2020-02-23 22:39:18 -04:00
Alex Szpakowski
2c90ccabb3
Avoid some hardcoded strings
2020-02-23 16:49:38 -04:00
Alex Szpakowski
1ddfcd4cc8
Always use explicitly typed buffers, even in internal code
2020-02-23 16:30:55 -04:00
Alex Szpakowski
2828761060
Move some code from Mesh wrapper to Buffer wrapper
2020-02-22 18:58:41 -04:00
Alex Szpakowski
b1c028a4d3
Merge branch '12.0' into GraphicsBuffer
2020-02-17 16:31:02 -04:00
Alex Szpakowski
ac524e681a
Change the default font from Vera size 12 to Noto Sans size 13.
...
Resolves issue #1075 .
2020-02-17 01:55:49 -04:00
Alex Szpakowski
7c34345fa6
Rename new/set/getRenderTarget back to new/set/getCanvas, for now.
...
The setRenderTarget/setCanvas API will likely change before 12.0 is released, so there's no reason to rename things unnecessarily before then.
2020-02-16 19:42:11 -04:00
Alex Szpakowski
e001e4336d
metal: initial work on setRenderTarget
2020-02-16 09:04:50 -04:00
Alex Szpakowski
455b0c2c6b
metal: more work on MSAA textures
2020-02-15 16:00:55 -04:00
Alex Szpakowski
64b38459cf
Update metal backend for Image+Canvas->Texture changes
2020-02-15 15:44:23 -04:00
Alex Szpakowski
742a954655
Merge branch '12.0' into metal
2020-02-15 14:18:35 -04:00
Alex Szpakowski
024d9443a0
Merge branch '12.0' into Texture
2020-02-15 13:53:15 -04:00
Alex Szpakowski
a0a933a1b9
Merge branch 'master' into 12.0
2020-02-15 13:51:12 -04:00
Alex Szpakowski
15f0e4109b
Fix a typo in a comment
2020-02-15 13:50:47 -04:00
Alex Szpakowski
185498ba6d
Fix depth sample mode validation checking the wrong state.
2020-02-15 13:49:04 -04:00
Alex Szpakowski
4ec9cafdea
Better error checking in the GL texture backend
2020-02-12 22:57:13 -04:00
Alex Szpakowski
5c06b2a860
Replace getCanvas/ImageFormats with getTextureFormats
2020-02-12 22:25:04 -04:00