Martin Fouilleul
0c8e698b6e
[mtl canvas] don't trigger a new batch when setting the current image to nil (avoids creating a lot of batches when we just alternate between the same image and no image, eg painting multiple instances of the same image with a stroked border)
2023-07-27 16:10:30 +02:00
Martin Fouilleul
e7cce5e36f
[osx, surface] use autoresizeMask to resize surfaces to the parent window's client area
2023-07-25 17:02:11 +02:00
Martin Fouilleul
8c885223d3
[osx, canvas] revert to 16 pixel wide tiles. 32 gives some benefit for a few large paths, but degrades too much for higher segment counts
2023-07-15 17:32:18 +02:00
Martin Fouilleul
ec0f22a9d8
[osx, canvas] keep op buffer size to 4<<20 for now
2023-07-14 16:28:45 +02:00
Martin Fouilleul
025ebd91d5
[osx, canvas]
...
- Pass buffer lengths to kernels and bound check when allocating from buffers
- Dynamically compute/guess size of intermediate buffers and grow if needed
2023-07-11 20:03:17 +02:00
Martin Fouilleul
98a516ff0a
[osx, canvas] start with small input buffers and grow them as needed
2023-07-11 17:00:17 +02:00
Martin Fouilleul
fc07a0d018
[osx, canvas] use 32 pixels-wide tiles
2023-07-11 14:27:15 +02:00
Martin Fouilleul
9e8a0f5f69
[osx, canvas] Only dispatch raster shader for tiles that are overlapped by at least one path.
2023-07-10 20:20:18 +02:00
Martin Fouilleul
c75661cfc9
[io] abstract file io API, using a request/completion model ala io_uring (w/ only synchronous completion for now), and per-platform backend
2023-05-25 20:08:38 +02:00
Martin Fouilleul
02bfe587c8
[path] adding platform path functions
2023-05-24 16:27:39 +02:00
martinfouilleul
2bec7a633a
[win32] reflected changes to canvas surface interface on GL backend. But implementation still uses the (slower) Loop-Blinn + triangle fan method.
2023-05-16 18:06:22 +02:00
Martin Fouilleul
b27dc615d1
Finish separating graphics_common and graphics_surface + add platform_math, so that we can compile graphics_common to wasm in orca
2023-04-26 14:56:02 +02:00
Martin Fouilleul
ca1caf8537
splitting graphics_surface and graphics_common in order to isolate surface dispatch stuff from orca apps
2023-04-25 22:15:56 +02:00
Martin Fouilleul
346979a21a
[canvas] change surface/canvas APIs to treat canvas a 'just another kind of surface', and split canvas implementation (managed by surface) from canvas _command buffer_ and implicit context (represented by mg_canvas)
2023-04-25 19:13:15 +02:00
Martin Fouilleul
3769b70753
[wip] changing backend enum to api enum, and adding canvas api in here
2023-04-25 14:54:52 +02:00
Martin Fouilleul
794f47b141
abstracting logging for orca
2023-04-18 18:05:54 +02:00
Martin Fouilleul
86a16d3775
modifications to log system to support orca env where stdio is not defined
2023-04-18 14:33:27 +02:00
Martin Fouilleul
c347e10577
Put all dependency libraries and shaders in bin directory
2023-04-12 16:12:26 +02:00
Martin Fouilleul
f35e91a38c
[mtl renderer] fixed clipping
2023-04-11 14:51:58 +02:00
Martin Fouilleul
c6e89c1869
[wip] adding smooth live-resizing example
2023-04-11 10:50:14 +02:00
Martin Fouilleul
551d5e084e
[mtl renderer] re-introduced texturing
2023-04-09 19:24:32 +02:00
Martin Fouilleul
ee3e55dadd
[mtl renderer] fix msaa sample positions
2023-04-08 12:11:38 +02:00
Martin Fouilleul
effd8f1dd0
[mtl canvas] use same ccw test for testing against diagonal and testing against hull
2023-04-08 10:04:17 +02:00
Martin Fouilleul
65b5a4b52a
[mtl renderer] Fixed curve slicing which used matrix operation and re-parameterization, which could create gaps in path. Now use blossoms, which ensure endpoints of subcurves match
2023-04-07 17:17:55 +02:00
Martin Fouilleul
d1fab449bc
[mtl canvas] Fixed loop implicit matrix
2023-04-07 10:15:37 +02:00
Martin Fouilleul
c4e866d9d4
[mtl canvas] Fix shader contents scaling
2023-04-05 10:31:50 +02:00
Martin Fouilleul
4c4f27066b
[mtl renderer] re-introduced end caps
2023-04-05 10:25:48 +02:00
Martin Fouilleul
53946a5710
[mtl canvas] fix end joint not generated for paths with only 2 elements
2023-04-05 09:52:12 +02:00
Martin Fouilleul
2484cdf7b3
[mtl canvas, wip] re-introducing joints
2023-04-04 20:35:48 +02:00
Martin Fouilleul
8d7fdf3b1a
[mtl canvas, wip] Fixing inclusive/exclusive bound checks during curve side tests / shortcut / rasterization
2023-04-04 19:02:53 +02:00
Martin Fouilleul
9322db8201
[mtl canvas, wip] cubic bézier implicitization
2023-04-01 19:46:35 +02:00
Martin Fouilleul
93998852bb
[mtl canvas, wip] Re-introducing quadratics implicitization
2023-03-30 15:58:46 +02:00
Martin Fouilleul
eee158ff85
[mtl canvas] tmp fix of clear color (revisit one we re-introduce texturing)
2023-03-29 16:30:16 +02:00
Martin Fouilleul
8af4e4eddc
[mtl canvas, wip] Collate queues in a per-tile op list and prune occluded shapes
2023-03-29 16:21:28 +02:00
Martin Fouilleul
a6c53649bd
[mtl canvas, wip] implemented backprop
2023-03-29 14:27:05 +02:00
Martin Fouilleul
c4415aaeea
[mtl canvas, wip] binning segments to tile queues
2023-03-28 17:58:23 +02:00
Martin Fouilleul
c71bc5be98
[mtl canvas] segment setup pass
2023-03-28 15:10:05 +02:00
Martin Fouilleul
f6a992e5f4
[mtl canvas] very first draft of new canvas backend based on edge-counting instead of triangle overlap
2023-03-28 13:09:48 +02:00