187: Change dynamic and vertex buffer offsets to u64 r=cormac-obrien a=kvark
This change makes offsets consistent across the board.
cc @cormac-obrien
Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
11: Add docs to most items r=kvark a=cormac-obrien
This does not include items re-exported from wgpu-native. We also still need examples, comprehensive panic documentation, etc.
Co-authored-by: Mac O'Brien <cormac@c-obrien.org>
182: Update Makefile r=kvark a=Napokue
More Windows compliant and change "wgpu-bindings" directory to the newly named directory "ffi". Also added some variables.
Co-authored-by: Timo de Kort <tdk@quadira.com>
179: Fix semaphore iteration on submit r=kvark a=kvark
Fixes#167
It's a bit silly: we used to do important work in a generated iterator, but the implementation of dx12 isn't complete enough and doesn't use our iterator at all. It should be fixed on both sides.
Co-authored-by: Dzmitry Malyshau <dmalyshau@mozilla.com>
4: Update wgpu-rs to reflect latest wgpu API r=kvark a=kyren
Not sure if everything here is correct, especially `RenderPassColorAttachmentDescriptor` and the `resolve_target` field.
Co-authored-by: kyren <kerriganw@gmail.com>
176: Fix command buffer and surface locking order r=grovesNL a=kvark
As with all the other locking problems, we just ensure that the locks are in the same order as the fields are in `Hub` structure. This is to be enforced at compile time with #66Fixes#174
Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
165: Document how to run example in readme r=kvark a=rukai
This took me a while to figure out, I'm sure others would find it useful in the readme.
Co-authored-by: Rukai <rubickent@gmail.com>
147: Merge '.rustfmt.toml' into 'rustfmt.toml' r=kvark a=Atul9
171: Handle resize in the triangle example r=kvark a=rukai
Handle window resize in the C triangle example.
This fixes https://github.com/gfx-rs/wgpu/issues/166.
The reason it was failing immediately on my machine, is because my window manager was automatically resizing the window.
If I resize the window reallly fast, I still get a few:
```
[2019-05-13T11:00:23Z ERROR gfx_backend_vulkan] [Validation] [ VUID-VkSwapchainCreateInfoKHR-imageExtent-01274 ] Object: 0x5650f23f2510 (Type = 3) | vkCreateSwapchainKHR() called with imageExtent = (798,615), which is outside the bounds returned by vkGetPhysicalDeviceSurfaceCapabilitiesKHR(): currentExtent = (590,498), minImageExtent = (590,498), maxImageExtent = (590,498). The Vulkan spec states: imageExtent must be between minImageExtent and maxImageExtent, inclusive, where minImageExtent and maxImageExtent are members of the VkSurfaceCapabilitiesKHR structure returned by vkGetPhysicalDeviceSurfaceCapabilitiesKHR for the surface (https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#VUID-VkSwapchainCreateInfoKHR-imageExtent-01274)
```
It can be merged as is. (Its certainly an improvement)
But if you know how to fix this last validation error, i would love to add it.
Co-authored-by: Atul Bhosale <atul1bhosale@gmail.com>
Co-authored-by: Rukai <rubickent@gmail.com>
163: Remove Rust wrapper and examples r=kvark a=kvark
Fixes#160Closes#60
Everything specific to Rust API is about to be moved to https://github.com/gfx-rs/wgpu-rs
It would let this project to be a proper mirror of mozilla-central piece, and it would encourage other authors to experiment with different approaches to Rust wrappers (i.e. borrowing versus non-borrowing).
cc @jdashg
Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>