bors[bot] and Dzmitry Malyshau
1f7716e22e
Merge #548
...
548: wgpu update with correctness fixes r=kvark a=kvark
Picks up a few important correctness fixes, such as https://github.com/gfx-rs/wgpu/pull/916 and https://github.com/gfx-rs/wgpu/pull/912
Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com >
2020-09-02 20:47:07 +00:00
Dzmitry Malyshau
2a0e0bd93d
wgpu update with correctness fixes
2020-09-02 16:45:20 -04:00
bors[bot] and Ivan Mironov
2c47406c4c
Merge #540
...
540: Improve and fix examples/texture-arrays r=cwfitzgerald a=im-0
Original examples/texture-arrays produces following output on my machine (Linux, Mesa/RADV 20.2-rc3, Radeon VII):

Quick investigation showed that only shaders with non-uniform indexing are problematic (first commit helped with this). Then, after searching on the web, I figured out that the problem is in missing `nonuniformEXT`. Second commit fixes this.
I am new to graphics programming, and `nonuniformEXT` may work just by accident. So please confirm my finding before merging.
Co-authored-by: Ivan Mironov <mironov.ivan@gmail.com >
2020-09-02 20:38:32 +00:00
bors[bot] and Hiroaki Yutani
cfe938dbd6
Merge #545
...
545: Remove bake.frag from shadow example r=kvark a=yutannihilation
Now that `fragment_stage` is a `Option`, I guess this is the case when we don't need fragment shader.
Co-authored-by: Hiroaki Yutani <yutani.ini@gmail.com >
2020-08-31 16:05:56 +00:00
Hiroaki Yutani
47c83600d2
Remove bake.frag
2020-09-01 00:22:19 +09:00
bors[bot] and Dzmitry Malyshau
d6ff0b6350
Merge #543
...
543: Don't use `log` crate in include_spirv r=kvark a=kvark
Fixes #541
Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com >
2020-08-31 04:06:16 +00:00
Dzmitry Malyshau
b3c1b1ccdd
Don't use log crate in include_spirv
2020-08-31 00:05:45 -04:00
Ivan Mironov
f19eef64d4
Add nonuniformEXT qualifier in examples/texture-arrays
...
This fixes corruption of output on some AMD GPUs.
2020-08-30 00:30:06 +05:00
Ivan Mironov
77166bba00
Use wgpu::include_spirv!() for all shaders in examples/texture-arrays
...
`wgpu::include_spirv!()` writes file name into log. This is useful to
understand which fragment shader is used (choice depends on device
features).
2020-08-29 22:41:14 +05:00
bors[bot] and Dzmitry Malyshau
13248eaf87
Merge #537
...
537: Update wgpu with DepthComparison component and better shader validation r=cwfitzgerald a=kvark
Depends on https://github.com/gfx-rs/wgpu/pull/898
Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com >
2020-08-28 21:39:11 +00:00
Dzmitry Malyshau
19553fe697
Update wgpu with DepthComparison component and better shader validation
2020-08-28 17:37:33 -04:00
crispweed
1935cfa28a
Removed erroneous zero size check related conditional in water example resize() ( #534 )
...
* The conditional at the start of resize() already tests for and exits on the zero width and height condition.
The conditional removed here was then getting run on every other call to resize(), which doesn't seem logical, doesn't correspond to the comment, and seemed to be causing at least one issue with rendered viewport going black during resize.
Fixes #532
(probably) Fixes #519
* Defensive coding to prevent various issues when window size goes to zero, e.g. NaN being passed in cgmath::perspective() aspect ratio parameter.
Fixes #531
2020-08-25 13:25:50 -04:00
bors[bot] and Justin Shrake
7396e92fcb
Merge #526
...
526: Add optional border_color to SamplerDescriptor r=kvark a=jshrake
Depends on https://github.com/gfx-rs/wgpu/pull/891
Co-authored-by: Justin Shrake <justinshrake@gmail.com >
2020-08-23 05:08:06 +00:00
Justin Shrake
04da221db4
Add optional border_color to SamplerDescriptor
2020-08-22 22:00:33 -07:00
bors[bot] and Andreas Reich
cef9bc54f2
Merge #527
...
527: Expose debug marker/groups for ComputePass and Encoder r=kvark a=Wumpf
Added uses of them to the examples to make sure everything compiles & works.
Marker on compute examples are arguably a bit awkward since they are so trivial. On the shadow example however it is a delight when inspected in RenderDoc! (and it will do wonders to my project which can run into situations with literally thousands of compute dispatches per frame 😅 )
RenderDoc, boids example:

RenderDoc, shadow example:

Co-authored-by: Andreas Reich <r_andreas2@web.de >
2020-08-22 21:56:15 +00:00
Andreas Reich
cb2072ed6a
Added debug marker/groups for ComputePass & CommandEncoder
2020-08-22 21:37:01 +02:00
bors[bot] and Dzmitry Malyshau
854b3f1c5d
Merge #523
...
523: Change buffer binding to not take a slice r=cwfitzgerald,grovesNL a=kvark
This has been a constant source of confusion w.r.t dynamic offsets.
What it looks like it's doing: user provides a slice of buffer visible to the shader. Just like they provide slices to vertex and index buffer bindings.
What it's actually doing: it takes the offset and size separately, modifying the offset later on based on the dynamic offset.
We don't need this confusion. Semantics is different from `BufferSlice` and so we should have a different API here.
Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com >
2020-08-22 01:57:56 +00:00
Dzmitry Malyshau
44c6910934
Change buffer binding to not take a slice.
...
Also switch the shadow example to use dynamic offsets.
Add the relevant feature to our example table.
2020-08-21 09:49:33 -04:00
bors[bot] and Jonathan Woollett-Light
fa964ba0b4
Merge #517
...
517: Added some explanatory comments to hello-compute example r=kvark a=JonathanWoollett-Light
Simply added some more comments explaing the basic compute example.
Also moved the lines:
```rust
let slice_size = numbers.len() * std::mem::size_of::<u32>();
let size = slice_size as wgpu::BufferAddress;
```
To be just before where they are used.
Co-authored-by: Jonathan Woollett-Light <jonathanwoollettlight@gmai.com >
2020-08-19 18:04:54 +00:00
Jonathan Woollett-Light
82245e5f77
Added some explanatory comments to hello-compute example
2020-08-19 18:16:10 +01:00
bors[bot] and JMS55
4bf2499336
Merge #516
...
516: Depend on less of futures r=cwfitzgerald a=JMS55
Co-authored-by: JMS55 <47158642+JMS55@users.noreply.github.com >
2020-08-18 23:24:39 +00:00
JMS55
8108f50c07
Shrink futures dependencies
2020-08-18 19:23:53 -04:00
bors[bot] and Connor Fitzgerald
bdddc3942b
Merge #515
...
515: Add logging information to README r=kvark a=cwfitzgerald
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
wgpu-v0.6.0
2020-08-18 15:11:41 +00:00
Connor Fitzgerald
c685b40407
Add logging information
2020-08-18 11:08:15 -04:00
bors[bot] and Dzmitry Malyshau
5642e2dfe2
Merge #514
...
514: Release version 0.6 r=kvark a=kvark
Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com >
2020-08-18 15:04:21 +00:00
Dzmitry Malyshau
b370932078
Release version 0.6
2020-08-18 10:31:27 -04:00
bors[bot] and Connor Fitzgerald
02c1fa563f
Merge #513
...
513: Update parking-lot to 0.11 r=trivial a=cwfitzgerald
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2020-08-17 22:00:50 +00:00
Connor Fitzgerald
dc047f07e9
Update parking-lot to 0.11
2020-08-17 17:59:58 -04:00
bors[bot] and Connor Fitzgerald
da73235ba3
Merge #512
...
512: Convert to using independent subscriber implementation r=kvark a=cwfitzgerald
https://github.com/gfx-rs/wgpu/pull/881 but for wgpu-rs.
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2020-08-17 21:39:45 +00:00
Connor Fitzgerald
14357efd17
Convert to using independent subscriber implementation
2020-08-17 16:31:28 -04:00
bors[bot] and Dzmitry Malyshau
809a3b5ba7
Merge #510
...
510: Update to hal-0.6 r=kvark a=kvark
Tested on macOS and Linux so far (examples)
Co-authored-by: Dzmitry Malyshau <dmalyshau@mozilla.com >
2020-08-17 15:42:33 +00:00
Dzmitry Malyshau
80e24134ca
Update to hal-0.6
2020-08-17 11:41:58 -04:00
bors[bot] and Connor Fitzgerald
7da7058d32
Merge #509
...
509: Convert StagingBelt to take a &mut CommandEncoder r=kvark a=cwfitzgerald
This allows `StagingBelt` to be `Send`, very important for async/highly multithreaded applications. Also added a bit more documentation.
Tested on the skybox example.
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2020-08-17 03:11:22 +00:00
Connor Fitzgerald
dfac39efc1
Convert StagingBelt to take a &mut CommandEncoder
2020-08-16 23:10:14 -04:00
bors[bot] and Dzmitry Malyshau
b0e1f055c6
Merge #505
...
505: Update wgpu to 7e8b51b428 r=kvark a=kvark
Includes https://github.com/gfx-rs/wgpu/pull/876
Co-authored-by: Dzmitry Malyshau <dmalyshau@mozilla.com >
2020-08-13 21:42:27 +00:00
Dzmitry Malyshau
a535ca42e7
Update wgpu to 7e8b51b428
2020-08-13 17:41:05 -04:00
bors[bot] and Dzmitry Malyshau
333aeb73c1
Merge #504
...
504: Update wgpu with pipeline labels r=trivial a=kvark
Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com >
2020-08-13 17:05:00 +00:00
Dzmitry Malyshau
1e695f2803
Update wgpu with pipeline labels
2020-08-13 13:04:23 -04:00
bors[bot] and Dzmitry Malyshau
471d2a1a48
Merge #503
...
503: Update for the wgpu grand refactor r=kvark a=kvark
Depends on https://github.com/gfx-rs/wgpu/pull/873
Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com >
2020-08-13 04:27:09 +00:00
Dzmitry Malyshau
ed9a2ca6df
Update for the wgpu grand refactor
2020-08-13 00:26:40 -04:00
bors[bot] and Marvin Löbel
d3edb9509c
Merge #501
...
501: Fighting back the bovine forces r=kvark a=Kimundi
<img src="https://dcassetcdn.com/w1k/submissions/399000/399327_d0ba.jpg " width="300">
"Good work boys, we'll get 'em next time!"
Co-authored-by: Marvin Löbel <loebel.marvin@gmail.com >
2020-08-12 14:31:00 +00:00
Marvin Löbel
e9cf243663
Udderly remove cows from the following APIs:
...
- BufferDescriptor
- CommandEncoderDescriptor
- RenderBundleDescriptor
- TextureDescriptor
- TextureViewDescriptor
- PipelineLayoutDescriptor
- SamplerDescriptor
- BindGroupDescriptor
- ProgrammableStageDescriptor
- RenderPassDescriptor
- RenderPipelineDescriptor
- BindGroupLayoutDescriptor
- VertexStateDescriptor
- VertexBufferDescriptor
- RenderBundleEncoderDescriptor
- ComputePipelineDescriptor
Also change anisotropy_clamp to use NonZeroU8
2020-08-12 10:21:38 +02:00
bors[bot] and Dzmitry Malyshau
8bfde457f1
Merge #502
...
502: Expose get_bind_group_layout r=grovesNL a=kvark
Returning a new object is fine for BGLs specifically and for these cases in particular because we made sure the refcount is bumped (and BGL has a special kind of refcount) in https://github.com/gfx-rs/wgpu/commit/f164fd1f46390d6a51acc1c1082cc8e0c23dbb8c
Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com >
2020-08-11 12:39:23 +00:00
Dzmitry Malyshau
b07950ca8a
Expose get_bind_group_layout
2020-08-11 00:36:32 -04:00
bors[bot] and Dzmitry Malyshau
0414f4b550
Merge #500
...
500: Update wgpu for optional layouts r=3rdtimeisthecharm a=kvark
Fixes #498
Includes https://github.com/gfx-rs/wgpu/pull/872 and https://github.com/gfx-rs/wgpu/pull/870
Co-authored-by: Dzmitry Malyshau <dmalyshau@mozilla.com >
2020-08-10 21:54:18 +00:00
Dzmitry Malyshau
924e4b38e4
Update wgpu for optional layouts
2020-08-10 16:42:52 -04:00
bors[bot] and Kunal Mohan
3069da1004
Merge #496
...
496: Replace u32 with NonZeroU32 in TextureView r=kvark a=kunalmohan
Includes https://github.com/gfx-rs/wgpu/pull/865
Co-authored-by: Kunal Mohan <kunalmohan99@gmail.com >
2020-08-05 17:45:46 +00:00
Kunal Mohan
e110672a53
Replace u32 with NonZeroU32 in TextureView
2020-08-05 22:54:41 +05:30
bors[bot] and Dzmitry Malyshau
7087e3141c
Merge #494
...
494: Update wgpu with the error model changes r=cwfitzgerald a=kvark
Depends on https://github.com/gfx-rs/wgpu/pull/857
Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com >
2020-08-05 00:00:21 +00:00
Dzmitry Malyshau
9b5cbd98ad
Update wgpu with the error model changes
2020-08-04 17:09:21 -04:00