Commit Graph

42 Commits

Author SHA1 Message Date
Rua
c68882eb7f
Replace deprecated Error::cause with source (#1532)
* Replace deprecated Error::cause with source

* Changelog
2021-04-04 09:31:35 +07:00
sburton84
3449bee270
Call the correct surface creation function on Windows. (#1410)
On Windows 'Surface::from_hwnd' should be called rather than 'Surface::from_wayland'.
2020-10-08 14:23:16 +07:00
Antonino Siena
b0c8eca283
Improve vulkano-win (#1386)
* Use winit's hinstance() function

* Require HasRawWindowHandle for the window and remove handle parameter

Co-authored-by: Antonino Siena <a.siena@gmx.de>
2020-06-12 11:12:47 -05:00
Antonino Siena
c5dd6eda3e
Feature: Create a Surface from a RawWindowHandle (#1381)
* Feature: Create a Surface from a RawWindowHandle

* Comment on the new features

* Updated changelog

* Corrected feature name

* Compiler error corrections

* Empty commit for CI

Co-authored-by: Antonino Siena <a.siena@gmx.de>
2020-06-09 03:23:22 -05:00
Trangar
737016c047
Ran rustfmt and added rustfmt checkbox to pull req template (#1367)
* Ran rustfmt, updated PULL_REQUEST_TEMPLATE.md  and added a rustfmt check to CI

* Disabled the travis rustfmt check
2020-06-04 13:47:34 -05:00
one-bit
c96309e55e
Fixed warnings (#1363)
* Fixed all warnings as of Rust 1.43.1

* Update CHANGELOG_VULKANO.md

- Fixed all warnings as of Rust 1.43.1
2020-05-12 19:57:40 -05:00
jeffw387
315f63abe5
new function to check image/device compatibility (#1339)
* new function to check image/device compatibility

* merged master to get rustfmt changes, format all
2020-05-09 19:36:20 -05:00
Austin Johnson
18189e0724
implement exclusive fullscreen (#1310)
* implement exclusive fullscreen

* fullscreen ext should be device ext

* add acquire/release

* require VK_KHR_get_surface_capabilities2

* fullscreen_exclusive is now an enum; explicit acquire/release methods added; FullscreenExclusiveError added to handle errors; FullscreenExclusiveLost varients added to acquire and present related errors

* add checks for double acquire/release; require AppControlled for acquire/release functions

* update examples and tests; resolve issue with try_gpu_lock() on SwapchainImage; update changelogs
2020-02-04 18:57:16 -06:00
Austin Johnson
56728c565f
build_vk_surface now takes EventLoopWindowTarget instead of EventLoop; added multi-window example (#1303) 2020-01-24 22:09:04 -06:00
Austin Johnson
b95c058f9a
upgrade winit to 0.20 and cocoa to 0.20 2020-01-23 01:37:12 -06:00
Austin Johnson
2e6868a0c0
Downgrade Winit back to 0.19; Release Vulkano 0.16 (#1267)
* fix after revert; release 0.16

* bump shaders version
2019-11-01 10:12:17 -05:00
Antonino Siena
2bfed3db8b Support surface creation with winit >= 0.20 (#1239)
* Version change

* Allowed surface creation with winit >= 0.20

* Latest winit version

* Migrate to latest winit

* Migrated all examples to the latest winit version

* Version increment

* Formatting change

* Removed trailing white space

* Corrected method calls

* Missing _ in OSX methods

* Minor version change

* Minor version change
2019-10-18 14:24:20 -05:00
Lucas Kent
fc6ac6fec1
Fix warnings on nightly (#1213) 2019-07-02 18:25:58 +10:00
Lucas Kent
9a08414054
Upgrade vulkano-win and vulkano-shaders to rust 2018 (#1134)
* Upgrade vulkano-shaders to rust 2018
* Upgrade vulkano-win to rust 2018
2018-12-11 18:26:04 +11:00
Lucas Kent
d507cf4555
* Upgrade to winit 0.18 (#1105)
*   Setup macOS travis CI.
2018-11-08 12:12:20 +11:00
Michael Morgan
7a11120350 Add logo to HTML documentation in other crates (#1081) 2018-10-20 10:34:32 +11:00
Lucas Kent
b6c4d84e61
Removed mir support (#1060) 2018-10-03 07:44:48 +10:00
Andrew Hickman
1d521d35d2 Don't force the surface to take ownership of the window (#991)
* Don't force the surface to take ownership of the window

* Update changelog
2018-07-28 15:14:37 +02:00
Nicholas Lordello
37fcd507d0 Use libvulkan.dylib instead of MoltenVK by default on macOS (#948) 2018-04-19 09:48:33 +02:00
Yanchi Toth
f611365225 Fix macos compilation (#929)
* Fix compilation of vulkano-win

* Update metal-rs to latest
2018-03-02 12:14:34 +01:00
Branan Riley
e9104208c4 Allow Surface to reference an external window object (#848)
* Allow Surface to reference an external window object

This makes the Surface struct generic across a Window
type, so that a surface can own (or reference, if W is
an Arc) an external window object.

This also updates vulkano-win to take advantage of this.
There is no longer a dedicated Window struct in vulkano-win.
Instead, the Surface is simply passed ownership of the
winit::Window.

This fixes #844

* Update examples for new surface API

* Update Changelog

* Remove unnecessary send/sync bounds

* Update swapchain docs for new Surface behavior
2018-02-13 14:29:36 +01:00
Pyry Kontio
ddb66a5513 Fixed the layer scaling issue on macOS. (#830)
* Fixed the layer scaling issue on macOS. Changed the triangle example to use the surface extents instead of window dimensions, as that seems to be a more robust source of correct information.

* Updated changelog. Fixed other examples' window extent problem.
2017-09-26 10:29:26 +02:00
Nicolas Koch
4e04359e40 Remove redundant unsafe 2017-07-24 12:56:35 +02:00
Pierre Krieger
ef466eac85 Run rustfmt on the code 2017-06-27 08:47:16 +02:00
Gabriel Majeri
0540af70d8 Fix unused imports
On some platforms, some imports are not required.
2017-06-20 06:53:41 +03:00
Lloyd
0f73a6c65c Fix functions taking ref instead of value 2017-06-06 20:07:00 +09:00
Lloyd
36529ff873 Fix actual type not being a reference 2017-06-06 19:51:58 +09:00
Pierre Krieger
41eb21c291 Merge branch 'master' into moltenvk 2017-06-03 13:04:17 +02:00
Pierre Krieger
c6fb7a84bd Use #[cfg] for the OSX code in vulkano-win 2017-05-26 20:26:05 +02:00
Pierre Krieger
a3c30dc183 Creating a Surface now takes the Arc<Instance> by value 2017-05-26 10:51:28 +02:00
Andrew P. Lentvorski
40e0b24127 added code to get to OutOfDeviceMemory error 2017-05-22 09:52:36 -07:00
Pierre Krieger
0dddd6f7e5 Merge branch 'master' into moltenvk 2017-05-16 13:01:40 +02:00
Benjamin Saunders
f3d7ca4b0d Update vulkano-win and examples to winit 0.6 2017-05-07 19:08:18 -07:00
Robert Hurst
7a41019cda
ensure macOS is excluded from unix target 2016-10-08 00:03:38 -07:00
Pierre Krieger
c46ad0079e Make vulkano-win work with macos 2016-10-07 10:11:26 +02:00
lummax
ef7ab2dc24 vk-sys/vulkano{-win}: correct type of native window
This commit changes the definitions for `window` in `XlibSurfaceCreateInfoKHR`
and `XcbSurfaceCreateInfoKHR` with to `u64` (xlib) and `u32` (xcb) (see
definitions below).

`vk-sys` defined `XlibSurfaceCreateInfoKHR` and `XcbSurfaceCreateInfoKHR` with
`pub window: *const c_void`. This propagates through to the API in
`vulkano::swapchain::Surface::from_{xlib,xcb}()`. As the native window types
in xcb/xlib are defined as unsigned ints, this may lead to the belief that a
pointer to such an integer is required. `vulkano` will create a `Surface` but
this surface will not be supported by any queue family.

xlib: https://cgit.freedesktop.org/xorg/proto/x11proto/tree/X.h#n96 and
      https://cgit.freedesktop.org/xorg/proto/x11proto/tree/X.h#n66

      (search `Windows`)

xcb: https://xcb.freedesktop.org/manual/group__XCB____API.html

    (search `xcb_window_t`)
2016-09-01 18:26:12 +02:00
Pierre Krieger
1610fd81a1 Return proper errors when getting the extensions supported by core 2016-08-19 19:04:54 +02:00
Nicolas Koch
b2897a419f Support for intel linux driver
fixes #204
2016-07-31 12:33:08 +02:00
Nicolas Koch
e7c0282825 Window creation: Add support for wayland on unixes 2016-05-23 16:19:35 +02:00
Pierre Krieger
37fc12042e Fix vulkano-win for Linux 2016-04-23 13:40:10 +02:00
Pierre Krieger
27f7fb5f75 Make examples cross-platform 2016-04-23 13:32:31 +02:00
Pierre Krieger
e82741aaf9 Add vulkano-win crate and move out examples 2016-04-23 13:24:56 +02:00