Zsolt Bölöny
16427aed19
Rename TextureUsage::OUTPUT_ATTACHMENT to RENDER_ATTACHMENT
2020-11-09 10:35:55 +01:00
Dzmitry Malyshau
a9e9f8cabc
Update wgpu with the polygon modes support, use in the cube example
2020-09-10 22:02:05 -04:00
Rukai
085e50c798
Replace unsafe impl Pod with safe derive
2020-09-08 23:39:12 +10: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
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
Dzmitry Malyshau
1e695f2803
Update wgpu with pipeline labels
2020-08-13 13:04:23 -04:00
Dzmitry Malyshau
ed9a2ca6df
Update for the wgpu grand refactor
2020-08-13 00:26:40 -04: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
Dzmitry Malyshau
924e4b38e4
Update wgpu for optional layouts
2020-08-10 16:42:52 -04:00
Dzmitry Malyshau
9b5cbd98ad
Update wgpu with the error model changes
2020-08-04 17:09:21 -04:00
OptimisticPeach
2512c30e57
Combine create_buffer and create_buffer_with_dataCombines both by creating a new buffer descriptor which can deal with both of copying and allocating.
2020-07-29 21:35:21 -04:00
Marvin Löbel
166fdc1052
Fix missing cows in some places
2020-07-24 17:24:30 +02:00
Dzmitry Malyshau
b76e560432
Update wgpu, use defaults for rasterizer states, use depth-clamping
2020-07-23 22:35:13 -04:00
Marvin Löbel
eb9299d247
Update wgpu-rs for the Cow changes in wgpu
2020-07-23 00:48:13 +02:00
Connor Fitzgerald
a67047297c
Implement PUSH_CONSTANTS feature
2020-07-13 15:43:46 -04:00
Gabriel Majeri
e01e93a619
Use common types from wgpu-types
2020-07-13 20:12:27 +03:00
Gabriel Majeri
009d062482
Unwrap errors from transfer API
2020-07-13 14:13:23 +03:00
Dzmitry Malyshau
aef72d7fd7
Refactor examples API, improve belt documentation and logic
2020-06-23 23:51:47 -04:00
Dzmitry Malyshau
4aa7abdff8
Staging belt, use LocalSpawner for the framework
2020-06-23 23:15:47 -04:00
Dzmitry Malyshau
3f57811e7a
Another refactor of RenderPassDescriptor API
2020-06-20 19:07:06 -04:00
Dzmitry Malyshau
330986bc66
Update wgpu without peek-poke
2020-06-20 17:20:20 -04:00
Dzmitry Malyshau
65718c1e25
Add include_spirv macro
2020-06-18 01:04:42 -04:00
Dzmitry Malyshau
3f0e11fe47
Remove interface blocks from the water shaders
2020-06-17 11:03:02 -04:00
Dzmitry Malyshau
47cbde6782
Update with minBufferBindingSize
2020-06-17 00:13:47 -04:00
OptimisticPeach
2501a06cdd
Add water example
2020-06-16 02:33:14 -04:00