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

gpu/backend: remove clear color and depth state

Specifying the clear color and depth at the time of clearing is
less error prone and a better fo...

7fba3bb8feedf907bc4ffd71f0bd6e43f4474fef authored almost 5 years ago
ci: add skeleton for sourcehut annotations

This commit adds the necessary task to the CI job to generate sourcehut
annotations as documente...

daecdcaabf6785016e949ed824991285fe975835 authored almost 5 years ago
gpu/gl: don't panic if no input layout is bound

Rendering will probably not be correct, but a panic is overreacting.

Signed-off-by: Elias Naur ...

5180bb0e1a50d5535f146c1d7129792125a179ed authored almost 5 years ago
op/paint: set subimage Rect when converting image

Signed-off-by: Elias Naur <[email protected]>

af68e17dd3245dcea870835fd1aedf5f571b19b2 authored almost 5 years ago
add f32color.RGBA

Signed-off-by: Egon Elbre <[email protected]>

7c1a21ce5677e15db79cc78aeaea7a2a183f74e7 authored almost 5 years ago
gpu: fix depth buffer on direct3d and headless opengl

Signed-off-by: Elias Naur <[email protected]>

7024a0e6914d048cd245b1b2a4fc96df3d9538ab authored almost 5 years ago
gpu: fix clip intersection with the D3D backend

Signed-off-by: Elias Naur <[email protected]>

61529c2cb6f424cf8705b016f3954a874ac0a5c6 authored almost 5 years ago
CI: add wine on Linux for the Windows e2e test

Installing it on Debian was enough, with the only wrinkle that
propagating -race won't work when...

acfe91ec3e33b65b4e6d8d266b66161596ac757d authored almost 5 years ago
cmd/gogio: add the first Windows e2e test via Wine

Since Wine is heavily tied to X11, we build its end-to-end test driver
on top of X11's. We use t...

49000ae4a3e3af09e515f1319fc89c68dfc76c8b authored almost 5 years ago
cmd/gogio: reuse the test binary to call gogio in the e2e tests

We were using 'go run . <args>' before, which works fine, but does mean
re-linking a new binary ...

9bbeb92b614c2520c99ebc33b5e822caf6325076 authored almost 5 years ago
cmd/gogio: groundwork for Windows e2e tests on Wine

First, move from debian unstable to testing, since sway was promoted to
testing as of earlier th...

b064899967b1c7b953a1aa429a4041c850c52a47 authored almost 5 years ago
example,cmd: bump gio version

Signed-off-by: Elias Naur <[email protected]>

48eb5c666cdc1989d9c73fa3007188c9b1a26b71 authored almost 5 years ago
app/internal/window: (Windows) don't send zero-sized draw requests

Signed-off-by: Elias Naur <[email protected]>

bd7c7a108a9ea67f83e18f79e898b665d7906769 authored almost 5 years ago
example,cmd: bump gio version

3738aa43a8864295cd0b799d718c569587046ce2 authored almost 5 years ago
README.md: link to Larry's GitHub mirror

Signed-off-by: Elias Naur <[email protected]>

62a2f3b8c8a4995a9f3bd500ef7d99d227ad3d4f authored almost 5 years ago
app/internal/window: (Windows) return all errors from NewContext

Instead of just returning the first error (from Direct3D), return
the errors from all attempts.
...

22e15da67c48ea6917ea91094c70870850ca76d5 authored almost 5 years ago
gpu/shaders: be more robust against floating point inaccuracies

We're forced by compatibility to encode an integer state into a
floating point. Make the implici...

8405bf0e47548ed60affb5428a927f0e09c76478 authored almost 5 years ago
layout: don't force Expanded Stack children larger than their minimum

Instead, honor the constraints after laying out both Stacked and
Expanded children.

Signed-off-...

148a2828e7bd7a08bab0414c5bcc19f9e8ab5b80 authored almost 5 years ago
example,cmd: update gio version

Signed-off-by: Elias Naur <[email protected]>

c1048a3a543d089409bcabdf58a8e40859786b2d authored almost 5 years ago
app/internal/d3d11: try more floating point formats

Signed-off-by: Elias Naur <[email protected]>

0ceccf3c934b45f0a75b1ea660344ad3d3942729 authored almost 5 years ago
example,cmd: update gio version

Signed-off-by: Elias Naur <[email protected]>

0160bba02074291e983aa6937db8fb982c6bc6b0 authored almost 5 years ago
app/internal/d3d11: detect hardware floating point support

Signed-off-by: Elias Naur <[email protected]>

b3a3c34088df728aa714a3d7dc2c3ceb8e8927d6 authored almost 5 years ago
io/router: add pointer drag-and-move test

Signed-off-by: Elias Naur <[email protected]>

050f43d60a1d5902cd1de04e81a07d83ab288a29 authored almost 5 years ago
app/internal/d3d11: only clear depth buffer if it exists

Signed-off-by: Elias Naur <[email protected]>

a448825d48787f9f0172c4b1104da774338f3b29 authored almost 5 years ago
example,cmd: update gio version

Signed-off-by: Elias Naur <[email protected]>

330705a4231d296e46b91de6101ab73f527bff8f authored almost 5 years ago
internal/cmd/convertshaders: target 9.1 compatibility shader model

Direct3D 11 supports Direct3D 9.1 level hardware, but only if the shaders are
compiled for targe...

b194a0ce58fff323642bbf72b7e153e51f7737d0 authored almost 5 years ago
internal/cmd/convertshaders: replace fxc.exe with D3DCompile

D3DCompile successfully compiles shaders fxc.exe doesn't. As a bonus
the DirectX SDK is no longe...

1d3a9fb2d6c1142da497f56a577b54feda288a09 authored almost 5 years ago
app/internal/d3d11: return structured ErrorCode errors from d3d functions

While here, change the ErrorCode.Code field type to uint32 to better reflect
its native counterp...

73fc5e14825ccc57e8672881e6f2ed45bd0855b0 authored almost 5 years ago
example, cmd: update gio version

Signed-off-by: Elias Naur <[email protected]>

5ae68d21275ad0289d112c23a6fd48bf8712e648 authored almost 5 years ago
app/internal/d3d11: fix GOOS=windows GOARCH=386 build

Signed-off-by: Elias Naur <[email protected]>

2fd7e2dd9ba955de7c457fbdcc12546cee949d61 authored almost 5 years ago
all: remove unused fields, functions and add missing error handling

Credit to staticcheck.io.

Signed-off-by: Elias Naur <[email protected]>

bfb50cef5de4443036385830269dc0bd9f657bd8 authored almost 5 years ago
.builds: upgrade to Go 1.14 final

Signed-off-by: Elias Naur <[email protected]>

4b7387369b9800fc5e41c1017f3cce0421dee2d6 authored almost 5 years ago
example,cmd: update gio version

Signed-off-by: Elias Naur <[email protected]>

27c77f1baf081ad059070a3bc27cc5fc528fd8a5 authored almost 5 years ago
app/internal/d3d11: add Direct3D backend

Signed-off-by: Elias Naur <[email protected]>

e03b3cd808b471dd3659e2169bf2d8ee65dd6951 authored almost 5 years ago
internal/cmd/convertshaders: use gofmt to format output

In particular, the simplifying "-s" flag to gofmt ensures that the automatic
test for unformatte...

d65bfdc2753ec57aa735bdfc77ec0e72bfeec998 authored almost 5 years ago
app/headless: add lower-level backend tests

Add a series of low level gpu.Backend tests to assure the correct behaviour of
Backends. The imm...

7ff2f604125bfce4a16bee91017ed30f86069121 authored almost 5 years ago
internal/cmd/convertshaders: #define HLSL when compiling for HLSL

Signed-off-by: Elias Naur <[email protected]>

1f117d8de0749ddffa82184e9a48c17dc97937d2 authored almost 5 years ago
gpu/backend: add support for desktop OpenGL 3

In particular, add the GLSL 1.30 shader variant. Sigh.

Signed-off-by: Elias Naur <mail@eliasnau...

dd6a24732649cd46599901f40ba6916f0209e47a authored almost 5 years ago
gpu: drop use of integer shader inputs

They're a pain to support. Encode the single integer value we have
as a float instead.

Signed-o...

591c89ab0ad037f5e287e91619efbcfd3c211d5a authored almost 5 years ago
gpu/backend: add support for GLSL 1.50

Apple's OpenGL 3.2 Core implementation doesn't accept 1.30.

Signed-off-by: Elias Naur <mail@eli...

3043c4243a1465d4ce0f418ee669a70617906c1c authored almost 5 years ago
app/headless,gpu/gl: make ReadPixels y-flipping backend specific

The Direct3D backend doesn't need y-flipping, so don't do it unconditionally in
package app/head...

a0c4688d0cd349eb22197b59f4ad809ec80fd876 authored almost 5 years ago
gpu/shaders: introduce toClipSpace to map to GPU native clip space

OpenGL use the [-1; 1] range for clip depths, Direct3D [0; 1].
Use toClipSpace to encapsulate th...

8dce81d8fd3410167d3b07338aff89392929f833 authored almost 5 years ago
gpu: pack 2D transforms in vec4 values

Instead of separate 2d scale and transform, pack them into a single
4d value.

Signed-off-by: El...

c34c350a52ada78358c602569995e651e173bace authored almost 5 years ago
gpu/shaders: compensate for GPU Framebuffer => texture transformation

Add fboTextureTransform shader function for cancelling the
implied transformation from fragments...

c20c1ab96f1af2658b7087fb16026d0fbc619b3b authored almost 5 years ago
internal/cmd/convertshaders: support #include in shaders

Add flag to specify shader directory while here.

Signed-off-by: Elias Naur <[email protected]>

0d573514c57d7da02402f8eff87b7fa7f0bf09a5 authored almost 5 years ago
app: recover from transient Present errors

Some GPU APIs such as Direct3D can return an error after drawing
a frame indicating a transient ...

6213daa3e9da9b2566423df35b4ccafa3bb3095f authored almost 5 years ago
gpu/shaders: use correct type for integer vector

OpenGL supports casting from int to float during vertex array
reading. Direct3D doesn't. Since w...

29d36e11ee4dea8c44c240641039a8f81908cb96 authored almost 5 years ago
app/headless: setup default Viewport in NewWindow

Signed-off-by: Elias Naur <[email protected]>

55c74d31598e86b927f7b756d55990333b988c22 authored almost 5 years ago
gpu,gpu/backend: implement GLSL 300 es shader variants

Signed-off-by: Elias Naur <[email protected]>

0d266c413d58eade4842f5eead71709161608dfd authored almost 5 years ago
app/internal/glimpl: add gl functions for uniform buffers

Signed-off-by: Elias Naur <[email protected]>

3a5a2cff6bb4e43c846c07323341bfcdd4644e4a authored almost 5 years ago
gpu: avoid internal uniform buffer pointers

Uniform buffers are byte slice backed by Go structs. However, if a uniform
buffer value is embed...

23757b1022e3fb52f7644d7c0da922b03a8e19f5 authored almost 5 years ago
gpu: rename NewBuffer to NewImmutableBuffer

Prepare for adding NewBuffer for mutable buffers.

Signed-off-by: Elias Naur <[email protected]>

fbb7fffd46083201c0d2c8d6b4506643de62e2a8 authored almost 5 years ago
gpu: rename BufferTypeData to less vague BufferTypeVertices

Signed-off-by: Elias Naur <[email protected]>

f5905b3ca82d99b22957bbb9a0a3e7b334f40ec5 authored almost 5 years ago
gpu,gpu/gl: specialize Buffer.Bind to Buffer.BindIndex

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
gpu,gpu/gl: introduce InputLayout and use shader reflection data

InputLayout is the abstraction for the mapping between vertex data and
shader inputs. The mappin...

9cdc8e6182bdd5027f51f1f1fea76826027f4b57 authored almost 5 years ago
gpu/internal/shaders: generate shader variants

We're about to add Direct3D support, where shaders are written in
HLSL. Rather than write shader...

ac7029fa248bff846002746ef6bb436d74226e42 authored almost 5 years ago
app/internal/egl: remove Windows error message dialog when EGL fails to load

The error message is not appropriate where there are multiple backends,
and there's a much bette...

1f43bfa0e41991e63afe20d9e508e0c463535194 authored almost 5 years ago
app/internal/srgb: rename NewSRGBFBO to New and SRGBFBO to FBO

The srgb package was recently created to contain just the sRGB
emulation, but the names weren't ...

05485a79a6e23ec8bd13a82a76028ebc9bf77090 authored almost 5 years ago
gpu: setup OpenGL ES texture uniforms automatically from shader metadata

Signed-off-by: Elias Naur <[email protected]>

4e3bfd5b1b96deb69ba742f1bc855720f0063d91 authored almost 5 years ago
gpu/shaders: delete unused uniform

Signed-off-by: Elias Naur <[email protected]>

5c359bbf89f6beee413bb85fa35c6e3ce8b6302e authored almost 5 years ago
gpu: specify target Texture Backend.NewFramebuffer

OpenGL doesn't care if the texture to a framebuffer changes, but
Direct3D does. Change Backend t...

eb7e11ee8ed51236d64455b7163e03f048119c32 authored almost 5 years ago
app/internal/window: remove unsafe cast

Signed-off-by: Elias Naur <[email protected]>

cf7d702a392c4f1883344778a3c2d9a06081d9a7 authored almost 5 years ago
gpu,gpu/gl: implement shader uniform buffers

Emulate them for the OpenGL ES backend because 2.0 doesn't support uniform
buffers. The future d...

646a7676657258926246457541233b4deac11a5f authored almost 5 years ago
gpu: remove Backend.Resize and fully specify format in Backend.NewTexture

Re-create textures instead to better match direct3d.

Signed-off-by: Elias Naur <mail@eliasnaur....

a4ee72ed28ffc93aea5def35231a4210b1707046 authored almost 5 years ago
gpu: replace Backend.DefaultFramebuffer by Backend.CurrentFramebuffer

DefaultFramebuffer was set up at Backend creation time, which is
difficult to predict. Instead, ...

dfc1503c0070ee332d0ead88e60c09f42a91145b authored almost 5 years ago
internal/cmd/convertshaders: move shader converter to separate package

To use the converter from other packages, make the converter a
runnable command.

Signed-off-by:...

fd61c226d494c0a6cb1cf17fcf2a7817593e0bb2 authored almost 5 years ago
gpu/gl: tolerate programs with no attributes

Signed-off-by: Elias Naur <[email protected]>

b9d131409e6b7ead0e6a7b4e57bf4ce98edcea99 authored almost 5 years ago
app/internal/cmd/convertshaders: use backend types directly

Signed-off-by: Elias Naur <[email protected]>

0be4dd9af02fe2a30b6e65e8aacb82fff21901de authored almost 5 years ago
gpu/backend: move backend interface types to a separate package

Signed-off-by: Elias Naur <[email protected]>

5cd5d491081ea23bdce7c236de58e924ef00e4d1 authored almost 5 years ago
app/headless: handle error from Framebuffer.ReadPixels

Signed-off-by: Elias Naur <[email protected]>

50e98d1e13c011a68e9c4edc7180979d8a668a42 authored almost 5 years ago
app/headless: remove unusued parameters to newContext

Signed-off-by: Elias Naur <[email protected]>

2df50dda8e59898628f1096bb9b12f3dff2204a7 authored almost 5 years ago
gpu: Move Bind methods to Backend

Having Backend.Bind* methods better matches both opengl and d3d.

Signed-off-by: Elias Naur <mai...

b4c163e437f48cae0120b847e0428dc87079eef9 authored almost 5 years ago
app/headless: Release Window after testing it

Signed-off-by: Elias Naur <[email protected]>

055fa973434fff008e8fe0314ca20b04d6629cf5 authored almost 5 years ago
app/headless: re-implement Screenshot on top of Backend

The new Framebuffer.ReadPixels method is enough to implement
Window.Screenshot. Use that instead...

f305f71b20044deb76b9b931cb547cbc26acde30 authored almost 5 years ago
gpu: add Framebuffer.ReadPixels

Signed-off-by: Elias Naur <[email protected]>

e4a927982de51dacb602c667f888e6748a351fc5 authored almost 5 years ago
gpu: add depthBits parameter to NewFramebuffer

Along with ReadPixels in the next change, a Framebuffer with depth is enough to
implement screen...

6fd545a4d83e95466088ec89cffa8a093c64bee5 authored almost 5 years ago
gpu: return and handle errors from Backend.New... methods

"handling" means panicing, but at least the panicing is moved up
a layer, leaving future changes...

10484d26f3f453f9b8a8989668495c4c0a4031b0 authored almost 5 years ago
gpu: drop Framebuffer.IsComplete in favour of an error from NewFramebuffer

Signed-off-by: Elias Naur <[email protected]>

9c984e03b842c9d4284f02001d365b860fb43a6e authored almost 5 years ago
gpu: add binding flags to Backend.NewTexture

Direct3D needs to know the texture bind usage up front, in particular
whether the texture is goi...

cae97a98618ed451ab6fe37ca3da5da8b2bfbebf authored almost 5 years ago
gpu: rename BufferType to BufferBinding and make it a set

Signed-off-by: Elias Naur <[email protected]>

411f566e3f1b7ba2826370a8d787df7b0ac92cf1 authored almost 5 years ago
gpu: remove Backend.NilTexture

It serves no purpose other than paranoia. Perhaps buggy drivers exists that
require unused textu...

744a962bebf24e7283ccbd9cbec8f94c452b1fa4 authored almost 5 years ago
gpu/gl: fix offset calculation in DrawElements

The offset argument to DrawElements is in 16-bit shorts, while the
underlying DrawElements use b...

5ba7854656f5c53e9eb89992e1d935329ef11aeb authored almost 5 years ago
gpu: add NewBuffer and Buffer.Upload for creating mutable buffers

We're going to need them for shader uniform buffer storage.

Signed-off-by: Elias Naur <mail@eli...

ef3e94e7a7580f5874c182de7a16f7890021f7bb authored almost 5 years ago
app,app/headless: expose Backends from window and headless contexts

This is a refactoring change to prepare for another gpu.Backend
implementations.

Notably, app/l...

94fdc26cb5e29a1489031572cbd96ee4271dfa71 authored almost 5 years ago
gpu: allocate path draw index buffer once

Before this change, the index buffer would start empty and grow up to the
maximum size (128kb). ...

49365dbcc5a8a6ad5d5fa631dab456fb18d6b9de authored almost 5 years ago
gpu: make Buffers immutable

The GPU implementation only uses immutable buffers so far, so let's
make it easy and performant ...

f62725ea77374eda9733ccbc90b39fce56981bb7 authored almost 5 years ago
app/headless: remove OpenGL assumptions

To prepare package headless for multiple backends, refactor the common headless
driver to no lon...

b34216c124e83e47cc5d8d110cfcd88011fea123 authored almost 5 years ago
io/router: add pointer routing test

Signed-off-by: Elias Naur <[email protected]>

8a2837531e80b7fabe1c0d222c04b179a33fdf3a authored almost 5 years ago
io/router: expand Router.Add to accept multiple events

Niver API and useful for testing.

Signed-off-by: Elias Naur <[email protected]>

5a3ffad00ab457e2326ba0d756ee0151d9fa60aa authored almost 5 years ago
widget: remove unused Button.prevClicks

It was left over from a previous approach to enable the program
to decide the ordering between c...

a995e9ea6cba33067fad86f53d65041265910a61 authored almost 5 years ago
app/internal/window: (Windows) report pressed buttons for Move events

Signed-off-by: Elias Naur <[email protected]>

e3f8d1a1afb27213f5e4c2e0b161e76d69778ff3 authored almost 5 years ago
README.md: move COPYING license verbiage back to the README.md file

Now that pkg.go.dev supports the UNLICENSE, the COPYING file confuses
the automatic license dete...

5406a13257b56fc4310d55797548cf73833219ca authored almost 5 years ago
widget: flush ChangeEvents even if no key events are available

Signed-off-by: Elias Naur <[email protected]>

73b99a80e29a36735ea8300648c9c7b1934322ed authored almost 5 years ago
.builds: re-add sway on Debian

It passes now, thanks to the recent work to add retries to screenshots.

If it turns out to stil...

150b34aedef67952fcb4a58ad94ae551324e36df authored almost 5 years ago
widget/material: allow button Inset to be customizable

Signed-off-by: Larry Clapp <[email protected]>

0dd77be975432179d6b71499818d4cda990fc110 authored almost 5 years ago
app/internal/wayland: Added header dir for wayland in openSUSE

Added a cflag -I to provide wayland header files in openSUSE.

Fixes gio#76

Signed-off-by: Roy ...

ae6161dfb6fe082d7c30296c1e7481d6740a0d97 authored almost 5 years ago
layout: fix typos

Signed-off-by: Elias Naur <[email protected]>

60904dd9a64537e6e959f89667c17271e99ee412 authored almost 5 years ago
op/paint: add support for efficient ImageOp subimages

The new field ImageOp.Rect is initialized to cover the entire source
image, but can be modified ...

69dfd2e3a55419167975adc316f8126bc4737443 authored almost 5 years ago
io/pointer: minor documentation update.

The `image.Rectangle` object should be passed to the `pointer.Rect` function.

Signed-off-by: st...

fd5dfacb404347573ffbb069d5d2419fa0e4f606 authored almost 5 years ago
example: update gio version

Signed-off-by: Elias Naur <[email protected]>

e8add40440b388b532e52d6dbc88fcb4b225d90c authored almost 5 years ago