Dzmitry Malyshau
d8979cad4a
hal/vk: command pools, clippy warnings
2021-06-14 10:26:40 -04:00
Dzmitry Malyshau
9ae5e36ad8
hal/vk: format mapping
2021-06-11 14:27:00 -04:00
Dzmitry Malyshau
d88aa99997
Fix rows-per-image treatment, clippy warnings
2021-06-10 15:43:21 -04:00
Dzmitry Malyshau
a421c1c8b6
Instance plumbing
2021-06-08 11:46:53 -04:00
Dzmitry Malyshau
ff2a3e84fc
update synchronization, fix last errors in wgc
2021-06-08 02:03:44 -04:00
Dzmitry Malyshau
0a82c232ba
hal: port the rest of wgpu-core
2021-06-08 00:46:08 -04:00
Dzmitry Malyshau
0ea4cac04b
Rework shader and pipeline creation
2021-06-08 00:46:08 -04:00
Dzmitry Malyshau
569cd0cdd6
WIP new wgpu-hal
2021-06-08 00:46:08 -04:00
Dzmitry Malyshau
beb88b0a88
Skip the cube compatibility on a downlevel flag
2021-06-01 08:29:44 -04:00
Wumpf
f62d0d5edc
Native Extension: Expose fill buffer & clear image ( #1335 )
...
* Add command buffer fill buffer method
* Added test for buffer fill
* Added image clear + test
* image/buffer clear methods are now pure clear to zero
* fix cargo clippy & int type issues
* clear buffer alignment is now given by COPY_BUFFER_ALIGNMENT
* joined buffer/image clear player tests
* ImageSubresourceRange is now used in TextureViewDescriptor
2021-05-30 11:03:33 -04:00
Dzmitry Malyshau
a06d277d40
Simplify feature selection
2021-05-17 14:11:48 -04:00
Dzmitry Malyshau
f0a145d0fa
Add VERTEX_WRITABLE_STORAGE feature, refactor the sample border
2021-05-17 14:09:02 -04:00
Dzmitry Malyshau
ffd47fbc0e
Remove Vulkan Portability support
2021-04-29 11:42:26 -04:00
Dzmitry Malyshau
6ff618aafb
Big refactor of the profiling usage
2021-04-29 02:06:58 -04:00
Chandler Newman
904ec7a5ee
Add uniform and storage buffer arrays
2021-04-29 00:38:04 -04:00
Connor Fitzgerald
3073a454ff
Update to flag-based downlevel bools
2021-04-01 11:48:09 -04:00
Connor Fitzgerald
fca72f54f9
Validate compute shader's presence
2021-03-31 01:08:53 -04:00
Connor Fitzgerald
4db9a4522e
Add downlevel infrastructure
2021-03-31 01:08:48 -04:00
Connor Fitzgerald
cf6f9c3ca8
Move from tracing to log + profiling
2021-03-17 01:22:30 -04:00
Wumpf
717c2d73e7
Add CONSERVATIVE_RASTERIZATION native feature ( #1263 )
...
* Add CONSERVATIVE_RASTERIZATION native feature
* update gfx to cd3042d8c02d9dc7fc74ac8c292099c9789f6d43
* error for polygon mode not fill +conservative raster
2021-03-14 20:43:02 -04:00
Dzmitry Malyshau
231bba03a1
Lint all the things
2021-03-12 12:39:04 -05:00
Dzmitry Malyshau
80fe0d8fdd
Fix Vulkan Portability check
2021-03-10 00:23:09 -05:00
Dzmitry Malyshau
10245cece9
Early tracing of swapchain-related things, clean up the hub API
2021-03-03 19:59:29 -05:00
Dzmitry Malyshau
f7e1304c38
Expose CA surface creation
2021-03-03 15:43:55 -05:00
Dzmitry Malyshau
62ca24580d
Add limits for textures sizes and vertex imputs
2021-03-01 12:10:40 -05:00
Aaron Hill
12b086d92d
Move #[error] attributes after the corresponding #[derive]
...
This fixes Nightly warnings
See https://github.com/rust-lang/rust/issues/79202
2021-02-25 15:40:11 -05:00
Andreas Reich
dfe686bbc6
Added TextureFormatFeatures::filterable
...
Can overwrite TextureSampleType::Float.filterable
2021-02-23 23:59:17 +01:00
Dzmitry Malyshau
91f5329b33
Update gfx and naga to gfx-12
2021-02-21 11:25:45 -05:00
Dzmitry Malyshau
8ed543f26a
Update all versions
2021-02-01 00:35:40 -05:00
Jonathan Behrens and monocodus[bot]
a97ec9df91
Add SHADER_FLOAT64 feature ( #1154 )
...
* Add SHADER_FLOAT64 feature
* Also enable SHADER_FLOAT64 hal feature when creating the device
* Update wgpu-core/src/instance.rs
Co-authored-by: monocodus[bot] <49363530+monocodus[bot]@users.noreply.github.com>
* Add warning about 64-bit float performance
* Add (currently unsupported) VERTEX_ATTRIBUTE_64BIT feature
Co-authored-by: monocodus[bot] <49363530+monocodus[bot]@users.noreply.github.com>
2021-01-24 21:59:09 -05:00
Connor Fitzgerald
a22037ced0
Add pipeline statistics and timeline queries
2021-01-16 00:48:54 -05:00
Niklas Korz
ac98c0bdfa
Move get_swap_chain_preferred_format from device to adapter and check formats
...
Squashed commit of the following:
commit 16e9c89dbccda3e37d05f7548dc8b9ddfb1d8613
Author: Niklas Korz <niklas@niklaskorz.de >
Date: Mon Jan 11 19:15:43 2021 +0100
format
commit 8c69a70ec22427b6a030915e06654bb0fc9b3c69
Author: Niklas Korz <niklas@niklaskorz.de >
Date: Mon Jan 11 19:12:24 2021 +0100
Implement Global::adapter_get_swap_chain_preferred_format
commit 63efae1cff508d060eaa6ccafe80c02af6af21f4
Author: Niklas Korz <niklas@niklaskorz.de >
Date: Mon Jan 11 17:25:42 2021 +0100
Move get_swap_chain_preferred_format to adapter
commit 1e72a876994820aec9b18f9dac7f1a9ae82d7cee
Author: Niklas Korz <niklas@niklaskorz.de >
Date: Mon Jan 11 15:49:10 2021 +0100
Add fallback to device_get_swap_chain_preferred_format
2021-01-11 19:50:32 +01:00
Andreas Reich
78466fbb31
Enable storage read/write format feature
2021-01-10 22:12:09 +01:00
Jonathan Behrens
1e7fa480a1
Make all textures support their guaranteed usages
2021-01-10 10:59:42 -05:00
bors[bot] and Andreas Reich
8c00cbcc8e
Merge #1112
...
1112: Expose adapter specific formats features via Extension, support for storage read+write r=kvark a=Wumpf
**Connections**
Draft until https://github.com/gfx-rs/gfx/pull/3559 landed (then update and comment two lines in)
New & improved replacement for #1109
PR for wgpu-rs to be opened once there's some confidence that this is that it should look like. [Preview](https://github.com/gfx-rs/wgpu-rs/compare/master...Wumpf:texture-format-feature-query?expand=1 )
**Description**
Adapter exposes now per texture format specific features. Feature struct defined as allowed usages + flags. Flags describe only storage texture usage so far.
Query not used for validation unless `TEXTURE_ADAPTER_SPECIFIC_FORMAT_FEATURES` feature is enabled on a device. Otherwise uses hardcoded feature set guaranteed by webgpu.
Storage read/write binding can then be used as a consequence (storage atomic has no effect yet).
**Testing**
Manual testing with my fluid sim project through wgpu-rs which covers storage r/w for a few different formats and storage in general for formats that don't support this usage by default at all.
Ran tests and a couple of samples to see if anything broke with the feature disabled.
Co-authored-by: Andreas Reich <r_andreas2@web.de >
2021-01-06 18:56:30 +00:00
Andreas Reich
30c96bfead
Added note on why hal update needed for STORAGE_READ_WRITE is blocked atm
2021-01-06 17:59:53 +01:00
Greg V
072b94c9fd
Never prefer CPU devices over GPUs
2021-01-06 19:19:39 +03:00
Andreas Reich
757d12aca3
map depth/stencil feature to RENDER_ATTACHMENT
2020-12-30 12:23:13 +01:00
Andreas Reich
c17b2dc6a0
Expose adapter_get_texture_format_features
2020-12-30 12:00:00 +01:00
Andreas Reich
4207e57c02
validation against adapter specific format features
...
TextureFormatFeatures is now a struct of two u32 flags. Query happens only at texture creation time
2020-12-30 10:38:55 +01:00
Andreas Reich
0ccad9a466
wip adapter specific format features & rw storage
2020-12-29 17:14:22 +01:00
Imbris
e775987233
Pass DEPTH_CLAMPING feature request to gfx-hal
2020-12-19 16:14:51 -05:00
Dzmitry Malyshau
b95a66da5e
Move AdapterInfo into wgt
2020-12-18 16:43:19 -05:00
Vincent Jousse
ab64aa5b92
Fix bad copy/paste in #907
2020-12-18 21:37:17 +01: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
Dzmitry Malyshau
c6bc37dbde
[error] render bundles
2020-11-23 12:00:47 -05:00
Dzmitry Malyshau
ad824de268
[error] bind groups and layouts creation
2020-11-23 11:57:32 -05: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
ac89fbab8a
Drop surfaces and adapters
2020-11-13 18:39:14 -05:00