Connor Fitzgerald
19fb491262
Fix validation of compressed mipmaps
2020-12-05 19:30:26 -05:00
Connor Fitzgerald
8f430ab1ef
Implement ETC2 and ASTC textures
2020-12-05 19:30:26 -05:00
Dzmitry Malyshau
749f737c89
Add pervasive Naga support to shader module loading
...
The purpose of the PR is to support Naga modules everywhere.
As a requirement, it updates the gfx-rs version used.
Most of the logic is dedicated towards building a shader interface,
where previously we just used naga's IR. Now we have our own mini-IR.
2020-12-05 11:31:03 -05:00
Dzmitry Malyshau
9e2f6c2f01
Move to gfx master
2020-11-30 22:50:13 -05:00
Dzmitry Malyshau
10c11d718d
Replace gfx-descriptor by gpu-descriptor
2020-11-30 21:48:04 -05:00
bors[bot] and Dzmitry Malyshau
67e652f471
Merge #1047
...
1047: Update bind group layout API to match upstream r=cwfitzgerald a=kvark
**Connections**
Follows https://github.com/gpuweb/gpuweb/pull/1076 , https://github.com/gpuweb/gpuweb/pull/1223 (https://github.com/gpuweb/gpuweb/issues/1164 ), https://github.com/gpuweb/gpuweb/pull/1255 , and https://github.com/gpuweb/gpuweb/pull/1256
**Description**
Aligns our API closer to the latest changes in WebGPU upstream. We technically don't have to do this, but I believe in the end it would be best if our API gets close to upstream.
Note: this is a sensitive change for the users, everybody will get their code broken. So please take a look at the API and see if something is missing or needs improvement, so that we don't have to go through the changes again afterwards.
**Testing**
Doesn't really need testing. Partially covered by the existing playtest.
Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com >
2020-11-30 22:31:49 +00:00
Dzmitry Malyshau
ee87d7fae7
Flush write_texture staging memory
2020-11-28 12:12:51 -05:00
Dzmitry Malyshau
5949dec61d
Update bind group layout API to match upstream
2020-11-28 00:30:27 -05:00
bors[bot] and Dzmitry Malyshau
dd31c924df
Merge #1052
...
1052: Check for missing fragment shader outputs r=kvark a=kvark
**Connections**
Fixes #1046
**Description**
Introduces a proper error for the missing outputs
**Testing**
Untested
Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com >
2020-11-27 17:46:56 +00:00
Dzmitry Malyshau
e5204e915c
Check for missing fragment shader outputs
2020-11-27 12:44:31 -05:00
bors[bot] and Dzmitry Malyshau
99bc5679ed
Merge #1051
...
1051: Register init-destination buffer in the pending writes r=kvark a=kvark
**Connections**
Fixes #1049
**Description**
At some recent point we introduced the map of destination buffers for copies, and I missed the case where buffers are mapped at creation.
**Testing**
Tested on the test-case in #1049
Co-authored-by: Dzmitry Malyshau <kvark@fastmail.com >
2020-11-26 22:00:46 +00:00
Dzmitry Malyshau
992e240938
Register init-destination buffer in the pending writes
2020-11-26 16:59:25 -05:00
Dzmitry Malyshau
c6bc37dbde
[error] render bundles
2020-11-23 12:00:47 -05:00
Dzmitry Malyshau
6307294e2b
[error] pipeline creation
2020-11-23 11:57:32 -05:00
Dzmitry Malyshau
ad824de268
[error] bind groups and layouts creation
2020-11-23 11:57:32 -05:00
Dzmitry Malyshau
fccbca28bd
[error] shader module creation, separate descriptor
2020-11-23 11:57:32 -05:00
Dzmitry Malyshau
e96e5f917c
[error] sampler creation
2020-11-23 11:57:32 -05:00
Dzmitry Malyshau
8287464855
[error] texture view creation
2020-11-23 11:57:32 -05:00
Dzmitry Malyshau
bedd037517
[error] buffer creation
2020-11-23 11:57:32 -05:00
Dzmitry Malyshau
eb4f633e39
[error] texture creation
2020-11-23 11:57:32 -05:00
Mikko Lehtonen
459e835250
Add Ids to PassErrorScope
...
Also makes it pub, and the places it is used.
Tweak some error messages.
2020-11-21 23:39:05 +02:00
Mikko Lehtonen
48e64fc8c6
Add missing label query methods
2020-11-19 23:37:59 +02:00
Mikko Lehtonen
4498f172cc
Retain labels for resources
...
As a braking api change, adds also label for the error id generation,
for labeling invalid ids too.
Also adds query methods the label.
2020-11-19 00:09:21 +02:00
Dzmitry Malyshau
b48764728d
Update gpu-alloc and naga
2020-11-18 09:24:43 -05:00
Dzmitry Malyshau
b0a98548d1
Update naga to 4d4e1cd4cb
2020-11-13 12:26:48 -05:00
Marvin Löbel
3787d3bedb
Change Err(x)? to return Err(x.into())
2020-11-13 00:03:13 +01:00
Dzmitry Malyshau
22efbeae70
Replace gfx-memory by gpu-alloc
2020-11-09 12:16:34 -05:00
Zicklag
f7f1ff699a
Implement OpenGL Backend For Unix Platforms
2020-11-04 20:32:33 -06:00
Zicklag
7beb7c3411
Update For Latest GFX
...
Using a specific Git commit for now because it is unreleased.
2020-11-02 20:25:07 -06:00
Dzmitry Malyshau
5e1e3314cd
Check array layer counts
2020-10-30 17:31:43 -04:00
Connor Fitzgerald
dcc14fe645
Improve cubemap validation
2020-10-25 17:14:14 -04:00
Dzmitry Malyshau
8ce2530b69
Save an allocation of raw bindings in create_bind_group
2020-10-15 16:37:10 -04:00
Dzmitry Malyshau
6d40a81833
Revert "Fix coalescing of descriptor sets"
...
This reverts commit 56df63b122 .
2020-10-15 15:53:26 -04:00
Dzmitry Malyshau
8a364d3c69
Revert "Group binding writes by wgt::BindingType"
...
This reverts commit 98c3de7884 .
2020-10-15 15:52:58 -04:00
Dzmitry Malyshau
150ee25c01
Align stencil reference flags between pipeline creation and setting
2020-10-14 16:54:15 -04:00
Dzmitry Malyshau
ecbf81f4c9
Fix locking of device lifetime tracker on resource drop
2020-10-13 18:37:20 -04:00
Dzmitry Malyshau
98c3de7884
Group binding writes by wgt::BindingType
2020-10-13 16:06:50 -04:00
Dzmitry Malyshau
56df63b122
Fix coalescing of descriptor sets
2020-10-11 22:47:41 -04:00
Dzmitry Malyshau
c87a94f976
Early texture destruction
2020-10-08 23:21:11 -04:00
Dzmitry Malyshau
c4c8e3b224
Early buffer destruction logic
2020-10-08 22:28:52 -04:00
Dzmitry Malyshau
0a7d81351c
Handle cases where buffer contents are destroyed
2020-10-08 12:57:17 -04:00
Dzmitry Malyshau
0070bf703c
Coalesce bindings into a single write
2020-10-07 16:14:25 -04:00
Dzmitry Malyshau
962e4dbaf7
Defer bind group creation to after validation
2020-10-07 16:14:25 -04:00
Dzmitry Malyshau
dc2d581c8d
Add repr(C) on mapping structs
2020-10-06 13:36:17 -04:00
lberrymage
41228ef1a4
Fix clippy warnings about using if-let over match
...
The specific lint triggered was
https://rust-lang.github.io/rust-clippy/master/index.html#single_match .
2020-09-25 23:02:51 -08:00
Adam Nemecek
db1870e7fc
use self
2020-09-25 19:11:46 -07:00
Leon Scherer
1fecbe18ed
Fixed typo in texture size check
2020-09-25 14:21:38 +02:00
Kunal Mohan
485dab9a52
Prevent an invalid texture from being registered in device_create_texture
2020-09-23 00:30:50 +05:30
Mikko Lehtonen
8252758674
Reverts the addition of LabeledContextError
...
Removed as discussed, moving them to wgpu-rs side
2020-09-14 22:45:10 +03:00
Kunal Mohan
d423d3d5d7
Allow dropping of error resources ( #925 )
...
* Allow dropping of error resources
* Unregister error resources without panic
Panic when removing Vacant element or when index is out of range
* address review comments
2020-09-13 21:17:53 -04:00