Dzmitry Malyshau
b3c1b1ccdd
Don't use log crate in include_spirv
2020-08-31 00:05:45 -04:00
Dzmitry Malyshau
19553fe697
Update wgpu with DepthComparison component and better shader validation
2020-08-28 17:37:33 -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
Andreas Reich
cb2072ed6a
Added debug marker/groups for ComputePass & CommandEncoder
2020-08-22 21:37:01 +02: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
80e24134ca
Update to hal-0.6
2020-08-17 11:41:58 -04:00
Connor Fitzgerald
dfac39efc1
Convert StagingBelt to take a &mut CommandEncoder
2020-08-16 23:10:14 -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
b07950ca8a
Expose get_bind_group_layout
2020-08-11 00:36:32 -04:00
Dzmitry Malyshau
924e4b38e4
Update wgpu for optional layouts
2020-08-10 16:42:52 -04:00
Kunal Mohan
e110672a53
Replace u32 with NonZeroU32 in TextureView
2020-08-05 22:54:41 +05:30
Dzmitry Malyshau
9b5cbd98ad
Update wgpu with the error model changes
2020-08-04 17:09:21 -04:00
Hiroaki Yutani
b9dcf32595
Update a doc's reference to create_buffer_init()
2020-08-01 17:57:13 +09:00
Kunal Mohan
9e365da89d
Replace NonZeroU32 with u32 in TextureViewDescriptor
2020-07-30 23:01:49 +05:30
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
Mac O'Brien
975e77b363
Panic using error Display rather than unwrapping
...
Fixes #489
2020-07-29 14:01:50 -05:00
Dzmitry Malyshau
514e7699ff
Update wgpu with view descriptor changes
2020-07-28 23:35:59 -04:00
Gabriel Majeri
b17dbdb0b4
Update to latest wgpu-core
2020-07-28 21:32:39 +03:00
bors[bot] and Gabriel Majeri
2f96127006
Merge #469
...
469: Update to latest `wgpu-core` device error handling r=kvark a=GabrielMajeri
Corresponding PR for https://github.com/gfx-rs/wgpu/pull/832
Co-authored-by: Gabriel Majeri <gabriel.majeri6@gmail.com >
2020-07-25 14:39:38 +00:00
Gabriel Majeri
5862ca3703
Unwrap errors from device functions
2020-07-25 07:46:32 +03:00
bors[bot] and Connor Fitzgerald
c75b0ee535
Merge #479
...
479: Split framework limit situation into requested/required r=kvark a=cwfitzgerald
Requiring individual examples be responsible for panicing if their features aren't supported is a bit bug-prone, so this encodes requirements in the framework and enforces it in the framework.
Additionally made the verbs consistent.
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2020-07-24 21:39:46 +00:00
Connor Fitzgerald
7e17789987
Split framework limit situation into requested/required, enforcing correctness in the framework
2020-07-24 17:37:04 -04:00
bors[bot] and Andrea Nardi
9a9bf53a6e
Merge #475
...
475: Made RenderBundleEncoder derive Debug r=kvark a=Andful
This is a continuation of the pull request #466 and should resolve the issue #458 .
Co-authored-by: Andrea Nardi <buongiorno19972@gmail.com >
2020-07-24 19:11:05 +00:00
Marvin Löbel
166fdc1052
Fix missing cows in some places
2020-07-24 17:24:30 +02:00
Andrea Nardi
4784c45be4
Made RenderBundleEncoder derive Debug
...
Signed-off-by: Andrea Nardi <buongiorno19972@gmail.com >
2020-07-24 14:59:40 +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
a7abefaaab
Fix two missed renames in docs
2020-07-24 02:08:01 +02:00
Marvin Löbel
eb9299d247
Update wgpu-rs for the Cow changes in wgpu
2020-07-23 00:48:13 +02:00
Andrea Nardi
019e7513b3
made fields of direct::Context private
2020-07-22 21:53:13 +02:00
Andrea Nardi
f1fa1e884b
implement debug for public types
...
Signed-off-by: Andrea Nardi <buongiorno19972@gmail.com >
2020-07-22 20:44:48 +02:00
bors[bot] and Dzmitry Malyshau
4e49a60804
Merge #465
...
465: Fix Vulkan portability support on macOS r=cwfitzgerald a=kvark
Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com >
2020-07-22 14:40:09 +00:00
bors[bot] and bootra-dev
96f4dda756
Merge #442
...
442: replace vertex_format_size macro with VertexFormat size function r=kvark a=bootra-dev
This pull request depends on https://github.com/gfx-rs/wgpu/pull/802
I'm not sure if multiple pull requests is the right way to handle this - let me know if I need to use another workflow.
Co-authored-by: bootra-dev <bootragames@gmail.com >
2020-07-21 20:31:45 +00:00
Dzmitry Malyshau
655828f88f
Fix Vulkan portability support on macOS
2020-07-21 12:39:40 -04:00
Rukai
87da83cb4f
create_buffer_with_data automatically handles its own alignment requirements
2020-07-22 01:21:50 +10:00
JMS55
38167f73b8
Fix typo
2020-07-20 17:41:24 -04:00
bors[bot] and Andrea Nardi
8a07a09610
Merge #453
...
453: Added Static Lifetime to Statically Loaded SPIR-V Modules r=kvark a=Andful
The commit enables `include_spirv!` to return a `ShaderModuleSource<'static>`.
This allows `ShaderModuleSource` to outlive the context in which `include_spirv!` was called in.
An example where this implementation would work but the previews would not is the following.
```rust
fn get_vertex_module<'a>() -> wgpu::ShaderModuleSource<'a> {
wgpu::include_spirv!("shader.vert.spv")
}
let vs_module = device.create_shader_module(get_vertex_module());
```
Also it makes logical sense for a statically loaded module to have a static lifetime.
The only downside that this change might bring is the redundant presence of the binary string (the non aligned binary string and the aligned binary string) but from the produced assembly I could only find one copy of the binary string so I don't think this is the case.
Co-authored-by: Andrea Nardi <buongiorno19972@gmail.com >
2020-07-20 17:39:39 +00:00
Andrea Nardi
dcd5b4675d
Added Static Lifetime to Statically Loaded SPIR-V Modules
...
Signed-off-by: Andrea Nardi <buongiorno19972@gmail.com >
2020-07-20 19:35:34 +02:00
Rukai
be388200dc
Update to latest wgpu
2020-07-21 01:51:55 +10:00
Gabriel Majeri
f4fe83be77
Implement more derives for Operations ( #450 )
...
* Implement more derives for `Operations`
* Use `trace` / `replay` features for serialization
* Set `store` to default
2020-07-19 20:20:45 -04:00
Connor Fitzgerald
17a53cf003
Remove Lifetimes from Push Constants
2020-07-17 14:52:33 -04:00
DasEtwas
db834c58ab
added Display and Error implementation for SwapChainError, imported Display and Error more nicely
2020-07-16 23:46:10 +02:00
bootra-dev
80c9441027
replace vertex_format_size macro with VertexFormat size function
2020-07-16 14:25:22 -04:00
bors[bot] and Gabriel Majeri
9f868cd2cb
Merge #439
...
439: Update to latest `wgpu-core` r=kvark a=GabrielMajeri
Pull in some of the latest changes from the `wgpu` repo
Co-authored-by: Gabriel Majeri <gabriel.majeri6@gmail.com >
2020-07-16 14:27:16 +00:00
Connor Fitzgerald
8bc91dc124
Impl Error for Error types
2020-07-16 09:23:00 -04:00
Gabriel Majeri
ddf1d0c3ab
Update to latest wgpu-core
2020-07-16 07:42:49 +03: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