~eliasnaur/gio

example,cmd: bump gio version

Signed-off-by: Elias Naur <mail@eliasnaur.com>
app/internal/window: (Windows) don't send zero-sized draw requests

Signed-off-by: Elias Naur <mail@eliasnaur.com>
example,cmd: bump gio version
README.md: link to Larry's GitHub mirror

Signed-off-by: Elias Naur <mail@eliasnaur.com>
app/internal/window: (Windows) return all errors from NewContext

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

Signed-off-by: Elias Naur <mail@eliasnaur.com>
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 implicit conversion from floating point to
integer more robust against GPUs with low precision floats.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
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-by: Elias Naur <mail@eliasnaur.com>
example,cmd: update gio version

Signed-off-by: Elias Naur <mail@eliasnaur.com>
app/internal/d3d11: try more floating point formats

Signed-off-by: Elias Naur <mail@eliasnaur.com>
example,cmd: update gio version

Signed-off-by: Elias Naur <mail@eliasnaur.com>
app/internal/d3d11: detect hardware floating point support

Signed-off-by: Elias Naur <mail@eliasnaur.com>
io/router: add pointer drag-and-move test

Signed-off-by: Elias Naur <mail@eliasnaur.com>
example,cmd: update gio version

Signed-off-by: Elias Naur <mail@eliasnaur.com>
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 target 4_0_level_9_1.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
internal/cmd/convertshaders: replace fxc.exe with D3DCompile

D3DCompile successfully compiles shaders fxc.exe doesn't. As a bonus
the DirectX SDK is no longer required (it includes fxc.exe).

Signed-off-by: Elias Naur <mail@eliasnaur.com>
app/internal/d3d11: only clear depth buffer if it exists

Signed-off-by: Elias Naur <mail@eliasnaur.com>
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 counterpart.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
example, cmd: update gio version

Signed-off-by: Elias Naur <mail@eliasnaur.com>
app/internal/d3d11: fix GOOS=windows GOARCH=386 build

Signed-off-by: Elias Naur <mail@eliasnaur.com>
all: remove unused fields, functions and add missing error handling

Credit to staticcheck.io.

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