Joshua Groves
45b5ddcb83
Use repr(transparent)
for shader flags
...
This allows cbindgen to generate bindings for shader flags in
wgpu-native
2020-12-23 06:43:15 -03:30
Connor Fitzgerald
43814d258f
Add format usage descriptions and validate on it.
2020-12-21 23:08:31 -05:00
Dzmitry Malyshau
b95a66da5e
Move AdapterInfo into wgt
2020-12-18 16:43:19 -05:00
Dzmitry Malyshau
f07cc8156b
Update naga and gfx, move the shader validation into a shader descriptor bit
2020-12-17 11:33:47 -05:00
Connor Fitzgerald
8f430ab1ef
Implement ETC2 and ASTC textures
2020-12-05 19:30:26 -05:00
kejor
4513fb2b83
Match upstream API changes for IndexFormat
2020-12-01 19:19:41 -05:00
Dzmitry Malyshau
5949dec61d
Update bind group layout API to match upstream
2020-11-28 00:30:27 -05:00
Imbris
44a20d72ef
Make VertexFormat::size a const fn
2020-11-26 03:36:13 -05:00
Dzmitry Malyshau
ad824de268
[error] bind groups and layouts creation
2020-11-23 11:57:32 -05:00
Zsolt Bölöny
2151a252ad
Rename TextureUsage::OUTPUT_ATTACHMENT to RENDER_ATTACHMENT
2020-11-08 14:24:39 +01:00
Dzmitry Malyshau
367735d085
Rename the lint to broken_intra_doc_links
2020-11-02 18:00:56 -05:00
Dzmitry Malyshau
6e3c7b359f
Add missing license headers
2020-10-28 13:40:41 -04:00
Connor Fitzgerald
dcc14fe645
Improve cubemap validation
2020-10-25 17:14:14 -04:00
Dzmitry Malyshau
c230988caa
Add repr(C) on copy views
2020-10-21 16:39:27 -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
98c3de7884
Group binding writes by wgt::BindingType
2020-10-13 16:06:50 -04:00
frbimo
fdd561e69e
remove PowerPreference::Default
...
Signed-off-by: frbimo <fr.bimo@gmail.com>
2020-10-12 19:17:44 +08:00
Adam Nemecek
db1870e7fc
use self
2020-09-25 19:11:46 -07:00
Manuel Woelker
336d070b26
add polygon_mode: PolyonMode
to RasterizationStateDescriptor
to allow drawing wireframes
2020-09-09 21:34:37 +02:00
bors[bot]
3f1abf571e
Merge #908
...
908: Clarify usage of SAMPLED_TEXTURE_ARRAY_NON_UNIFORM_INDEXING r=cwfitzgerald a=im-0
**Connections**
https://github.com/gfx-rs/wgpu-rs/pull/540
**Description**
This clarifies usage of SAMPLED_TEXTURE_ARRAY_NON_UNIFORM_INDEXING with GLSL.
**Testing**
This commit only changes documentation.
Co-authored-by: Ivan Mironov <mironov.ivan@gmail.com>
2020-09-02 20:43:32 +00:00
bors[bot]
6df8421f22
Merge #909
...
909: Add Quad play test r=kvark a=DevOrc
**Connections**
#807
**Description**
Adds a play test that renders a white quad to a texture. The texture is then copied to a buffer and checked for accuracy with a file of expected bytes (All 0xFF).
**Testing**
Cargo test succeeds
Co-authored-by: Noah Charlton <ncharlton002@gmail.com>
2020-09-01 20:18:21 +00:00
Noah Charlton
d05d1aeec1
Add Quad play test
2020-09-01 16:07:24 -04:00
Nathan Adams
0e94752749
Fix write-only stencil state descriptors from not working - fixes #911
2020-08-30 23:33:09 +02:00
Ivan Mironov
9557ab36a6
Clarify usage of SAMPLED_TEXTURE_ARRAY_NON_UNIFORM_INDEXING
2020-08-30 00:47:00 +05:00
Dzmitry Malyshau
b5475d7d80
Update naga to 4797773152
2020-08-26 15:35:14 -04:00
Justin Shrake
19eeee27ee
Add AddressMode::ClampToBorder behind a feature
2020-08-22 13:23:50 -07:00
bors[bot]
961140fb24
Merge #883
...
883: fix typo in vertex format documentation r=kvark a=DevOrc
**Connections**
None
**Description**
fix typo in vertex format documentation
**Testing**
Ran `cargo doc`
Co-authored-by: Noah Charlton <ncharlton002@gmail.com>
2020-08-18 14:59:05 +00:00
Noah Charlton
c58ee9c54e
fix typo in vertex format documentation
2020-08-18 10:28:42 -04:00
Dzmitry Malyshau
901b043b19
Version bump to 0.6 and changelog update
2020-08-17 16:51:22 -04:00
Connor Fitzgerald
abb3c2f8db
Move push constant docs to correct feature
2020-08-16 19:52:53 -04:00
Dzmitry Malyshau
2473c25971
Refactor the stencil state descriptor a bit
2020-08-12 20:04:47 -04:00
Dzmitry Malyshau
a0711cf9b2
Move the RenderCommand into the shared draw module
2020-08-12 14:33:42 -04:00
Dzmitry Malyshau
9d8dc0b04d
Grand cleanup and refactor of the descriptors in the API
2020-08-12 14:13:32 -04:00
Dzmitry Malyshau
1f5622a0b3
Respect texture view aspect on creation
2020-08-10 16:14:20 -04:00
Dzmitry Malyshau
173c7c3dbf
Create implicit layouts for render pipelines
2020-08-09 14:43:44 -04:00
Dzmitry Malyshau
f18fa7ef9b
Derive bind group layout entries in Naga validation
2020-08-08 01:09:41 -04:00
Kunal Mohan
aa44969818
Replace u32 with NonZeroU32 in TextureView
2020-08-05 21:23:25 +05:30
Andrea Nardi
acfbbb42b5
Implementation of the builder pattern
...
Signed-off-by: Andrea Nardi <buongiorno19972@gmail.com>
2020-08-02 05:49:10 +02:00
Kunal Mohan
c8360152cd
Replace NonZeroU32 with u32 in TextureViewDescriptor
2020-07-30 21:35:07 +05:30
Connor Fitzgerald
e5c647745e
Implement TEXTURE_COMPRESSION_BC extension
2020-07-29 18:43:50 -04:00
Connor Fitzgerald
d5f23f9323
Add builder for TextureDescriptor
2020-07-29 14:28:03 -04:00
Dzmitry Malyshau
d2c1e725db
Make level and layer count for texture view optional
2020-07-28 22:55:39 -04:00
Dzmitry Malyshau
6e10518f12
Reformat the alignment errors, add a stride check
2020-07-28 11:48:49 -04:00
Connor Fitzgerald
308e72b521
Fix typo in BufferUsage docs
2020-07-22 20:55:08 -04:00
Dzmitry Malyshau
21be559a9f
Add depth clamping support
2020-07-22 11:03:36 -04:00
Marvin Löbel
4ed2c0a313
Replace borrowed slices in Descriptor structs with copy on write slices ( #822 )
...
* Replace &[T] in descriptor structs with Cow<[T]>
* Changed label fields to use Cow<'a, str>
* Deduplicate types across the tracing API
Introduce the ToStatic trait
* Deduplicate trace::RenderBundleDescriptor
* Remove ugly ToOwned bounds
* Simplifiy Action variants
* Make Clone bounds on type defs less verbose
* Fix a error in play.rs
* Remove ToStatic, and Make Action<'a> borrow descriptors instead
2020-07-20 12:31:05 -04:00
Rukai
3fe9d8872f
swap_chain_present returns SwapChainStatus
2020-07-20 21:13:22 +10:00
bootra-dev
215c9fe750
refactor to group by size
2020-07-16 14:00:06 -04:00
bootra-dev
ee0e4850fd
add size function for VertexFormat
2020-07-16 13:55:34 -04:00
Kunal Mohan
62100584e8
Derive Hash on BindGroupLayoutEntry
2020-07-16 19:47:35 +05:30