Commit Graph
534 Commits
Author SHA1 Message Date
myfreeweb eced35ecef Staging belt: do not panic by unwrapping send result in recall (fixes #634) (#636) 2020-11-24 23:10:48 -05:00
bors[bot]andAndreas Reich c1eda83167 Merge #529
529: Expose debug marker/groups for ComputePass and Encoder for 0.6 r=kvark a=Wumpf

Same as #527 as requested. Bumped version to 0.6.1

Co-authored-by: Andreas Reich <r_andreas2@web.de>
2020-08-23 14:57:46 +00:00
Andreas Reich fec99cd32c bumped patch version 2020-08-23 09:02:56 +02:00
Andreas Reich 547e96a663 Added debug marker/groups for ComputePass & CommandEncoder
# Conflicts:
#	examples/hello-compute/main.rs
#	examples/shadow/main.rs
2020-08-23 09:02:17 +02:00
bors[bot]andConnor 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]andDzmitry 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]andConnor 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]andConnor 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]andDzmitry 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]andConnor 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]andDzmitry 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]andDzmitry 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]andDzmitry 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]andMarvin 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]andDzmitry 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]andDzmitry 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]andKunal 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]andDzmitry 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
bors[bot]andHiroaki Yutani ffa9199402 Merge #495
495: Update a documentation to refer to create_buffer_init() instead of create_buffer_with_data() r=kvark a=yutannihilation

A followup of #482

Co-authored-by: Hiroaki Yutani <yutani.ini@gmail.com>
2020-08-02 00:26:48 +00:00
Hiroaki Yutani b9dcf32595 Update a doc's reference to create_buffer_init() 2020-08-01 17:57:13 +09:00
bors[bot]andConnor Fitzgerald 8ac6145ce6 Merge #493
493: Use BCn textures if possible in skybox example r=kvark a=cwfitzgerald

This converts the skybox to using compressed textures if available. I have designed the code to be extensible to other compressed formats as they are added.

Additionally I added srgb to the texture types, as we were using a srgb framebuffer without properly converting into  linear on the texture reads.

Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2020-07-31 02:52:35 +00:00
Connor Fitzgerald 6e2f51018f Use BCn textures if possible in skybox example 2020-07-30 20:55:40 -04:00
bors[bot]andKunal Mohan ac89cff224 Merge #492
492: Replace NonZeroU32 with u32 in TextureViewDescriptor r=kvark a=kunalmohan

Includes https://github.com/gfx-rs/wgpu/pull/854

(rustfmt seems to have introduced a number of other changes. I can revert them if they are undesired)

r?@kvark

Co-authored-by: Kunal Mohan <kunalmohan99@gmail.com>
2020-07-30 17:41:55 +00:00
Kunal Mohan 9e365da89d Replace NonZeroU32 with u32 in TextureViewDescriptor 2020-07-30 23:01:49 +05:30
bors[bot]andOptimisticPeach 50d6204665 Merge #482
482: Add label parameter to `create_buffer_with_data` r=kvark a=OptimisticPeach

Improves QOL by allowing you to attach a label to a buffer when created with predetermined data:
```
let uniform_buf = device.create_buffer_with_data(
    bytemuck::cast_slice(my_data),
    wgpu::BufferUsage::UNIFORM,
    Some(Cow::Borrowed("My Uniforms")),
);
```

Co-authored-by: OptimisticPeach <patrikbuhring@yahoo.com>
2020-07-30 02:08:24 +00: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]andMac O'Brien 18f7408b0e Merge #490
490: Panic using error Display rather than unwrapping r=kvark a=cormac-obrien

Fixes #489.

Co-authored-by: Mac O'Brien <cormac@c-obrien.org>
2020-07-29 20:01:03 +00:00
Mac O'Brien 975e77b363 Panic using error Display rather than unwrapping
Fixes #489
2020-07-29 14:01:50 -05:00
bors[bot]andConnor Fitzgerald 1fb9344bf1 Merge #484
484: Enable features in CI to prevent compiler errors r=kvark a=cwfitzgerald

Simple change, this also builds features in CI.

I added trace and replay features to wasm, even though wasm doesn't support tracing as is, because people may enable them to get serde support for wgpu-types stuff.

Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2020-07-29 16:59:20 +00:00
Connor Fitzgerald ccfe3ed285 Enable features in CI to prevent compiler errors 2020-07-29 12:58:08 -04:00
bors[bot]andDzmitry Malyshau 9e520f8e7c Merge #488
488: Update wgpu with view descriptor changes r=kvark a=kvark

Includes https://github.com/gfx-rs/wgpu/pull/846

Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2020-07-29 03:37:05 +00:00
Dzmitry Malyshau 514e7699ff Update wgpu with view descriptor changes 2020-07-28 23:35:59 -04:00
bors[bot]andGabriel Majeri e4711d0141 Merge #487
487: Update to latest `wgpu-core` r=kvark a=GabrielMajeri

Pulls in the latest changes from `wgpu-core`, follow up for https://github.com/gfx-rs/wgpu/pull/841

Co-authored-by: Gabriel Majeri <gabriel.majeri6@gmail.com>
2020-07-28 19:58:28 +00:00
Gabriel Majeri b17dbdb0b4 Update to latest wgpu-core 2020-07-28 21:32:39 +03:00
bors[bot]andConnor Fitzgerald fe1c4021d9 Merge #476
476: Convert to tracing for logging and add fmt logger r=kvark a=cwfitzgerald

wgpu-rs half of https://github.com/gfx-rs/wgpu/pull/835

Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2020-07-26 04:46:37 +00:00
Connor Fitzgerald 7871d100c8 Convert to tracing for logging and add fmt logger 2020-07-26 00:44:39 -04:00