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
Specifying the clear color and depth at the time of clearing is
less error prone and a better fo...
This commit adds the necessary task to the CI job to generate sourcehut
annotations as documente...
Rendering will probably not be correct, but a panic is overreacting.
Signed-off-by: Elias Naur ...
5180bb0e1a50d5535f146c1d7129792125a179ed authored almost 5 years agoSigned-off-by: Elias Naur <[email protected]>
af68e17dd3245dcea870835fd1aedf5f571b19b2 authored almost 5 years agoSigned-off-by: Egon Elbre <[email protected]>
7c1a21ce5677e15db79cc78aeaea7a2a183f74e7 authored almost 5 years agoSigned-off-by: Elias Naur <[email protected]>
7024a0e6914d048cd245b1b2a4fc96df3d9538ab authored almost 5 years agoSigned-off-by: Elias Naur <[email protected]>
61529c2cb6f424cf8705b016f3954a874ac0a5c6 authored almost 5 years ago
Installing it on Debian was enough, with the only wrinkle that
propagating -race won't work when...
Since Wine is heavily tied to X11, we build its end-to-end test driver
on top of X11's. We use t...
We were using 'go run . <args>' before, which works fine, but does mean
re-linking a new binary ...
First, move from debian unstable to testing, since sway was promoted to
testing as of earlier th...
Signed-off-by: Elias Naur <[email protected]>
48eb5c666cdc1989d9c73fa3007188c9b1a26b71 authored almost 5 years agoSigned-off-by: Elias Naur <[email protected]>
bd7c7a108a9ea67f83e18f79e898b665d7906769 authored almost 5 years ago3738aa43a8864295cd0b799d718c569587046ce2 authored almost 5 years ago
Signed-off-by: Elias Naur <[email protected]>
62a2f3b8c8a4995a9f3bd500ef7d99d227ad3d4f authored almost 5 years ago
Instead of just returning the first error (from Direct3D), return
the errors from all attempts.
...
We're forced by compatibility to encode an integer state into a
floating point. Make the implici...
Instead, honor the constraints after laying out both Stacked and
Expanded children.
Signed-off-...
148a2828e7bd7a08bab0414c5bcc19f9e8ab5b80 authored almost 5 years agoSigned-off-by: Elias Naur <[email protected]>
c1048a3a543d089409bcabdf58a8e40859786b2d authored almost 5 years agoSigned-off-by: Elias Naur <[email protected]>
0ceccf3c934b45f0a75b1ea660344ad3d3942729 authored almost 5 years agoSigned-off-by: Elias Naur <[email protected]>
0160bba02074291e983aa6937db8fb982c6bc6b0 authored almost 5 years agoSigned-off-by: Elias Naur <[email protected]>
b3a3c34088df728aa714a3d7dc2c3ceb8e8927d6 authored almost 5 years agoSigned-off-by: Elias Naur <[email protected]>
050f43d60a1d5902cd1de04e81a07d83ab288a29 authored almost 5 years agoSigned-off-by: Elias Naur <[email protected]>
a448825d48787f9f0172c4b1104da774338f3b29 authored almost 5 years agoSigned-off-by: Elias Naur <[email protected]>
330705a4231d296e46b91de6101ab73f527bff8f authored almost 5 years ago
Direct3D 11 supports Direct3D 9.1 level hardware, but only if the shaders are
compiled for targe...
D3DCompile successfully compiles shaders fxc.exe doesn't. As a bonus
the DirectX SDK is no longe...
While here, change the ErrorCode.Code field type to uint32 to better reflect
its native counterp...
Signed-off-by: Elias Naur <[email protected]>
5ae68d21275ad0289d112c23a6fd48bf8712e648 authored almost 5 years agoSigned-off-by: Elias Naur <[email protected]>
2fd7e2dd9ba955de7c457fbdcc12546cee949d61 authored almost 5 years agoCredit to staticcheck.io.
Signed-off-by: Elias Naur <[email protected]>
bfb50cef5de4443036385830269dc0bd9f657bd8 authored almost 5 years agoSigned-off-by: Elias Naur <[email protected]>
4b7387369b9800fc5e41c1017f3cce0421dee2d6 authored almost 5 years agoSigned-off-by: Elias Naur <[email protected]>
27c77f1baf081ad059070a3bc27cc5fc528fd8a5 authored almost 5 years agoSigned-off-by: Elias Naur <[email protected]>
e03b3cd808b471dd3659e2169bf2d8ee65dd6951 authored almost 5 years ago
In particular, the simplifying "-s" flag to gofmt ensures that the automatic
test for unformatte...
Add a series of low level gpu.Backend tests to assure the correct behaviour of
Backends. The imm...
Signed-off-by: Elias Naur <[email protected]>
1f117d8de0749ddffa82184e9a48c17dc97937d2 authored almost 5 years agoIn particular, add the GLSL 1.30 shader variant. Sigh.
Signed-off-by: Elias Naur <mail@eliasnau...
dd6a24732649cd46599901f40ba6916f0209e47a authored almost 5 years ago
They're a pain to support. Encode the single integer value we have
as a float instead.
Signed-o...
591c89ab0ad037f5e287e91619efbcfd3c211d5a authored almost 5 years agoApple's OpenGL 3.2 Core implementation doesn't accept 1.30.
Signed-off-by: Elias Naur <mail@eli...
3043c4243a1465d4ce0f418ee669a70617906c1c authored almost 5 years ago
The Direct3D backend doesn't need y-flipping, so don't do it unconditionally in
package app/head...
OpenGL use the [-1; 1] range for clip depths, Direct3D [0; 1].
Use toClipSpace to encapsulate th...
Instead of separate 2d scale and transform, pack them into a single
4d value.
Signed-off-by: El...
c34c350a52ada78358c602569995e651e173bace authored almost 5 years ago
Add fboTextureTransform shader function for cancelling the
implied transformation from fragments...
Add flag to specify shader directory while here.
Signed-off-by: Elias Naur <[email protected]>
0d573514c57d7da02402f8eff87b7fa7f0bf09a5 authored almost 5 years ago
Some GPU APIs such as Direct3D can return an error after drawing
a frame indicating a transient ...
OpenGL supports casting from int to float during vertex array
reading. Direct3D doesn't. Since w...
Signed-off-by: Elias Naur <[email protected]>
55c74d31598e86b927f7b756d55990333b988c22 authored almost 5 years agoSigned-off-by: Elias Naur <[email protected]>
0d266c413d58eade4842f5eead71709161608dfd authored almost 5 years agoSigned-off-by: Elias Naur <[email protected]>
3a5a2cff6bb4e43c846c07323341bfcdd4644e4a authored almost 5 years ago
Uniform buffers are byte slice backed by Go structs. However, if a uniform
buffer value is embed...
Prepare for adding NewBuffer for mutable buffers.
Signed-off-by: Elias Naur <[email protected]>
fbb7fffd46083201c0d2c8d6b4506643de62e2a8 authored almost 5 years agoSigned-off-by: Elias Naur <[email protected]>
f5905b3ca82d99b22957bbb9a0a3e7b334f40ec5 authored almost 5 years ago
Direct3D can't support a generic Bind, and we don't need it now
BindVertex was added.
Signed-of...
826ab9e65beeed85564a05ff89d7e213a45f2b45 authored almost 5 years ago
InputLayout is the abstraction for the mapping between vertex data and
shader inputs. The mappin...
We're about to add Direct3D support, where shaders are written in
HLSL. Rather than write shader...
The error message is not appropriate where there are multiple backends,
and there's a much bette...
The srgb package was recently created to contain just the sRGB
emulation, but the names weren't ...
Signed-off-by: Elias Naur <[email protected]>
4e3bfd5b1b96deb69ba742f1bc855720f0063d91 authored almost 5 years agoSigned-off-by: Elias Naur <[email protected]>
5c359bbf89f6beee413bb85fa35c6e3ce8b6302e authored almost 5 years ago
OpenGL doesn't care if the texture to a framebuffer changes, but
Direct3D does. Change Backend t...
Signed-off-by: Elias Naur <[email protected]>
cf7d702a392c4f1883344778a3c2d9a06081d9a7 authored almost 5 years ago
Emulate them for the OpenGL ES backend because 2.0 doesn't support uniform
buffers. The future d...
Re-create textures instead to better match direct3d.
Signed-off-by: Elias Naur <mail@eliasnaur....
a4ee72ed28ffc93aea5def35231a4210b1707046 authored almost 5 years ago
DefaultFramebuffer was set up at Backend creation time, which is
difficult to predict. Instead, ...
To use the converter from other packages, make the converter a
runnable command.
Signed-off-by:...
fd61c226d494c0a6cb1cf17fcf2a7817593e0bb2 authored almost 5 years agoSigned-off-by: Elias Naur <[email protected]>
b9d131409e6b7ead0e6a7b4e57bf4ce98edcea99 authored almost 5 years agoSigned-off-by: Elias Naur <[email protected]>
0be4dd9af02fe2a30b6e65e8aacb82fff21901de authored almost 5 years agoSigned-off-by: Elias Naur <[email protected]>
5cd5d491081ea23bdce7c236de58e924ef00e4d1 authored almost 5 years agoSigned-off-by: Elias Naur <[email protected]>
50e98d1e13c011a68e9c4edc7180979d8a668a42 authored almost 5 years agoSigned-off-by: Elias Naur <[email protected]>
2df50dda8e59898628f1096bb9b12f3dff2204a7 authored almost 5 years agoHaving Backend.Bind* methods better matches both opengl and d3d.
Signed-off-by: Elias Naur <mai...
b4c163e437f48cae0120b847e0428dc87079eef9 authored almost 5 years agoSigned-off-by: Elias Naur <[email protected]>
055fa973434fff008e8fe0314ca20b04d6629cf5 authored almost 5 years ago
The new Framebuffer.ReadPixels method is enough to implement
Window.Screenshot. Use that instead...
Signed-off-by: Elias Naur <[email protected]>
e4a927982de51dacb602c667f888e6748a351fc5 authored almost 5 years ago
Along with ReadPixels in the next change, a Framebuffer with depth is enough to
implement screen...
"handling" means panicing, but at least the panicing is moved up
a layer, leaving future changes...
Signed-off-by: Elias Naur <[email protected]>
9c984e03b842c9d4284f02001d365b860fb43a6e authored almost 5 years ago
Direct3D needs to know the texture bind usage up front, in particular
whether the texture is goi...
Signed-off-by: Elias Naur <[email protected]>
411f566e3f1b7ba2826370a8d787df7b0ac92cf1 authored almost 5 years ago
It serves no purpose other than paranoia. Perhaps buggy drivers exists that
require unused textu...
The offset argument to DrawElements is in 16-bit shorts, while the
underlying DrawElements use b...
We're going to need them for shader uniform buffer storage.
Signed-off-by: Elias Naur <mail@eli...
ef3e94e7a7580f5874c182de7a16f7890021f7bb authored almost 5 years ago
This is a refactoring change to prepare for another gpu.Backend
implementations.
Notably, app/l...
94fdc26cb5e29a1489031572cbd96ee4271dfa71 authored almost 5 years ago
Before this change, the index buffer would start empty and grow up to the
maximum size (128kb). ...
The GPU implementation only uses immutable buffers so far, so let's
make it easy and performant ...
To prepare package headless for multiple backends, refactor the common headless
driver to no lon...
Signed-off-by: Elias Naur <[email protected]>
8a2837531e80b7fabe1c0d222c04b179a33fdf3a authored almost 5 years agoNiver API and useful for testing.
Signed-off-by: Elias Naur <[email protected]>
5a3ffad00ab457e2326ba0d756ee0151d9fa60aa authored almost 5 years ago
It was left over from a previous approach to enable the program
to decide the ordering between c...
Signed-off-by: Elias Naur <[email protected]>
e3f8d1a1afb27213f5e4c2e0b161e76d69778ff3 authored almost 5 years ago
Now that pkg.go.dev supports the UNLICENSE, the COPYING file confuses
the automatic license dete...
Signed-off-by: Elias Naur <[email protected]>
73b99a80e29a36735ea8300648c9c7b1934322ed authored almost 5 years agoIt passes now, thanks to the recent work to add retries to screenshots.
If it turns out to stil...
150b34aedef67952fcb4a58ad94ae551324e36df authored almost 5 years agoSigned-off-by: Larry Clapp <[email protected]>
0dd77be975432179d6b71499818d4cda990fc110 authored almost 5 years agoAdded a cflag -I to provide wayland header files in openSUSE.
Fixes gio#76
Signed-off-by: Roy ...
ae6161dfb6fe082d7c30296c1e7481d6740a0d97 authored almost 5 years agoSigned-off-by: Elias Naur <[email protected]>
60904dd9a64537e6e959f89667c17271e99ee412 authored almost 5 years ago
The new field ImageOp.Rect is initialized to cover the entire source
image, but can be modified ...
The `image.Rectangle` object should be passed to the `pointer.Rect` function.
Signed-off-by: st...
fd5dfacb404347573ffbb069d5d2419fa0e4f606 authored almost 5 years agoSigned-off-by: Elias Naur <[email protected]>
e8add40440b388b532e52d6dbc88fcb4b225d90c authored almost 5 years ago