Zyko
6a00b8680a
Merge with main - fixed conflicts
2024-06-09 17:35:03 +02:00
Zyko
c180c3c9d1
Little tweak to dx12
2024-06-09 17:16:28 +02:00
Hajime Hoshi
e5d10c47e7
internal/graphicsdriver: reland: rename FillRule constants
...
Updates #3006
2024-06-08 12:16:20 +09:00
Hajime Hoshi
6ac1270cb0
Revert "internal/graphicsdriver: rename FillRule constants"
...
This reverts commit ab4a3af1b5
.
Reason: compile error on Windows
2024-06-08 12:10:27 +09:00
Hajime Hoshi
ab4a3af1b5
internal/graphicsdriver: rename FillRule constants
...
Updates #3006
2024-06-08 11:54:46 +09:00
Hajime Hoshi
4818768965
shaderprecomp: remove ShaderSourceID
...
`ShaderSourceID` was confusing as there was no guarantee the same ID is
used for the same source if Ebitengine versions are different.
`ShaderSource` should be kept as the built-in shader contents should not
be exposed.
Updates #2861
Closes #2999
2024-05-27 00:01:05 +09:00
Hajime Hoshi
83ae577c80
Revert "shaderprecomp: remove ShaderSource
and ShaderSourceID
"
...
This reverts commit 8be3bb41d5
.
Reason: removing `ShaderSource` unexpected exposes the source.
Updates #2999
2024-05-26 22:45:12 +09:00
Hajime Hoshi
8be3bb41d5
shaderprecomp: remove ShaderSource
and ShaderSourceID
...
This change simplifies the APIs to avoid some confusions around IDs.
Updates #2861
Closes #2999
2024-05-26 22:42:52 +09:00
Hajime Hoshi
b0a4b6ebbf
internal/graphicsdriver/playstation5: update the copyright year
2024-05-19 23:01:47 +09:00
Hajime Hoshi
657e04d3d1
internal/graphicsdriver/playstation5: separate the shader part
2024-05-19 18:05:16 +09:00
Hajime Hoshi
5bb060b1e9
shaderprecomp: add pssl
2024-05-12 15:07:38 +09:00
Hajime Hoshi
b3ad97b22b
internal/graphicsdriver/metal/mtl: add comments
2024-05-06 22:07:16 +09:00
Hajime Hoshi
f0ca3f1870
internal/graphicsdriver/metal/mtl: follow ObjC convention
...
Closes #2981
2024-05-06 21:51:57 +09:00
Hajime Hoshi
2261cf76de
internal/graphicsdriver/metal/ca: follow ObjC convention
...
Updates #2981
2024-05-06 19:36:17 +09:00
Hajime Hoshi
10d9660125
shaderprecomp: implement for Windows
...
Closes #2861
2024-05-06 16:03:57 +09:00
Hajime Hoshi
5d4a68b0ea
internal/shaderir/hlsl: refactoring: separate calculation uniform offsets
2024-05-05 20:47:35 +09:00
Hajime Hoshi
a41af4528b
internal/graphicsdriver/directx: refactoring
2024-05-05 18:58:13 +09:00
Hajime Hoshi
caab1ee29f
internal/graphicsdriver/metal: refactoring
2024-05-05 17:18:06 +09:00
Hajime Hoshi
c46f62e184
all: add a new package shaderprecomp
...
The current implementation is only for macOS so far.
Updates #2861
2024-05-05 03:51:04 +09:00
Hajime Hoshi
ca9a80600d
internal/graphicsdriver/metal: release MTLLibrary
2024-05-04 19:26:12 +09:00
Hajime Hoshi
59fb259181
internal/graphicsdriver/gl: use PureGo for Linux and UNIX
...
Updates #2284
2024-04-29 21:25:15 +09:00
Zyko
ec592390e7
nth attempt at fixing directx 12
2024-04-14 18:39:01 +02:00
Zyko
9881530b46
Attempt at fixing Directx 12
2024-04-14 11:19:10 +02:00
Hajime Hoshi
4647e9de53
internal/glfw, internal/gamepad: update GLFW to v3.3.9
...
Updates #2960
2024-04-14 01:14:22 +09:00
Zyko
dc6074bec9
Fixed stencil tests for directx
2024-04-13 14:23:17 +02:00
Zyko
dbe06ec468
Add a test when a single image is used with DrawMRT
2024-04-13 14:04:39 +02:00
Zyko
d706d38ada
Add test with empty locations + fix directx 11 && 12 nil first argument
2024-04-13 13:56:13 +02:00
Zyko
7dd4aa9150
Directx 12 mrt working - 1st iteration
2024-04-13 01:11:48 +02:00
Zyko
15ccaf1998
Fixed ps5 src argument constant name
2024-04-10 22:06:56 +02:00
Zyko
15b5c888ca
Fixed DrawTriangles for ps5
2024-04-10 22:00:37 +02:00
Zyko
8c0bc0a2e0
Implement the correct DrawTriangles definition on metal
2024-04-10 21:55:00 +02:00
Zyko
ced0c62827
go vet error check
2024-04-10 21:11:32 +02:00
Zyko
6a8c00e0aa
Fixed opengl tests
2024-04-10 21:08:03 +02:00
Zyko
92a257a557
directx: Better logic to assume MRT
2024-04-10 20:17:20 +02:00
Zyko
65646df8ed
Temporary fix for directx11
2024-04-10 20:12:10 +02:00
Zyko
c73221ac16
Merge upstream - fixed conflicts
2024-04-10 19:15:34 +02:00
Zyko
1b3bfda17b
Fixed empty target for directx11
2024-04-10 19:10:21 +02:00
Zyko
c9eb30d66f
Fixed magic number
2024-04-10 18:59:21 +02:00
Zyko
55f1a5d32e
(Fixed) webgl
2024-04-10 18:57:55 +02:00
Hajime Hoshi
3cf3b27729
internal/graphicsdriver/opengl: refactoring: rename variables
...
A framebuffer's width and height are unclear. Rename them to
viewportWidth and viewportHeight.
2024-04-10 23:38:25 +09:00
Zyko
c3a358b44b
Fixed missing arg on gl with CGo
2024-04-09 02:40:21 +02:00
Zyko
d1fd70495b
Revert to gl_FragData (future webgl)
2024-04-09 02:26:29 +02:00
Zyko
c7eeae7189
Cleanup
2024-04-09 01:00:26 +02:00
Hajime Hoshi
9c070eb2f3
Revert "internal/graphicsdriver/gl: use PureGo for Linux and UNIX"
...
This reverts commit 5701206229
.
Reason: error on Android:
```
/Users/runner/go/pkg/mod/github.com/ebitengine/purego@v0.8.0-alpha.0.20240404024320-d0aedd0f4393/func.go:301:4: too few values in struct literal of type syscall15Args
```
https://github.com/hajimehoshi/ebiten/actions/runs/8582651053/job/23521003819
2024-04-07 03:00:13 +09:00
Hajime Hoshi
5701206229
internal/graphicsdriver/gl: use PureGo for Linux and UNIX
...
Updates #2284
2024-04-07 02:08:40 +09:00
Zyko
577664c1cb
Dirty directx11
2024-04-06 14:54:32 +02:00
Zyko
c247da0f05
Remove useless debug + setviewport only once
2024-04-06 11:40:12 +02:00
Zyko
32b5e3edd8
Saving
2024-04-05 20:39:14 +02:00
Hajime Hoshi
caecd81f4e
Revert "internal/graphicsdriver/directx: add 'tearing' for EBITENGINE_DIRECTX"
...
This reverts commit b6252a41f2
.
Reason: We need more investigation about tearing and vsync=off
Updates #2858
2024-03-30 20:08:06 +09:00
Hajime Hoshi
b6252a41f2
internal/graphicsdriver/directx: add 'tearing' for EBITENGINE_DIRECTX
...
Now tearing happens only when 'tearing' is specified and vsync is off.
Closes #2858
2024-03-23 17:53:13 +09:00