Elias Naur
7fba3bb8fe
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 for modern GPU APIs. As a bonus, we
can get rid of the BufferAttachment type.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2020-03-15 12:25:56 +01:00
Egon Elbre
7c1a21ce56
add f32color.RGBA
...
Signed-off-by: Egon Elbre <egonelbre@gmail.com >
2020-03-12 13:21:34 +01:00
Elias Naur
7024a0e691
gpu: fix depth buffer on direct3d and headless opengl
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2020-03-11 17:45:16 +01:00
Elias Naur
0ceccf3c93
app/internal/d3d11: try more floating point formats
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2020-02-29 13:01:48 +01:00
Elias Naur
b3a3c34088
app/internal/d3d11: detect hardware floating point support
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2020-02-29 10:52:04 +01:00
Elias Naur
1d3a9fb2d6
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 >
2020-02-28 15:14:54 +01:00
Elias Naur
a448825d48
app/internal/d3d11: only clear depth buffer if it exists
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2020-02-28 14:50:39 +00:00
Elias Naur
73fc5e1482
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 >
2020-02-28 13:49:56 +01:00
Elias Naur
2fd7e2dd9b
app/internal/d3d11: fix GOOS=windows GOARCH=386 build
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2020-02-28 09:58:23 +01:00
Elias Naur
e03b3cd808
app/internal/d3d11: add Direct3D backend
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2020-02-27 21:41:35 +01:00