Andreas Kling
c837e7bbf3
LibGL: Fix minor const-correctness issues
2023-02-21 00:54:04 +01:00
Timothy Flynn
4a916cd379
Everywhere: Remove needless copies of Error / ErrorOr instances
...
Either take the underlying objects with release_* methods or move() the
instances around.
2023-02-10 09:08:52 +00:00
Timothy Flynn
f1de4f8872
Everywhere: Convert known short-strings to the infallible String factory
...
For now, this is limited to strings that are 3 bytes or less. We can use
7 bytes on 64-bit platforms, but we do not yet assume 64-bit for Lagom
hosts (e.g. wasm).
2023-01-20 14:24:12 -05:00
Stephan Unverwerth
28ad49bcbd
LibGL: Pass generated GPU IR to GPU side compiler when linking program
2022-12-17 22:39:09 -07:00
Stephan Unverwerth
93ab2db80f
LibGL+LibSoftGPU: Add GPU side shader infrastructure
...
This adds a shader class to LibSoftGPU and makes use of it when linking
GLSL program in LibGL. Also adds actual rendering code to the shader
tests.
2022-12-17 22:39:09 -07:00
Stephan Unverwerth
4ad41e6680
LibGL: Use LibGLSL to compile shaders
2022-12-17 22:39:09 -07:00
Stephan Unverwerth
1b7b6e6c91
LibGL: Implement glGetProgramiv
2022-12-17 22:39:09 -07:00
Stephan Unverwerth
848f1d2689
LibGL: Make shader compilation and program linking always succeed
...
This will help with testing until the actual compilation infrastructure
is in place.
2022-12-17 22:39:09 -07:00
Stephan Unverwerth
7f062e35a4
LibGL: Implement glAttachShader
2022-12-17 22:39:09 -07:00
Stephan Unverwerth
b975569a40
LibGL: Add Shader and Program class stubs
2022-12-17 22:39:09 -07:00