Hajime Hoshi
fd51abfb0d
shader: Bug fix ++/-- must not be applied to a blank identifier
2020-09-14 00:32:47 +09:00
Hajime Hoshi
3421598e64
ebiten: Add shader tests
2020-09-14 00:21:40 +09:00
Hajime Hoshi
7666987b09
shader: Bug fix: a blank identifier cannot be used as values
2020-09-13 23:55:25 +09:00
Hajime Hoshi
6114c2b49d
ebiten: Add more tests of unused variables in shaders
2020-09-13 22:47:00 +09:00
Hajime Hoshi
154f86e6c1
shader: Check unused local variables
...
Fixes #1328
2020-09-13 22:36:41 +09:00
Hajime Hoshi
e543d4f107
shader: Bug fix: true/false should be available as a local variable
2020-09-13 20:38:51 +09:00
Hajime Hoshi
a5af597594
shader: Forbid assigning to special variables
2020-09-13 05:19:20 +09:00
Hajime Hoshi
5e15ebf580
ebiten: Set zero values for lacking uniform variables
...
Fixes #1338
2020-09-13 04:29:32 +09:00
Hajime Hoshi
7a06ae4530
ebiten: Add shader tests
2020-09-12 20:16:03 +09:00
Hajime Hoshi
ed4a7e1856
shader: Forbid init functions
...
Fixes #1331
2020-09-12 19:50:23 +09:00
Hajime Hoshi
de4ff71544
devicescale: Read ~/.config/cinnamon-monitors.xml on Cinnamon
...
Updates #1307
2020-09-12 19:15:11 +09:00
Hajime Hoshi
8833e46c7e
shader: Refactoring
2020-09-12 18:54:36 +09:00
Hajime Hoshi
a0db26f234
ebiten: Bug fix: Test failuer (TestShaderWrongReturn)
2020-09-12 18:36:22 +09:00
Hajime Hoshi
d001f49ad7
shader: Bug fix: Treat multiple-context at return correctly
2020-09-12 17:44:04 +09:00
Hajime Hoshi
2fb1033183
shader: Initialize output parameters explicitly
2020-09-12 00:35:14 +09:00
Hajime Hoshi
404a662383
cmd/ebitenmobile: Bug fix: an input device might be null
...
Fixes #1342
2020-09-10 14:14:59 +09:00
Hajime Hoshi
99dcb14582
shaderir/glsl: Refactoring
2020-09-10 02:11:21 +09:00
Hajime Hoshi
e1ae9bdde0
shaderir/glsl, shaderir/metal: Refactoring
2020-09-10 02:04:28 +09:00
Hajime Hoshi
337f44c916
shader: Add Metal tests
...
Fixes #1340
2020-09-10 01:19:02 +09:00
Hajime Hoshi
031f8376e9
shaderir: Refactoring
2020-09-08 03:51:29 +09:00
Hajime Hoshi
3b040e5f22
Fix test failures
2020-09-08 03:10:59 +09:00
Hajime Hoshi
1786be55f7
shader: Refactoring
2020-09-08 02:43:41 +09:00
Hajime Hoshi
0a0401e217
shader: Refactoring: Simplify calculation of LocalVarIndexOffset
2020-09-08 02:42:43 +09:00
Hajime Hoshi
41d4fc288b
shader: Reword
2020-09-08 01:40:49 +09:00
Hajime Hoshi
f61a916e4a
shaderir/glsl: Bug fix: Calculate local variable indices correctly
...
Fixes #1339
2020-09-08 00:19:07 +09:00
Hajime Hoshi
4308bbbc31
shader: Check the existence of 'return'
2020-09-06 22:33:27 +09:00
Hajime Hoshi
0830e897fc
ebiten: Add a shader test
2020-09-06 22:17:47 +09:00
Hajime Hoshi
e0b8b9945f
shader: Check returning value types and the number
2020-09-06 22:08:57 +09:00
Hajime Hoshi
36179636d1
ebiten: Add returning values for tests
2020-09-06 21:30:01 +09:00
Hajime Hoshi
850303b770
ebiten: Change the type of Uniforms to map[string]interface{}
...
Fixes #1324
2020-09-06 21:02:30 +09:00
Hajime Hoshi
52fcab7a90
graphicsdriver/metal: Fix comments
2020-09-06 16:51:44 +09:00
Hajime Hoshi
e565433fb0
graphicsdriver/metal: Bug fix: Synchronizing textures on iOS was necessary
...
Fixes #1337
2020-09-06 16:19:50 +09:00
Hajime Hoshi
20ccafce4b
uidriver/mobile: Bug fix: Freezing on Pixel 4a by force calling DoWork
...
When the two channels don't receive for a while, call DoWork forcibly to avoid
freeze.
In theory, this timeout should not be necessary. However, it looks like this
'select' statement sometimes blocks forever on some Android devices like
Pixel 4(a). Apparently workAvailable sometimes not receives even though there
are queued OpenGL functions. Call DoWork for such case as a symptomatic
treatment.
Calling DoWork without waiting for workAvailable is safe. If there are no tasks,
DoWork should return immediately.
Updates #1322
Fixes #1332
2020-09-06 14:34:12 +09:00
Hajime Hoshi
29c7b7687f
shaderir: Add Program.UniformNames
...
Updates #1324
2020-09-06 03:41:17 +09:00
Hajime Hoshi
ac30377297
graphicscommand: Bug fix: Adjusting source regions must be done before checking merging
...
Fixes #1333
2020-09-05 00:42:51 +09:00
Hajime Hoshi
68c43bb4fb
graphicsdriver/opengl: Enable to compile with gldebug tag for gomobile
2020-09-04 15:08:40 +09:00
Hajime Hoshi
760225df75
glfw: Replace the pointer size calc with bits.UintSize / 8
...
Updates #1306
2020-09-04 01:18:42 +09:00
Hajime Hoshi
ee15e06c50
glfw: Remove some suspicious codes depending on the memory layout
2020-09-04 01:10:39 +09:00
Hajime Hoshi
a3b41515a9
ui: Replace the native window's type (unsafe.Pointer) with uintptr
...
Updates #1306
2020-09-04 00:51:48 +09:00
Hajime Hoshi
55f0c983ba
shader: Bug fix: Ignore blank identifiers for the duplication check
...
Fixes #1330
2020-09-03 03:03:06 +09:00
Hajime Hoshi
4ac11bf156
shader: Bug fix: Treat number literals in function calls correctly
2020-09-03 02:45:22 +09:00
Hajime Hoshi
0b1d29b6e7
shader: Bug fix: Returning value's integer literals were wrong
2020-09-03 02:10:52 +09:00
Hajime Hoshi
f5829b2cf3
shader: Check at least one variable on left side of :=
...
Updates #1330
2020-09-03 01:15:41 +09:00
Hajime Hoshi
5f446a4c09
Update Go versions
2020-09-02 13:33:52 +09:00
Hajime Hoshi
d2cfed7558
examples/shader: Remove an unused variable
...
Updates #1328
2020-09-01 23:50:19 +09:00
Hajime Hoshi
dd7b0d81ae
ebiten: Rename shader builtin functions
...
* imageSrcTextureSourceRegion -> imageSrcTextureRegion
* image[N]TextureAt -> imageSrc[N]At
* image[N]TextureBoundsAt -> imageSrc[N]BoundsAt
Updates #1325
2020-09-01 21:31:50 +09:00
Hajime Hoshi
20a01ed328
ebiten: Error when the entrypoint is missing
...
Fixes #1323
2020-09-01 00:37:16 +09:00
Hajime Hoshi
557b321086
ebiten: Refactor tests
2020-09-01 00:28:24 +09:00
Hajime Hoshi
8336cb6007
uidriver/mobile: Refactoring
2020-08-31 23:28:00 +09:00
Hajime Hoshi
f332fa61c1
uidriver/mobile: Refactoring
2020-08-31 01:01:36 +09:00