aoyako
359e7b8597
remove comment
2024-03-02 15:41:30 +09:00
aoyako
d1b9216ee1
update tests for right shift
2024-03-02 15:40:38 +09:00
aoyako
f02e9fd4d0
add shift type checks
2024-03-02 15:32:31 +09:00
aoyako
f44640778d
add basic checks
2024-02-28 20:27:26 +09:00
aoyako
66a4b20bda
remove return type for deduced int
2024-02-27 19:39:14 +09:00
aoyako
7f9d997175
add return type for type resolving
2024-02-27 19:29:39 +09:00
aoyako
c90d02f8d4
add: float->int cast tests
2024-02-26 21:06:28 +09:00
aoyako
2b7d20e7da
fix: remove unnecessary branch
2024-02-26 18:17:41 +09:00
aoyako
d69bb04a56
add support for shift + assign
2024-02-26 18:00:52 +09:00
aoyako
5f61cf00e5
extend tests with right-shift op
2024-02-26 17:03:19 +09:00
aoyako
7f01f98200
add tests for binop shift
2024-02-26 17:02:02 +09:00
aoyako
fe887e2565
add typechecks for bitshifts ops
2024-02-26 16:14:55 +09:00
Hajime Hoshi
cc3db584f2
internal/shader: allow integer types for clamp
...
Closes #2788
2024-02-25 21:21:27 +09:00
Hajime Hoshi
4b9508c523
internal/shader: bug fix: wrong type checks on min/max
...
Updates #2788
2024-02-25 21:17:54 +09:00
Hajime Hoshi
e8cdf885c0
internal/shader: allow integer types for min and max
...
Updates #2788
2024-02-25 20:18:19 +09:00
Hajime Hoshi
face5fd870
internal/shader: allow integer types for abs and sign
...
Updates #2788
2024-02-25 18:16:44 +09:00
Mykhailo Lohachov
012fe52b6f
internal/atlas: use bit manipulation for function power of 2 -like functions ( #2915 )
...
Closes #2914
2024-02-25 02:06:52 +09:00
Hajime Hoshi
64cb6cf8a9
internal/atlas: reduce test flakiness
2024-02-24 23:03:12 +09:00
Hajime Hoshi
732eedf2e0
all: use github.com/ebitengine/gomobile instead of golang.org/x/mobile
...
Closes #2748
Closes #2899
2024-02-24 22:07:27 +09:00
Hajime Hoshi
40f3cbe1e3
internal/ui: bug fix: DeviceScaleFactor should be initialized asap on Android
...
Closes #2913
2024-02-24 19:48:20 +09:00
Hajime Hoshi
df68cbfc5b
internal/gamepaddb: update the database
2024-02-21 20:36:46 +09:00
TotallyGamerJet
e6a17e58c9
internal/glfw: rewrite cocoa_time_darwin.c and posix_thread_unix.c into Go-ish ( #2912 )
...
Updates #1162
2024-02-20 22:37:13 +09:00
Hajime Hoshi
24256af624
internal/atlas: bug fix: test flakiness due to GC
2024-02-15 03:00:49 +09:00
Hajime Hoshi
820c996329
internal/shader: bug fix: wrong lhs in an assignment
...
Closes #2910
2024-02-15 02:29:21 +09:00
Hajime Hoshi
6d898d752e
ebiten: add (*Monitor).DeviceScaleFactor()
...
This replaces ebiten.DeviceScaleFactor().
Updates #2795
2024-02-12 17:09:03 +09:00
Hajime Hoshi
67d947d37a
internal/ui: remove Bounds
2024-02-12 15:24:00 +09:00
Hajime Hoshi
fca8ebb9af
internal/shader: bug fix: non-name on the left side of :=
...
Closes #2891
2024-02-11 21:21:16 +09:00
Hajime Hoshi
75103f39dd
internal/shader: bug fix: error on a function name in a function call
...
Updates #2891
2024-02-11 21:09:49 +09:00
Hajime Hoshi
60725eba86
ebiten: add RunGameOptions.X11ClassName and X11InstanceName
...
Closes #2904
2024-02-11 19:31:29 +09:00
Hajime Hoshi
0adc1ad681
internal/ui: make virtual keyboard keys work at least on Android
...
Updates #2898
2024-02-03 21:11:54 +09:00
Hajime Hoshi
7dd22fdc61
internal/ui: refactoring: rename uiKeyToJSKey to uiKeyToJSCode
2024-02-03 15:13:12 +09:00
Hajime Hoshi
872ffc148d
internal/atlas: add TestGCShader
...
Updates #2897
2024-01-29 23:14:33 +09:00
Hajime Hoshi
f74d66e89a
internal/atlas: bug fix: fix GC tests
...
Updates #2897
2024-01-29 21:01:58 +09:00
Hajime Hoshi
d2a9e5b1e8
internal/atlas: bug fix: fix tests
...
Updates #2897
2024-01-29 20:52:43 +09:00
Hajime Hoshi
f37ebe549b
internal/atlas: bug fix: fix tests
...
Updates #2897
2024-01-29 20:52:02 +09:00
Hajime Hoshi
9a8dde6503
internal/atlas: bug fix: a finalizer was never called
...
As the finalizer function had a reference to the target image, the
image's reference count never became 0. Then, the image was never
finalized.
This change fixes this issue by using a member function pointer instead
of an anonymous function.
Closes #2897
2024-01-29 20:39:44 +09:00
Hajime Hoshi
6736bb56ec
internal/ui: make a separate package to hide a console
...
Updates #2896
2024-01-28 22:42:58 +09:00
Hajime Hoshi
373e61d054
internal/ui: call hideConsole at init
2024-01-28 22:05:47 +09:00
Hajime Hoshi
11394d246f
internal/ui: bug fix: check the error of TimeBeginPeriod
2024-01-28 14:25:17 +09:00
Hajime Hoshi
7e4cdf5211
internal/ui: use a more precise timer for Windows
...
When SetScreenClearedEveryFalse(false) and SetVsyncEnabled(false),
Draw might not be called as often as expected on Windows due to its
timer precision. This change improves the situation.
Updates #2889
2024-01-28 14:15:20 +09:00
Hajime Hoshi
770fcff4c2
internal/graphicsdriver/directx: bug fix: Go 1.22 + 32bit Windows + DirectX 12 didn't work well
...
Apparently, a pseudo padding was needed for D3D12_RESOURCE_DESC,
but this is still mysterious.
This change also add Go 1.22 to the GitHub Actions.
Closes #2867
2024-01-27 18:06:53 +09:00
Pedro Tiple
6fafe734da
internal/graphicscommand: refactoring: remove a hard-coded part for ShaderImageCount ( #2895 )
...
This change allows increasing ShaderImageCount without breaking the image display.
Simply made the uniform processing dynamic based on ShaderImageCount.
2024-01-26 13:03:04 +09:00
Hajime Hoshi
8551cd350f
internal/ui: bug fix: need to sleep when swapping buffers is skipped
...
Closes #2890
2024-01-24 12:20:30 +09:00
Hajime Hoshi
006f14ac19
internal/graphicsdriver/playstation5: bug fix: link error
2024-01-22 00:14:00 +09:00
Hajime Hoshi
52e0f10ff7
internal/graphicsdriver/playstation5: bug fix: compile error
2024-01-22 00:05:02 +09:00
Hajime Hoshi
f0509096f8
internal/graphicsdriver/playstation5: add ebitengine_IsErrorNil
2024-01-21 23:54:02 +09:00
Hajime Hoshi
e0ccd013ac
internal/graphicsdriver/directx: bug fix: depth should be passed by math.Float32bits
...
As depth was always 0, there was not an actual problem.
2024-01-21 21:43:09 +09:00
Hajime Hoshi
5887142da7
internal/grpahicsdriver/metal/mtl: use 3 drawings for fullscreen
...
Hajime found that renderings were delayed with 2 drawing in fullscreen
though FPS might be lowered. This is mysterious but there is no other
good solution.
Updates #2883
2024-01-19 18:29:47 +09:00
Hajime Hoshi
f27402ee44
internal/mipmap: use a better image size
...
Unnecessarily big images were used since 4 years go
(f8956941b7
). Use a better small image
for mipmaps.
2024-01-18 16:10:15 +09:00
Hajime Hoshi
e39c50c296
internal/graphicsdriver/metal: add comments
...
Updates #2880
Updates #2883
2024-01-17 20:51:32 +09:00