Commit Graph
89 Commits
Author SHA1 Message Date
Dzmitry Malyshau d08118b535 Add missing license headers to wgpu-native 2019-11-21 16:53:51 -05:00
Dzmitry Malyshau 3908d2b5a1 Cleanup exports 2019-11-19 10:59:24 -05:00
Dzmitry Malyshau 6c632d1366 Separate native from the core 2019-11-16 00:36:23 -05:00
Dzmitry Malyshau cb692620ca Don't depend on gfx-auxil 2019-11-02 00:24:36 -04:00
Dzmitry Malyshau e37149b3a8 Remove all the IPC 2019-10-25 12:06:12 -04:00
Dzmitry Malyshau 50997544c6 Formatting pass 2019-10-24 14:53:45 -04:00
Dzmitry Malyshau 4851284150 Switch from remote feature to local 2019-10-24 14:52:44 -04:00
Terrence Cole 78fbbba5e9 Support Limits::max_bind_groups (#348)
* Pass max_bind_count down into Binder.
* Use the existing hub.
* Remove accidental newline.
2019-10-14 21:57:05 -04:00
Dzmitry Malyshau 9c58a5d11a Add license headers to all Rust sources 2019-10-04 15:24:17 -04:00
Joshua Groves e430a4cf40 Fallback to D32 when D24 isn't available 2019-09-27 23:44:26 -06:00
bors[bot]andPaul Kernfeld c3609d71c9 Merge #331
331: Add a function to describe a device r=kvark a=paulkernfeld

This is for https://github.com/gfx-rs/wgpu-rs/pull/29

This successfully describes the device on my machine. I think I may have done the imports wrong. If so, apologies.

Co-authored-by: Paul Kernfeld <paulkernfeld@gmail.com>
2019-09-12 01:42:08 +00:00
Paul Kernfeld 36cccb827d Add a way to describe an adapter 2019-09-09 20:28:30 -04:00
Dzmitry Malyshau fe89c52834 Make Vulkan optional on Apple 2019-09-07 21:51:34 -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 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 6fdeea23c5 Refactor Id logic.
This change merges `Id` with `GenericId` and abstracts away its contents, exposing itself as just u64. This will allow us to encode the backend type into it, in addition to index and epoch.

It also refactors `TypedId` to have a single function extracting all the fields, since this is how it's used all the times anyway.
2019-08-27 20:54:30 -04:00
Dzmitry Malyshau 1d36203c9a Raw window handle support instead of winit 2019-08-20 23:41:14 -04:00
Joshua Groves 8d8c670da1 Manually expand ID macros 2019-08-20 09:08:05 -02:30
Dzmitry Malyshau f30cb20508 Make winit truly optional 2019-08-17 23:37:16 -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 5763285e40 Remove pod add read_spirv 2019-08-12 20:30:31 +10:00
Rukai e61b16f7ed Update to gfx hal 0.3 2019-08-11 09:39:52 +10:00
Dzmitry Malyshau 6085dcf33b Enforce the HUB lock order 2019-07-04 14:43:54 -04:00
Paul Kernfeld ccc0e65b03 Re-export Pod from gfx-hal
This way, Pod can be used as a trait bound in wgpu-rs
2019-06-23 19:10:03 -04:00
Dzmitry Malyshau aca3f1e64d Fix compile warnings when no features are selected 2019-06-13 11:26:44 -04:00
John W. Bruce 057719fdf5 Add Naïve Debug Derives Where Possible
This adds #[derive(Debug)] to all public structs and enums possible.
This also required adding it to some private types that they
transitively depend on. However, the following types depend on types
from external crates that do not implement Debug:

* device::Device
* hub::Hub
* swap_chain::Surface
* swap_chain::SwapChain

To support these types, we would need to use either custom Debug impls
or something like Derivative.

This helps improve the situation in #76.
2019-06-07 14:19:05 -07: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 664fcdc1fa Add GPU timeout, fix active submission processing order 2019-05-09 14:59:28 -04:00
psincf 2e30c611ae Make IdentityManager strongly typed 2019-05-04 01:20:56 +02:00
psincf 10547b937f add serde into scope and fix wgpu-remote 2019-05-01 13:31:56 +02:00
psincf 565e5fdfeb make trait TypedId:From<Id> 2019-05-01 12:15:23 +02:00
psincf bbef2b7622 Put new_id! in define_id! 2019-05-01 11:55:28 +02:00
psincf bfc983a8cc Clean code 2019-05-01 11:55:28 +02:00
psincf 44cf64495a Use strong type 2019-05-01 11:55:28 +02:00
Dzmitry Malyshau 61fca00f34 Remove wgpu-bindings in favor of configuration scripts 2019-04-30 12:45:05 -04:00
Dzmitry Malyshau 0011d9f4ff Global manager for instance names on the remote client 2019-04-30 09:19:40 -04:00
Dzmitry Malyshau 52ee3e019c Remote example and improved header, tested on CI 2019-04-29 22:41:09 -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 d631b2c6f2 Fix depth clamping semantics 2019-02-26 22:36:58 -05:00
Dzmitry Malyshau ce08429729 Make Id serializable 2019-02-26 10:12:11 -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 c21420399a Refactored tracking, now includes the views 2019-02-22 12:59:29 -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