Commit Graph
207 Commits
Author SHA1 Message Date
Mikko Lehtonen 56bc2d3dff Errorsinkify CommandEncoder 2020-09-13 01:11:18 +03:00
Mikko Lehtonen e767ee1664 Errorsinkify Texture 2020-09-12 23:26:35 +03:00
Mikko Lehtonen d493d8f1a2 Errorsinkify Buffer 2020-09-12 23:26:35 +03:00
Dzmitry Malyshau 568072fb18 Use implicit bind group layout in the mipmap example 2020-09-10 23:59:52 -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
Joshua Groves 09a928a2cb Update to latest web-sys 2020-09-10 01:09:50 -02:30
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 4dde3a68bc direct: ErrorSinkify Device methods 2020-09-05 00:21:53 +03:00
Mikko Lehtonen e660813072 direct: Implement on_uncaptured_error
Currently the sink is used only in Device::create_shader_module and
Device::create_render_pipeline, to be expanded in future commits.
2020-09-05 00:21:47 +03:00
Mikko Lehtonen 996ca2f786 direct: Move Device to its own struct 2020-09-05 00:21:11 +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
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]andJustin 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]andGabriel 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]andConnor 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]andAndrea 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]andDzmitry 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]andbootra-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