Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/gioui/gio
Mirror of the Gio main repository (https://git.sr.ht/~eliasnaur/gio)
https://github.com/gioui/gio
Somehow, the explicit include and library directories needed for OpenBSD
are required for FreeBS...
Setting the window size while in fulscreen mode does not make sense.
Fixes gio#220
Signed-off-...
e92ca233f5b1175be8fd2369da763cb933f82e35 authored over 3 years ago by Pierre Curto <[email protected]>Signed-off-by: Elias Naur <[email protected]>
173f14be78d2386ff92cb47448b9f278e99533da authored over 3 years ago by Elias Naur <[email protected]>Fixes gio#252
Signed-off-by: Pierre Curto <[email protected]>
2f66ed1dc80e71f76b0c1aa9905feac1f8735701 authored over 3 years ago by Pierre Curto <[email protected]>
The _NET_WM_STATE protocol description[0] states that to change the
window mode for an X11,
"To...
c5d4e01e3d8fb5962be154ef098ac5fcb915ff78 authored over 3 years ago by Elias Naur <[email protected]>Signed-off-by: Pierre Curto <[email protected]>
b3751dd9ab8df9b052c6fad1f0c36a18fafcac73 authored over 3 years ago by Pierre Curto <[email protected]>Signed-off-by: Elias Naur <[email protected]>
f3f4bacb1c87814530f67d6d37ca644e4890703a authored over 3 years ago by Elias Naur <[email protected]>A Window configuration with its current option values can now be fetched during a FrameEvent.
T...
bdc2f3f4e860cacace7937a13233d6377507c0a4 authored over 3 years ago by Pierre Curto <[email protected]>Fixes #264
Signed-off-by: Pierre Curto <[email protected]>
30663a71c5a8c846af35048f3497e812a2810d23 authored over 3 years ago by Pierre Curto <[email protected]>Signed-off-by: Walter Werner SCHNEIDER <[email protected]>
0403b1ff8e49adc09d2d7bd3aaf91f3c21e568e9 authored over 3 years ago by Walter Werner SCHNEIDER <[email protected]>
Now that Window.driverDefer can be run in any context, the special case
of setting the animation...
Fixes gio#259
Signed-off-by: Elias Naur <[email protected]>
bde046de549651a921ffcc5e39cf884db2e2839a authored over 3 years ago by Elias Naur <[email protected]>
Driver methods are invoked during event processing, but some of them may
generate events that wo...
Window.driverRun is designed to run functions on the driver event
goroutine, to avoid race condi...
Signed-off-by: Walter Werner SCHNEIDER <[email protected]>
49a7b2e6f444bc606385207a4eee2c4b6fae7317 authored over 3 years ago by Walter Werner SCHNEIDER <[email protected]>
Since onFrameCallback runs on the app UI thread, using plain
invalidate() can be used instead of...
This makes gogio builds work for android on darwin/arm64.
Signed-off-by: Felix Lange <fjl@twurs...
0a4de4f88c3f11196cf9976c2d4f269d1502bbdc authored over 3 years ago by Felix Lange <[email protected]>
Some window configurations lead to WM_SIZE messages when changed, which
leads to deadlock becaus...
Signed-off-by: Walter Werner SCHNEIDER <[email protected]>
a5625031a47c5b716dc8722c45727b6920e5db27 authored over 3 years ago by Walter Werner SCHNEIDER <[email protected]>Signed-off-by: Walter Werner SCHNEIDER <[email protected]>
86b685abe5e2aea54b5486b25b4d700e53b4a3e1 authored over 3 years ago by Walter Werner SCHNEIDER <[email protected]>Signed-off-by: Walter Werner SCHNEIDER <[email protected]>
1350b495c81bb47bca730b83954ecefba6f7b36f authored over 3 years ago by Walter Werner SCHNEIDER <[email protected]>Signed-off-by: Walter Werner SCHNEIDER <[email protected]>
8701c253c3753ed5fef38d076a3888a663a8b629 authored over 3 years ago by Walter Werner SCHNEIDER <[email protected]>Signed-off-by: Walter Werner SCHNEIDER <[email protected]>
423c8f22ef5ad5c83a9caed5a3c27573cdfa1faa authored over 3 years ago by Walter Werner SCHNEIDER <[email protected]>The old one no longer works.
Signed-off-by: Elias Naur <[email protected]>
671f0b18582b7172ae9ab289a82a6c5b1dd5cbbe authored over 3 years ago by Elias Naur <[email protected]>
While here, add new-style //go:build constraints to generated wayland
glue files.
Signed-off-by...
12aa9defe70059e99f7d1948e33f56104e2827d8 authored over 3 years ago by Elias Naur <[email protected]>It works for me locally, but not on the builds.sr.ht builder.
Signed-off-by: Elias Naur <mail@e...
9823e040ded24c24229947cf0146ec6b930b284b authored over 3 years ago by Elias Naur <[email protected]>
Before this change, the renderLoop type implemented a rendering
goroutine for rendering off the ...
Signed-off-by: Elias Naur <[email protected]>
b86928ceecf6800069cfd5a92e5b6f2216367fe5 authored over 3 years ago by Elias Naur <[email protected]>
The Android emulator creates a broken EGL surface if it is not created
on the same thread as the...
The Android system can in some cases replace the GioView of our Android
Activity before destroyi...
The support files for Android and iOS has moved from package
app/internal/wm to package app.
Si...
ba421fb58307722c5e2a552fa59c176585596aad authored over 3 years ago by Elias Naur <[email protected]>
The app and app/internal/wm packages are tightly coupled, requiring
quite a bit of forwarding ty...
Signed-off-by: Elias Naur <[email protected]>
fe523571410e13442e9de448f47bf6e793605dee authored over 3 years ago by Elias Naur <[email protected]>Those variables didn't make it clear that they were Options.
Signed-off-by: Pierre Curto <pierr...
8aac73458acf1f5a1ab9288ced06e464eed05d44 authored over 3 years ago by Pierre Curto <[email protected]>Signed-off-by: Pierre Curto <[email protected]>
4c2087d3758b346d91589f8035648fb9723f4bd2 authored over 3 years ago by Pierre Curto <[email protected]>
This change implements support for compute programs in the Direct3D 11
driver. The compute rende...
Signed-off-by: Elias Naur <[email protected]>
e841288b88b0fa3062ef509c5a27c11046b8631a authored over 3 years ago by Elias Naur <[email protected]>Signed-off-by: Elias Naur <[email protected]>
d724f61d06930107d13ea722e86ea59c4479a428 authored over 3 years ago by Elias Naur <[email protected]>Signed-off-by: Elias Naur <[email protected]>
32a4885c006dbf594c795cf782e10ddec450fb7f authored over 3 years ago by Elias Naur <[email protected]>The atlas allocations contains enough information to replace regions.
Signed-off-by: Elias Naur...
6818af93907077c1f6a1b78a48d744239019f058 authored over 3 years ago by Elias Naur <[email protected]>
It saves a roundtrip to scratch memory when the CPU fallback renderer
downloads rendered materia...
This change extends the atlas allocation machinery to images and
materials.
Updates gio#219
Si...
06ffa42d164d38900a8293337ed67e58057c79d1 authored over 3 years ago by Elias Naur <[email protected]>
Before this change, transformed images would take up as much atlas
texture space to fit them. Ho...
A follow-up change will cause some transformed images to render outside
their allocated atlas bo...
This change allows atlas packer clients to start with large maximum
atlas dimensions, then shrin...
Previously, the packer optimized for the smalles space where the image
fits. Empirically, smalle...
Signed-off-by: Elias Naur <[email protected]>
1d7ed55c2954b1655865d3aec2db368d0452097b authored over 3 years ago by Elias Naur <[email protected]>
window.Wakeup assumes the window.w field is never reset to nil. Avoid
doing that in gio_onClose....
On my Fedora Intel GPU, issuing a glBufferSubData immediately after a
glBufferData with no data ...
Change 44adf0176812f8fa2fc3899ded59c5b745142fc4 ugpraded
gioui.org/shader for the OpenGL ES 2.0 ...
There's no meaningful reason to have them separate. The intention was to
enable rendering concur...
Signed-off-by: Elias Naur <[email protected]>
7acc031ccf0273b8ee9e4e7122e2962ab7e585c9 authored over 3 years ago by Elias Naur <[email protected]>
One staging buffer is enough because BeginFrame waits for the completion
of the staging operatoi...
The Metal backend is particularly sensitive because its staging buffers
are synchronized to Begi...
Signed-off-by: Elias Naur <[email protected]>
43a7030f6e0b798702df4528f141046391a45f89 authored over 3 years ago by Elias Naur <[email protected]>
We shouldn't need more than 2 drawables, but changing the count from the
default of 3 introduces...
Invalidate is no longer part of the driver contract.
Signed-off-by: Elias Naur <mail@eliasnaur....
0d009bd5344e3b4fe7d6b0e648e27cfb30a7eba5 authored over 3 years ago by Elias Naur <[email protected]>
Changes to the gioui.org/shader module are generally breaking changes,
which means that a partic...
Signed-off-by: Elias Naur <[email protected]>
64ccb1c06db399d45ee6ef03399c75e2a382c0e5 authored over 3 years ago by Elias Naur <[email protected]>
There is no clear benefit and the rounding tends to waste texture
memory.
Signed-off-by: Elias ...
86e474688bf2db5f08435f805da0a607aa0563dd authored over 3 years ago by Elias Naur <[email protected]>Found by Dan Kortschak.
Signed-off-by: Elias Naur <[email protected]>
6ee8a1cb7cb05a31f2bff8549bc5bab54c83be83 authored over 3 years ago by Elias Naur <[email protected]>
OpenGL ES 2.0 doesn't support glBlitFramebuffer, but does support
glCopyTexSubImage2D. Fortunate...
Pulls in a compatiblity fix for OpenGL ES 2.0 devices.
Signed-off-by: Elias Naur <mail@eliasnau...
44adf0176812f8fa2fc3899ded59c5b745142fc4 authored over 3 years ago by Elias Naur <[email protected]>It was moved to gioui.org/shader by mistake.
Signed-off-by: Elias Naur <[email protected]>
d38c78d7ac0fb4cbf43e72bb1f47df091f43f0a9 authored over 3 years ago by Elias Naur <[email protected]>
Modern API such as Metal and Vulkan want clients to compile expensive
state changes into pipelin...
The Metal (and presumably the D3D11) backend doesn't support transformed
framebuffer blits. The ...
Metal has texture write usage flags for read and write.
Signed-off-by: Elias Naur <mail@eliasna...
a7f08eedf36fa8f6e78a701f90a2df7a5a49596c authored over 3 years ago by Elias Naur <[email protected]>Metal needs the vertex stride at pipeline creation.
Signed-off-by: Elias Naur <[email protected]>
58cc817e5fb8e65e81303754acdbf97510a2fcd5 authored over 3 years ago by Elias Naur <[email protected]>
In Metal, clearing a framebuffer is most efficiently done during bind.
Modify our driver accordi...
Signed-off-by: Elias Naur <[email protected]>
13b93b27d87ab76aebdbff7bffabd7fa9df82d59 authored over 3 years ago by Elias Naur <[email protected]>
The OpenGL (ES) implementations on Apple platforms are deprecated and
don't support GPU compute ...
The Go 1.17 runtime crashes on iOS 9 because clock_gettime is missing.
iOS 10 introduced clock_g...
Signed-off-by: Chris Waldon <[email protected]>
ae3103e180777518c875bb76fd1176714825dd2c authored over 3 years ago by Chris Waldon <[email protected]>
The opengl example has a screenshot functionality that renders to a
non-sRGB texture, whereas wi...
Avoids panics when freeing cpu resources on unsupported platforms.
Signed-off-by: Elias Naur <m...
3773daf155b49be32911a40dd0a6da710e85666b authored over 3 years ago by Elias Naur <[email protected]>Signed-off-by: Elias Naur <[email protected]>
8140e39c2087b33ca3317211d7a24494be752064 authored over 3 years ago by Elias Naur <[email protected]>Fixes the opengl example on macOS.
Signed-off-by: Elias Naur <[email protected]>
c7ea90c4e213161d991a450f19f9791652230241 authored over 3 years ago by Elias Naur <[email protected]>
GPU.Frame now takes an explicit RenderTarget and it is no longer
necessary to bind the target.
...
6b537f0d4e8dcb77f5f2e31aef8f1e7eae61047f authored over 3 years ago by Elias Naur <[email protected]>
Metal is available from iOS 8 on devices, yet from version 13 on the
simulator.
Signed-off-by: ...
0d1ee09a64e970816acf9070731713f45c27478e authored over 3 years ago by Elias Naur <[email protected]>Refactor only.
Signed-off-by: Elias Naur <[email protected]>
8d8bc19c2381695b40fcfac8f216eb3c26d17663 authored over 3 years ago by Elias Naur <[email protected]>
There is no longer any shared code between OpenGL backends (unlike
EGL backends).
Signed-off-by...
6c3711d95a0ee408056881ad60b321aebe4cbdea authored over 3 years ago by Elias Naur <[email protected]>
The affected code paths are guaranteed to be run on the main thread by
the app.Window callers.
...
71f834d26f6b6cf6372df8fb2850726c38f392bf authored over 3 years ago by Elias Naur <[email protected]>Signed-off-by: Elias Naur <[email protected]>
71c5a134d700c3ea449f20237916095e899834d0 authored over 3 years ago by Elias Naur <[email protected]>
Instead of handing the internal/wm driver a method to run code on the
(blocked) main thread, jus...
Signed-off-by: Elias Naur <[email protected]>
811e2b53e0f11581e5860e6b71864a5372478c3c authored over 3 years ago by Elias Naur <[email protected]>The unprefixed library names are for development, and Android.
Signed-off-by: Elias Naur <mail@...
c49fe63d56768eb94e78e9c3c588302e02414fad authored over 3 years ago by Elias Naur <[email protected]>Static C functions don't pollute the global namespace.
Signed-off-by: Elias Naur <mail@eliasnau...
06556986c5c2a6c70854403342f9c9c43def4178 authored over 3 years ago by Elias Naur <[email protected]>Signed-off-by: Elias Naur <[email protected]>
6aee54323433bc3e9eee56e9d8284de0a9a37e4a authored over 3 years ago by Elias Naur <[email protected]>It is no longer needed by any rendering backend.
Signed-off-by: Elias Naur <[email protected]>
18b444239379939d0ab1b6b8662433b407f0c653 authored over 3 years ago by Elias Naur <[email protected]>
The only reason for separate files is Objective-C callbacks into Go,
or when the Go side is comm...
The default renderer tracks opaque rectangle draw operations and render
them front-to-back with ...
Both the OpenGL and the Direct3D API are stateful and gpu.GPU renders to
the render target curre...
Signed-off-by: Elias Naur <[email protected]>
4dd6a5067036cb1d2e215c270f43cee7c7591cd7 authored over 3 years ago by Elias Naur <[email protected]>
While here, make context Refresh useful and remove the redundant
MakeCurrent from the window loo...
Signed-off-by: Petr Karmashev <[email protected]>
1efe68c1540bf6b95dfdea62a00bcb2bde1a4a9c authored over 3 years ago by Petr Karmashev <[email protected]>
This change avoids the hard dependency on GPU support for sRGB encoded
textures in the compute r...
The SRGBFBO emulates a framebuffer in the sRGB colorspace. However, some
low-end devices may not...
No functional changes; a follow-up will implement graceful fallback in
the compute renderer.
Si...
970fadf852069f6ee2883e7166802101d50cbc29 authored over 3 years ago by Elias Naur <[email protected]>Refactor in preparation for relaxing sRGB format requirements.
Signed-off-by: Elias Naur <mail@...
68fa64dfd5dadc529de3b8dcf915f03acdd4ecff authored over 3 years ago by Elias Naur <[email protected]>The format implies an alpha channel; name it accordingly.
Signed-off-by: Elias Naur <mail@elias...
b3a8c24334a0f52b350e25deedbfdde99f56e7d8 authored over 3 years ago by Elias Naur <[email protected]>