Hajime Hoshi
|
80ac0646d5
|
internal/graphicsdriver/metal: Optimize the screen writing
|
2021-07-07 02:07:09 +09:00 |
|
Hajime Hoshi
|
38ce325958
|
internal/graphicsdriver/metal: Skip clearing the screen on Metal
|
2021-07-07 01:45:51 +09:00 |
|
Hajime Hoshi
|
9cb1ff9cea
|
internal/graphicsdriver/metal: Set framebufferOnly true
Updates #1196
|
2021-07-07 00:38:55 +09:00 |
|
Hajime Hoshi
|
bd3f16dbba
|
internal/graphicsdriver/metal: Change the order of GCed buffers
As a big buffer is likely reused, we should remove smaller buffers
first.
Updates #1196
|
2021-07-06 21:56:27 +09:00 |
|
Hajime Hoshi
|
09bd8b6f4a
|
internal/graphicsdriver/metal: Remove println
Updates #1196
|
2021-07-06 21:51:57 +09:00 |
|
Hajime Hoshi
|
ee2f891fcc
|
internal/graphicsdriver/metal: Reuse MTLBuffer objects
In Metal, MTLBuffer objects are not 'transient' and are expensive
to create. Reuse them whenever possible.
See also: https://developer.apple.com/library/archive/documentation/Miscellaneous/Conceptual/MetalProgrammingGuide/Cmd-Submiss/Cmd-Submiss.html
Updates #1196
|
2021-07-06 21:48:54 +09:00 |
|
Hajime Hoshi
|
be1a0e90e7
|
internal/graphicsdriver/metal: Bug fix: TestImageEvenOdd failed
RenderCommandEncoder must be reset whenever the stencil mode is
'prepareStencil' in order to clear the stencil buffer.
|
2021-07-06 15:11:23 +09:00 |
|
Hajime Hoshi
|
3670b7dd62
|
internal/graphicsdriver/metal: Reuse DepthStencilState objects
In Metal, *State objects are not 'transient' and are expensive to
create. Reuse them whenever possible.
See also: https://developer.apple.com/library/archive/documentation/Miscellaneous/Conceptual/MetalProgrammingGuide/Cmd-Submiss/Cmd-Submiss.html
|
2021-07-06 15:10:05 +09:00 |
|
Hajime Hoshi
|
ab26312108
|
internal/graphicsdriver/metal: Release objects appropriately
|
2021-07-06 14:20:19 +09:00 |
|
Hajime Hoshi
|
17d8cb5311
|
internal/graphicsdriver/metal: Bug fix: Crashed with METAL_DEVICE_WRAPPER_TYPE=1
Closes #1697
|
2021-07-06 14:06:06 +09:00 |
|
Hajime Hoshi
|
674802d2f5
|
ebiten: Bug fix: Draw commands with EvenOdd should not be merged
Updates #1684
|
2021-07-05 18:08:55 +09:00 |
|
Hajime Hoshi
|
daa883d799
|
ebiten: Bug fix: Stencil buffers should not be cleared until all the vertices are rendered
Updates #1684
|
2021-07-05 17:41:06 +09:00 |
|
Hajime Hoshi
|
b466a0cbd7
|
ebiten: Add EvenOdd to DrawTrianglesOptions and DrawShaderTrianglesOptions
Updates #844
Closes #1684
|
2021-07-05 03:35:55 +09:00 |
|
Hajime Hoshi
|
19f034e818
|
internal/graphicsdriver/metal: Refactoring
|
2021-07-04 20:35:56 +09:00 |
|
Hajime Hoshi
|
3ec02f767b
|
internal/graphicsdriver/metal: Refactoring
|
2021-07-04 18:37:14 +09:00 |
|
Hajime Hoshi
|
7f86761dde
|
internal/graphicsdriver/metal: Reuse RenderCommandEncoder when possible
|
2021-07-04 18:13:18 +09:00 |
|
Hajime Hoshi
|
7668052a6b
|
internal/graphicsdriver/metal: Update the view only when necessary
|
2021-07-04 17:24:39 +09:00 |
|
Hajime Hoshi
|
6b95dd0d4d
|
internal/graphicsdriver/metal: Refactoring: Unify two drawTriangles* functions
|
2021-07-02 00:25:43 +09:00 |
|
Hajime Hoshi
|
e9b6237f61
|
internal/driver: Refactoring: Merge two Draw* functions
|
2021-07-01 15:55:48 +09:00 |
|
Hajime Hoshi
|
b9d52c0267
|
internal/driver: Change InvalidImageID/InvalidShaderID to 0
|
2021-07-01 14:58:55 +09:00 |
|
Hajime Hoshi
|
73bf1f36e5
|
internal/driver: Define InvalidImageID / InvalidShaderID
|
2021-07-01 13:56:42 +09:00 |
|
Hajime Hoshi
|
b54ad73a2b
|
Add go:build comments with go1.17beta1 fmt
|
2021-06-11 01:11:46 +09:00 |
|
Hajime Hoshi
|
77b198211c
|
internal/graphicsdriver/metal: Add a comment
|
2021-02-27 04:04:25 +09:00 |
|
Hajime Hoshi
|
53352cf2b3
|
internal/graphicsdriver/metal: Use the smallest temporary texture
Updates #1517
|
2021-02-27 03:45:19 +09:00 |
|
Hajime Hoshi
|
673627c4d4
|
internal/graphicsdriver/metal: Optimization
|
2021-02-27 02:30:20 +09:00 |
|
Hajime Hoshi
|
6b3c51921c
|
internal/driver: Remove Image.Sync
Syncing is no longer needed for Metal, and additionally, OpenGL's sync
implementation was mock.
Updates #1508
|
2021-02-26 23:16:28 +09:00 |
|
Hajime Hoshi
|
718273c2d7
|
ebiten: Add a new shader function imageDstRegionOnTexture
Updates #1428
|
2020-12-09 11:36:29 +09:00 |
|
Hajime Hoshi
|
ddfb8adbc4
|
graphicsdriver/metal: Asynchronous sending pixels
Fixes #1418
|
2020-11-10 22:48:03 +09:00 |
|
Hajime Hoshi
|
5705dc79fb
|
graphicsdriver/metal: Do not need to wait until flushing at Sync
|
2020-11-10 22:12:26 +09:00 |
|
Hajime Hoshi
|
ed028110cf
|
ebiten: Allow rendering on a sub-image by scissor test
Fixes #1255
|
2020-11-08 00:58:44 +09:00 |
|
Hajime Hoshi
|
a8f96ee9af
|
graphicsdriver/metal: Add Sync to sync CPU and GPU asynchronously
Fixes #1414
|
2020-11-07 04:09:47 +09:00 |
|
Hajime Hoshi
|
8da5ad2c4f
|
graphicsdriver/metal: Misspelling
|
2020-11-03 23:44:40 +09:00 |
|
Hajime Hoshi
|
eed619ad0f
|
graphicsdriver/metal, graphicsdriver/opengl: Reland: Remove the thread usages for performance
Instead, graphicscommand package has a thread.
Updates #1367
|
2020-10-13 02:46:31 +09:00 |
|
Hajime Hoshi
|
713eee1117
|
Revert "graphicsdriver/metal, graphicsdriver/opengl: Remove the thread usages for performance"
This reverts commit 2942f10d9d .
Reason: Compile error on mobiles and runtime error on browsers
|
2020-10-13 02:12:02 +09:00 |
|
Hajime Hoshi
|
2942f10d9d
|
graphicsdriver/metal, graphicsdriver/opengl: Remove the thread usages for performance
Instead, graphicscommand package has a thread.
Updates #1367
|
2020-10-13 01:50:54 +09:00 |
|
Hajime Hoshi
|
bf515bb594
|
Update version to v2.0.0-alpha
|
2020-10-04 04:30:40 +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
|
a3b41515a9
|
ui: Replace the native window's type (unsafe.Pointer) with uintptr
Updates #1306
|
2020-09-04 00:51:48 +09:00 |
|
Hajime Hoshi
|
609a3c4e22
|
ebiten: Bug fix: Fix the texel calculation
In shaders, texCoord is always in texture0's texels. Convert them
at imageNTextureAt functions correctly.
Fixes #1290
|
2020-08-11 04:15:07 +09:00 |
|
Hajime Hoshi
|
69f87d5fd1
|
ebiten: Add new shader builtin functions: image[N]TextureBoundAt
Fixes #1287
|
2020-08-11 03:24:54 +09:00 |
|
Hajime Hoshi
|
a45e241da1
|
shaderir/metal: Implement the shader IR compiler for Metal
Fixes #1165
|
2020-08-08 19:14:57 +09:00 |
|
Hajime Hoshi
|
2b89710600
|
graphicsdriver/metal: Refactoring
|
2020-08-08 18:05:58 +09:00 |
|
Hajime Hoshi
|
6dc74d308b
|
graphicsdriver/metal: Rename viewportSize to internalSize and use it more
|
2020-08-08 16:07:14 +09:00 |
|
Hajime Hoshi
|
fe1cea533a
|
graphicsdriver/metal: Add a generalized 'draw' function
This is a preparation for rendering shaders.
Updates #1165
|
2020-08-08 03:12:44 +09:00 |
|
Hajime Hoshi
|
eb056690aa
|
graphicsdriver/metal: Update the minimum macOS version to 10.12 for Go 1.15
|
2020-07-25 04:18:26 +09:00 |
|
Hajime Hoshi
|
36e9803cea
|
shader: Enable to get pixels from multiple images
Updates #1193
|
2020-07-19 02:33:43 +09:00 |
|
Hajime Hoshi
|
6ccb614b08
|
graphicsdriver/metal: Implement CompositeModeMultiply
Updates #410
|
2020-07-18 21:51:57 +09:00 |
|
Hajime Hoshi
|
e0d5763a60
|
shader: Use the fixed number of images for shaders
This changes uses arrays rather than slices in order to avoid heap
allocations.
Updates #1193
|
2020-07-18 18:27:47 +09:00 |
|
Hajime Hoshi
|
7f70797a6d
|
ebiten: Rename DrawTriaglesWithShaderOptions.Textures to Images
|
2020-07-15 03:49:05 +09:00 |
|