Dzmitry Malyshau
2a4ccc60fb
Drop for surfaces and adapters
2020-11-16 16:47:21 -05:00
Marvin Löbel
4e819d9c03
Clarify docs for Queue::write methods
2020-10-22 17:40:23 +02:00
Dzmitry Malyshau
507770ad73
Immediate resource destruction
2020-10-11 23:17:37 -04:00
Dzmitry Malyshau
adcd50d6c9
Update wgpu with push constants API
2020-10-11 23:17:37 -04:00
bors[bot] and Maarten de Vries
690ec8bfe6
Merge #574
...
574: Implement AsRef for BufferView r=kvark a=de-vri-es
This PR implements `AsRef` and `AsMut` in addition to `Deref` and `DerefMut` for `BufferView` and `BufferViewMut`.
This allows the buffer views to be used directly by generic code that wants an `AsRef<[u8]>`.
It's also subjectively a small win when you want to pass the views to non-generic code. I find `buffer.as_ref()` clearer than `&*buffer`. That also goes for `buffer.deref()`, but `Deref` is not in the prelude.
Co-authored-by: Maarten de Vries <maarten@de-vri.es >
2020-09-21 15:43:25 +00:00
Maarten de Vries
74ee772214
Implement AsRef for BufferView
...
Remove AsRef<[u8]> for BufferViewMut.
2020-09-21 17:35:30 +02:00
Connor Fitzgerald
c900f38ae9
Convert swapchain.get_current_frame to a immutable reference
2020-09-20 14:38:43 -04:00
PENGUINLIONG
87f646a83b
Notes on LoadOp
2020-09-15 14:43:30 +08:00
Mikko Lehtonen
2e1b653658
Report out of memory errors
2020-09-14 23:26:20 +03:00
Dzmitry Malyshau
40fa5e4d71
Document the bind buffer alignment
2020-09-13 00:10:11 -04:00
Dzmitry Malyshau
a9e9f8cabc
Update wgpu with the polygon modes support, use in the cube example
2020-09-10 22:02:05 -04:00
Mikko Lehtonen
daaf14fdd3
impl std error for Error
...
Relies more on the source() of error for informative messages
2020-09-05 01:29:03 +03:00
Mikko Lehtonen
a42d8d7e56
Add Device::on_captured_error
...
The implementation is dummy one
2020-09-03 09:37:09 +03:00
Mikko Lehtonen
4d3da5d7b3
Don't import Error directly
2020-09-03 09:34:10 +03: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
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
Hiroaki Yutani
b9dcf32595
Update a doc's reference to create_buffer_init()
2020-08-01 17:57:13 +09: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
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
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
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
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
Connor Fitzgerald
8bc91dc124
Impl Error for Error types
2020-07-16 09:23:00 -04: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
Lachlan Sneff
42a8c480a7
Split render pass docs into multiple sections, divided by feature
2020-07-09 11:06:09 -04:00
Gabriel Majeri
eb91482d0b
Update to new wgpu-core render pipeline API
2020-07-07 21:02:11 +03:00
Connor Fitzgerald
cc5ff8e992
Implement MultiDrawIndirect Extensions
2020-06-28 01:39:17 -04:00
Gabriel Majeri
3720e96321
Improve crate docs
2020-06-27 21:25:19 +03:00
Connor Fitzgerald
5529b60da4
Convert Extensions + Capabilities into Features
2020-06-26 01:27:57 -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