Dzmitry Malyshau
ef1c373887
Fix texture transfer aspects
2019-06-13 15:37:30 -04:00
Dzmitry Malyshau
86521abfc2
Document the tracking and adjust the API a bit to return less errors
2019-06-13 12:31:36 -04:00
Dzmitry Malyshau
bc7b842f12
Moving the code to use the new tracker API
2019-06-12 12:27:53 -04:00
John W. Bruce
057719fdf5
Add Naïve Debug Derives Where Possible
...
This adds #[derive(Debug)] to all public structs and enums possible.
This also required adding it to some private types that they
transitively depend on. However, the following types depend on types
from external crates that do not implement Debug:
* device::Device
* hub::Hub
* swap_chain::Surface
* swap_chain::SwapChain
To support these types, we would need to use either custom Debug impls
or something like Derivative.
This helps improve the situation in #76 .
2019-06-07 14:19:05 -07:00
bors[bot] and Fabio Krapohl
85740873d0
Merge #212
...
212: More consistent descriptor passing r=kvark a=porky11
also use pointer for descriptor in `wgpu_command_encoder_begin_render_pass` for consistency reasons
Co-authored-by: Fabio Krapohl <fabio.u.krapohl@fau.de >
2019-06-04 20:20:10 +00:00
Fabio Krapohl
8abc1c2668
also use pointer for descriptor in wgpu_command_encoder_begin_render_pass for consistency reasons
2019-06-04 22:13:48 +00:00
Fabio Krapohl
488367ce30
More consistent naming of pointer-size-pairs:
...
* always plural form without _ptr suffix for pointers
* always same name as pointer for size, but with _length suffix
* special case: single size applies to multiple pointers => only use length as name
2019-06-04 21:41:39 +00:00
Alexis Sellier
6794333dba
Expose and validate buffer offset alignment
2019-06-01 20:25:12 +02:00
Dzmitry Malyshau
9c408f919c
Hook up rendy-descriptor
2019-05-30 08:35:34 -04:00
Dzmitry Malyshau
c0c2cdf31c
Clear command buffer tracker
2019-05-29 23:49:29 -04:00
Dzmitry Malyshau
a6bc4420eb
Don't early out on pipeline binding
2019-05-29 23:49:29 -04:00
Dzmitry Malyshau
9621fb3021
Validate vertex/instance/index buffer ranges
2019-05-29 23:49:27 -04:00
Dzmitry Malyshau
4446b81f3e
Fix compute pass barriers
2019-05-26 23:55:23 -04:00
bors[bot] and Dzmitry Malyshau
81b6f42941
Merge #186
...
186: Fix clear value filtering and integer support r=grovesNL a=kvark
Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com >
2019-05-24 01:22:15 +00:00
Dzmitry Malyshau
2564332f3d
Change dynamic and vertex buffer offsets to u64
2019-05-23 11:25:10 -04:00
Dzmitry Malyshau
9eddc296c3
Fix clear value filtering and integer support
2019-05-23 10:03:11 -04:00
Dzmitry Malyshau
a9063ce3eb
Fix RenderPassColorAttachmentDescriptor
2019-05-15 22:38:59 -07:00
bors[bot] and Dzmitry Malyshau
a056d2478a
Merge #175
...
175: API update with naming, formats, and extra fields r=grovesNL a=kvark
Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com >
2019-05-15 07:31:42 +00:00
Dzmitry Malyshau
1875523a6a
Rust formatting pass
2019-05-14 13:00:00 -04:00
Dzmitry Malyshau
48e74e77d7
Add set_viewport
2019-05-14 12:57:03 -04:00
Dzmitry Malyshau
a6f3637c0c
Debug labels
2019-05-14 12:49:10 -04:00
Dzmitry Malyshau
f024758e07
Track stencil reference
2019-05-14 11:58:10 -04:00
Dzmitry Malyshau
40ec1ac4c1
Fix command buffer and surface locking order
2019-05-14 11:13:08 -04:00
Dzmitry Malyshau
6a1dcb9565
API update with naming, formats, and extra fields
2019-05-14 10:31:25 -04:00
bors[bot] and Dzmitry Malyshau
6b92c37fa0
Merge #151
...
151: Assert on swapchain output usage before presenting r=grovesNL a=kvark
Fixes #148
There is no "fix" for the case on our side. The PR brings stronger requirements on the swapchain outputs: they have to be used and submitted before dropped.
Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com >
2019-05-06 11:40:18 +00:00
Dzmitry Malyshau
1c350cc4af
Assert on swapchain output usage before presenting
2019-05-03 10:45:39 -04:00
psincf
bfc983a8cc
Clean code
2019-05-01 11:55:28 +02:00
psincf
44cf64495a
Use strong type
2019-05-01 11:55:28 +02:00
Dzmitry Malyshau
61fca00f34
Remove wgpu-bindings in favor of configuration scripts
2019-04-30 12:45:05 -04:00
Dzmitry Malyshau
52ee3e019c
Remote example and improved header, tested on CI
2019-04-29 22:41:09 -04:00
bors[bot] and Serhii Plyhun
5ec6f35368
Merge #139
...
139: Scissors test r=kvark a=snuk182
Closes #138
Co-authored-by: Serhii Plyhun <snuk188@gmail.com >
2019-04-28 02:28:16 +00:00
Serhii Plyhun
092bcc4afb
Scissor test
2019-04-28 00:45:37 +02:00
Alexis Sellier
c468840eee
Support dynamic offsets
...
Closes #125
* Add support for dynamic offsets when setting a bind group.
* Add new binding types: `UniformBufferDynamic` and `StorageBufferDynamic`
2019-04-26 22:20:54 +02:00
Atul Bhosale
af38d79d79
Format code using 'cargo fmt'
2019-04-26 22:01:47 +05:30
Dzmitry Malyshau
1f4d67aeb2
Track async mapping properly
2019-04-22 13:57:35 -04:00
Joshua Groves
7f7bdd1ba1
Implement index formats
2019-04-07 08:15:05 -02:30
Dzmitry Malyshau
a8a6b45c9a
Rename expectation to LayoutChange
2019-03-31 20:00:52 -04:00
Dzmitry Malyshau
b96983a56b
Fix submission tracking
2019-03-31 19:59:21 -04:00
Dzmitry Malyshau
006d40a4b5
Track bind group compatibility across the whole pipeline
2019-03-31 16:04:37 -04:00
Dzmitry Malyshau
5923deff6e
Validate bind group compatibility
2019-03-31 16:03:08 -04:00
Dzmitry Malyshau
332305012c
Blend color and the first bits of validation
2019-03-31 15:52:32 -04:00
Dzmitry Malyshau
0b51c8a9d2
Clean up use statements.
...
Use copyless::VecHelper and ArrayVec for some things.
Refactor map_buffer internals.
2019-03-21 12:05:53 -04:00
Tristam MacDonald
1fe59e71db
run cargo fmt
2019-03-05 20:41:24 -08:00
Dzmitry Malyshau
650bbaeb42
Basic render pipeline compatibility check
2019-03-03 22:09:20 -05:00
Dzmitry Malyshau
8ad1476872
Fix tracking of the set_sub_data service command buffer
2019-02-27 08:31:38 -05:00
Dzmitry Malyshau
76473bb38a
Stitch mode for insert_barriers
2019-02-26 23:56:38 -05:00
Dzmitry Malyshau
cc5900b160
Refactor the view tracker
2019-02-26 23:05:36 -05:00
Dzmitry Malyshau
0d59c16f16
Refactor insert_barriers
2019-02-26 22:55:04 -05:00
Dzmitry Malyshau
cdc9d65395
Free memory objects
2019-02-26 15:10:43 -05:00
Dzmitry Malyshau
5b129704a0
Storage indexing
2019-02-26 10:27:51 -05:00