Daniel
786e0d6263
glfw: fix segfault in getPhysicalDevicePresentationSupport ( #364 )
2022-06-24 10:10:06 -07:00
Stephen Gutekanst
2db01e1a32
glfw: update native APIs to glfw@master
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-06-11 17:39:25 -07:00
Lee Cannon
bc8ce57e53
glfw: document why unreachable is valid
2022-02-11 15:09:09 -07:00
Lee Cannon
2e9347399d
glfw: dont use @errSetCast
2022-02-08 19:58:52 -07:00
Lee Cannon
3e79a12f3d
glfw: dont call getError unless we need to
2022-02-08 19:57:20 -07:00
InKryption
3d392c8c74
glfw: Use anyopaque instead of opaque {}
...
Update other two instances of `opaque {}`
2022-01-12 18:58:49 -07:00
InKryption
d651d25903
glfw: Use anyopaque instead of opaque{}
...
Using an inline `opaque{}` type forces the use of `@typeInfo` to cast to the specific type of the parameter.
2022-01-12 18:58:49 -07:00
iddev5
cd82da72be
glfw: Update function docs in Monitor and vulkan to match glfw 3.3.6
2021-12-23 13:01:45 -07:00
Stephen Gutekanst
9ea4d2aa6f
glfw: correctly @errorSetCast when returning errors from createWindowSurface
...
Fixes an issue where `createWindowSurface` would not compile (found when
updating https://github.com/hexops/mach-glfw-vulkan-example to latest.)
Introduced in hexops/mach#115
cc @InKryption
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-12-06 22:16:06 -07:00
InKryption
3648d6b9c4
glfw: Denormalize errors ( #115 )
...
Closes hexops/mach#96
Co-authored-by: Stephen Gutekanst <stephen@hexops.com>
2021-12-06 21:52:15 -07:00
InKryption
cb4f911782
glfw: Fix pointer cast
...
The GLFW implementation takes a constant pointer to a `VkAllocationCallbacks` struct; casting it to a mutable pointer equivalent here doesn't break anything, but does prevent passing a valid const pointer, which is often what one should prefer to do.
As well, the `@alignOf` builtin takes the alignment expected of the type directly, so `@alignOf(*T)` returns the alignment of `*T`, not `T`, so that has also been corrected.
2021-11-29 12:52:46 -07:00
InKryption
1d648c2256
glfw: Eliminate Error.InvalidValue
2021-11-26 20:50:38 -07:00
InKryption
b35a7b4fad
glfw: Change error unions into normal returns, in accordance with the new guarantee to never encounter 'GLFW_NOT_INITIALIZED', and update tests
2021-11-22 12:59:11 -07:00
InKryption
d9e2505b59
glfw: amend and update various TODOs pertaining to force-init changes
2021-11-22 12:59:11 -07:00
InKryption
da392d89a7
glfw: assert initialized in proc address getter functions
2021-11-22 12:59:11 -07:00
InKryption
ef7ada052c
glfw: Revert error denormalization
2021-11-22 12:59:11 -07:00
InKryption
44fee8f1f1
glfw: force init error type work around
2021-11-22 12:59:11 -07:00
InKryption
76d2b8ad9f
glfw: force init in vulkan.zig
2021-11-22 12:59:11 -07:00
Silver
673ce14acf
glfw: remove [*c] pointers from api and return lengthed strings when possible
2021-11-16 07:12:02 -07:00
InKryption
f00367e696
glfw: Update tests in all other files to reflect changes made to glfw.init
2021-11-10 11:42:24 -07:00
Stephen Gutekanst
c16d6bf615
glfw: improve ABI compatability with zig-vulkan library
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-10-31 01:00:02 -07:00
Stephen Gutekanst
ed10bebf99
glfw: improve panic message for glfw.getInstanceProcAddress
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-10-29 17:13:21 -07:00
Stephen Gutekanst
8c31529f8a
glfw: make glfw.getInstanceProcAddress conform to GLFW C ABI
...
Having `glfw.getInstanceProcAddress` conform to the GLFW C ABI is important as it is often
likely to be passed into libraries which expect exactly that ABI, e.g. zig-vulkan.
Fixes hexops/mach#49
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-10-29 16:15:42 -07:00
Stephen Gutekanst
c5376934fd
glfw: add glfw.createWindowSurface
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-10-18 20:52:34 -07:00
Stephen Gutekanst
e7b8f2483c
glfw: add glfw.getPhysicalDevicePresentationSupport
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-10-18 20:52:34 -07:00
Stephen Gutekanst
658847c8d9
glfw: add glfw.getRequiredInstanceExtensions
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-10-18 20:52:34 -07:00
Stephen Gutekanst
12261c1d9c
glfw: update TODOs
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-10-16 18:39:57 -07:00
Stephen Gutekanst
fa25ebf037
glfw: add glfw.vulkanSupported
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-10-16 18:39:57 -07:00
Stephen Gutekanst
ad7d6b405d
glfw: add glfw.getInstanceProcAddress
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-10-16 18:39:57 -07:00
Stephen Gutekanst
41c2ef44c1
glfw: add TODOs for tracking 100% GLFW API coverage
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-10-16 18:39:57 -07:00