Commit Graph
70 Commits
Author SHA1 Message Date
Daniel Salvadori 443a0d661f Create vulkan instance on windows 2019-09-03 17:41:52 -03:00
Dzmitry Malyshau d37ecdf248 Handle frame acquisition failure internally 2019-08-29 22:27:21 -04:00
Dzmitry Malyshau 175e992149 DX12/DX11 hookup, improved adapter selection 2019-08-29 09:44:34 -04:00
Dzmitry Malyshau b414b9f373 Formatting pass 2019-08-27 21:11:07 -04:00
Dzmitry Malyshau 26e5b4258d Add a mask of backends for local adapter selection 2019-08-27 21:08:13 -04:00
Dzmitry Malyshau e84ae4a4b2 Feature-less backend selection
This PR removes optional backend features in favor of run-time
selection at the `request_adapter` entry point. Adapters from all
supported gpu backends on the platform are reported.

It also makes gfx-rs dependency to be public (for now).
2019-08-27 20:55:49 -04:00
Dzmitry Malyshau 87b61d206c Fix instance init on Windows and check it on CI 2019-08-22 11:29:45 -04:00
Dzmitry Malyshau 9cc7886782 Quick fix for Vulkan init on Windows 2019-08-22 10:17:31 -04:00
Dzmitry Malyshau 1d36203c9a Raw window handle support instead of winit 2019-08-20 23:41:14 -04:00
Dzmitry Malyshau f30cb20508 Make winit truly optional 2019-08-17 23:37:16 -04:00
Dzmitry Malyshau f82ceba3c2 Minor renames to address the review comments 2019-08-16 22:36:30 -04:00
Dzmitry Malyshau 37afa0d98a Update API according to the upstream spec
Includes changes in texture view creation, enumeration mapping,
binding types, and more.
2019-08-15 23:24:35 -04:00
Rukai e61b16f7ed Update to gfx hal 0.3 2019-08-11 09:39:52 +10:00
Dzmitry Malyshau 1ed15f94dc Add some more comments about Access and Token' 2019-07-04 23:02:22 -04:00
Dzmitry Malyshau 6085dcf33b Enforce the HUB lock order 2019-07-04 14:43:54 -04:00
Andrew Gaspar b47f01ea17 Address code review comments 2019-07-01 21:13:26 -06:00
Andrew Gaspar 0d555fb688 Add logic to pick highest performance GPU on DirectX 12
Always select the first GPU in Integrated-Low/Discrete-High category,
except when querying `LowPower`, in which case the last Discrete GPU
is used.
2019-06-29 16:50:41 -06:00
Dzmitry Malyshau 2d5e67d6d5 Basic data structure to track mip levels and layers of a texture 2019-06-12 12:15:51 -04:00
Alexis Sellier 6794333dba Expose and validate buffer offset alignment 2019-06-01 20:25:12 +02:00
kyren af9aa78e3a Try to keep the API slightly closer to the standard API
by making InstanceId a type alias to SurfaceId
2019-05-21 17:40:41 -04:00
kyren 8680195c91 Add gfx-backend-gl support
Also adds glutin-specific support methods to wgpu-native
2019-05-19 15:10:52 -04:00
Dzmitry Malyshau 1875523a6a Rust formatting pass 2019-05-14 13:00:00 -04:00
Dzmitry Malyshau 6a1dcb9565 API update with naming, formats, and extra fields 2019-05-14 10:31:25 -04:00
Dzmitry Malyshau 5597846018 Update to gfx-hal 0.2 2019-05-13 11:07:28 -04:00
Dzmitry Malyshau 61fca00f34 Remove wgpu-bindings in favor of configuration scripts 2019-04-30 12:45:05 -04:00
Dzmitry Malyshau 52ee3e019c Remote example and improved header, tested on CI 2019-04-29 22:41:09 -04:00
Atul Bhosale af38d79d79 Format code using 'cargo fmt' 2019-04-26 22:01:47 +05:30
Dzmitry Malyshau 41141b1ae0 Wait for fences instead of device idle 2019-04-24 22:42:49 -04:00
Dzmitry Malyshau 0b51c8a9d2 Clean up use statements.
Use copyless::VecHelper and ArrayVec for some things.
Refactor map_buffer internals.
2019-03-21 12:05:53 -04:00
Dzmitry Malyshau 451489025c Validate uniform buffer alignments, enforce map alignment 2019-03-20 14:43:25 -04:00
Dzmitry Malyshau 485894ca81 Enable windows in Travis 2019-03-19 10:49:30 -04:00
Dzmitry Malyshau 508b724dd7 Helpful error message on empty backend 2019-03-19 09:20:34 -04:00
Joshua Groves a55502c1e2 Remove winit from bindings generation 2019-03-07 12:37:50 -07:00
Tristam MacDonald 1fe59e71db run cargo fmt 2019-03-05 20:41:24 -08:00
Dzmitry Malyshau 5b129704a0 Storage indexing 2019-02-26 10:27:51 -05:00
Dzmitry Malyshau e16ceafb81 Epoch tracking of indices 2019-02-26 10:12:11 -05:00
Dzmitry Malyshau bd0de53f8e First bits of wgpu-remote 2019-02-26 10:10:07 -05:00
Dzmitry Malyshau f2a0e6fe15 Swapchain resize, merged with the surface 2019-02-21 15:59:24 -05:00
Dzmitry Malyshau 00e0347b8c Renamed the impl methods, switched structure argumetns from references to contained items 2019-02-15 10:13:04 -05:00
Dzmitry Malyshau 2e21285434 Separate object identity from storage 2019-02-14 14:28:55 -05:00
Dzmitry Malyshau 1c95eef7a3 Depenency gfx update to 0.1.1 2019-02-05 09:45:52 -05:00
Dzmitry Malyshau 3d47436129 rust: vertex/index binding 2019-02-03 15:51:54 -05:00
Dzmitry Malyshau d4c8c881d0 gfx framework GLSL reading, most of the cube example 2019-02-02 22:48:53 -05:00
Dzmitry Malyshau e8e5938e06 Linux support for GLFW example 2019-01-24 12:33:34 -05:00
Joshua Groves 3d98457eb9 Add support for GLFW on Windows 2019-01-24 12:08:32 -05:00
Joshua Groves af1e240655 Add macOS surface creation 2019-01-24 12:08:32 -05:00
Dzmitry Malyshau 5deb6e2047 DX11 support 2019-01-17 23:03:11 -05:00
Dzmitry Malyshau c868db2cc7 Windowing in the triangle example, more presentation bits 2019-01-17 09:42:59 -05:00
Dzmitry Malyshau e32112a89a Swapchain exposed on Rust side 2019-01-16 09:15:56 -05:00
Dzmitry Malyshau ba8828eb5b Refactor includes, collect swapchain links on RP begin 2019-01-15 09:09:29 -05:00