Elias Naur
0138544242
ui/app/internal/gl: fix GetProgramInfoLog and GetShaderInfoLog
...
I should read the manual more carefully.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-06-09 21:19:50 +02:00
Elias Naur
86f6765e64
ui/app/internal/gl: avoid allocations when passing handles to C
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-06-02 22:51:33 +02:00
Elias Naur
a1c0693eeb
ui/app: add Lock/Unlock to Context for macOS
...
Without locking, asynchronous OpenGL rendering crashes on macOS.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-05-24 14:01:26 +02:00
Elias Naur
c3ea85801c
ui/app: (wasm) replace TypedArrayOf with the CopyBytes* API
...
syscall/js.TypedArrayOf is going away in Go 1.13 and is replaced by
the CopyBytesToGo, CopyBytesToJS.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-05-24 12:30:34 +02:00
Elias Naur
edec032ae6
ui/app: (wasm) re-use javascript buffer
...
Now that syscall/js.TypedArrayOf is going away in Go 1.13 (sse
https://golang.org/issue/31980 ), copying byte slices to JS before
use is necessary. To avoid garbage, re-use a single buffer for all
transfers.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-05-23 10:16:49 +02:00
Elias Naur
7b13da7299
ui/app: (wasm) use JS allocated buffer for invalidateFramebuffer
...
syscall/js.TypedArrayOf is going away in Go 1.13. Avoid it for
invalidateFramebuffer by using a buffer managed by JS.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-05-23 10:16:49 +02:00
Elias Naur
da598663f7
ui/app: add GL buffer caches
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-05-16 21:47:30 +02:00
Elias Naur
8f3384ffe4
ui/app/internal/gl: add RENDERER enum value
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-05-13 09:52:39 +02:00
Elias Naur
0397cbb599
ui/app: add basic webassembly/webgl support
...
It is still slow. And crashy: https://github.com/golang/go/issues/31980 .
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-05-11 13:17:57 +02:00
Elias Naur
c6863581e0
ui/app/internal/gl: add workaround for broken sRGB FBOs
...
Safari on macOS don't treat sRGB correctly.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-05-10 17:50:14 +02:00
Elias Naur
f5fa968038
ui/app/internal/gpu: implement OpenGL ES 2 float fbo fallbacks
...
Also applicable to WebGL.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-05-08 17:57:10 +02:00
Elias Naur
8df5feeeea
ui/app: make opengl objects structs
...
WebGL use opaque values for object handles, not integers. To ensure
portability, wrap handle types with a struct.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-05-08 17:57:10 +02:00
Elias Naur
2af0f63cfb
ui/app/internal/gl: parse WebGL versions
...
And drop a redundant error message while here.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-05-08 17:57:09 +02:00
Elias Naur
350dc19108
ui/app/internal/gl: invalidate the correct fbo in sRGB fallback
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-05-08 14:28:43 +02:00
Elias Naur
0f05231c35
all: initial import
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-03-31 10:47:22 +02:00