Commit Graph
560 Commits
Author SHA1 Message Date
Erich Gubler 46b121667b refactor(dx12): remove unsafe ops in Adapter::texture_format_capabilities (#3194) 2022-11-30 16:48:03 -05:00
Jinlei Li d7fe7ef8cc vk: eliminate duplicate values in SurfaceCapabilities's formats field (#3227) 2022-11-26 03:37:37 -05:00
Jim Blandy 73b23f1c8d Move minimum supported rust version (MSRV) from 1.65 back to 1.64. (#3231) 2022-11-23 21:22:03 +00:00
Andreas Reich 2ccfb42440 allow gles float textures to be multisampled if available (#3183) 2022-11-23 16:10:11 -05:00
Erich Gubler 18f3f5f6f0 Enable unsafe_ops_in_unsafe_fn lint in all workspaces (#3044) 2022-11-14 10:49:39 -08:00
Jim Blandy bc1728065b wgpu-hal: Document some details of buffer binding. (#3169) 2022-11-09 15:50:06 -05:00
Ali 3c82a4cd5c Added support for MSAA(x2,x8) beyond WEBGPU restrictions for native a… (#3140)
Closes https://github.com/gfx-rs/wgpu/issues/2910
2022-11-09 15:19:05 -05:00
Jinlei Li 04d12baa81 Change get_metal_layer() visiability to pub(crate) 2022-11-08 20:16:32 -08:00
Erich Gubler 4a9797276a refactor: resolve clippy::needless_borrow 2022-11-07 17:36:04 -08:00
Erich Gubler a818b8540a refactor: resolve clippy::needless_return in raw-gles example 2022-11-07 17:36:04 -08:00
Erich Gubler fb67de908e refactor: resolve clippy::explicit_auto_deref 2022-11-07 17:36:04 -08:00
Erich Gubler 98eb19c854 refactor: resolve clippy::bool_to_int_with_if 2022-11-07 17:36:04 -08:00
Andreas Reich a377ae2b7f Alpha to coverage support for GLES (#3187) 2022-11-07 16:56:59 -05:00
Andreas ReichandConnor Fitzgerald b838b0871c Added new UNRESTRICTED_INDEX_BUFFER downlevel flag. (#3157)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2022-11-07 15:45:50 -05:00
Lilith a31cd2ef5c Remove DEPTH24PLUS_STENCIL8 feature (#3151) 2022-11-02 16:44:15 -04:00
i509VCB d81cb46be0 enable doc_auto_cfg for docs.rs (#3113)
* enable doc_auto_cfg for docs.rs

This should expose more feature labels in the generated documentation and removes the needs for the manually labeling the features for a type, function or enum variants.

* enable docsrs cfg when building docs for master
2022-10-26 17:07:25 -04:00
Jinlei Li cc448817e7 Use cargo 1.64 workspace inheritance feature (#3107) 2022-10-20 01:41:17 -04:00
Ashley d3ab5a197e WebGL2 multiview support via OVR_multiview2 (#3121)
* Add OVR_multiview2 support

* Add changelog entry

* Only use multiview on wasm32 + unknown

* Add note to Features::MULTIVIEW
2022-10-18 12:14:18 -04:00
Connor Fitzgerald ce081796c8 Rework CI (#3097) 2022-10-14 22:55:36 -04:00
i509VCBandConnor Fitzgerald 7aca31fe9c allow creation of wgpu_hal textures for gles backend (#3046)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2022-10-13 06:41:12 +00:00
Xiaopeng Li 9272cc65cc Fix memory leak on macOS (#3056) 2022-10-13 02:13:31 -04:00
Jim BlandyandConnor Fitzgerald f3d455b617 vulkan: Don't use pointer to dropped PhysicalDeviceDriverProperties. (#3076)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2022-10-12 20:52:32 +00:00
Andreas Reich 351ca3ea3d Fix webgl srgb blit not setting the viewport correctly (#3093)
* Fix webgl srgb blit not setting the viewport correctly

* Add changelog notes
2022-10-11 14:04:06 -04:00
Andreas Reich acadd8dad5 webgl backend supports now non-srgb framebuffer (#3070) 2022-10-08 23:48:44 -04:00
daxpedda 02cc2ae234 [BREAKING] Make Shader(Module)Source::Wgsl optional (#2890) 2022-10-08 01:12:50 -04:00
Nicolas Silva 0a3e209c90 Shrink the default max binding index to 640 and expose it in Limits.
Following the corresponding changes happening in WebGPU.
2022-10-06 10:12:16 -07:00
Nicolas Silva 7892b0f96e Set web-sys dep to 0.3.60.
Looks like web-sys makes non-breaking version bumps when there are breaking changes in unstable APIs so sticking to specific versions should avoid unnecessary breakage.
2022-10-06 10:12:16 -07:00
Connor Fitzgerald 872b436104 Update version to 0.14 2022-10-05 18:45:25 -04:00
Connor Fitzgerald 91e0dbd1ae Update naga + deps 2022-10-05 18:45:25 -04:00
Nicolas SilvaandConnor Fitzgerald 37de3a3574 Set the image stride to zero when updating a single layer on metal. (#3063)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2022-10-05 21:45:12 +00:00
Jinlei LiandConnor Fitzgerald b13bb468cb gl: add Rgba16Float format support for color attachments (#3045)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2022-10-05 21:31:22 +00:00
Jinlei Li 4992de5938 gl: ASTC_HDR feature detection (#3042) 2022-10-05 17:08:45 -04:00
Dragoș Tiselice 5c33e23b66 Fixed buffer sizes encoding on Metal. (#3047) 2022-10-05 16:44:51 -04:00
i509VCB 2372895944 Handle unsupported surfaces more gracefully (#3054) 2022-10-05 16:42:06 -04:00
Jim Blandy b79c455144 Make hal::CommandEncoder and hal::CommandBuffer extend Debug. (#3060) 2022-10-05 16:38:21 -04:00
Mauro Gentile 7b8dd4e0bd Vulkan Command pool optimization (#3065) 2022-10-05 16:36:18 -04:00
Xiaopeng Li c927e810de Fix label leak (#3053) 2022-09-27 02:49:21 -04:00
Jim Blandy 27a27568d6 Placate clippy 0.1.64. (#3048)
Derive `Eq` on some types in `wgpu-hal`.
2022-09-23 23:54:40 +00:00
i509VCBandConnor Fitzgerald 061e04bff1 expose driver info in AdapterInfo (#3037)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2022-09-21 02:45:28 +00:00
Mauro GentileandMauro Gentile cdf6ee0c87 Updating TextureFormat matching specs (#2954)
Co-authored-by: Mauro Gentile <Mauro.Gentile@ubisoft.com>
2022-09-20 12:08:06 -04:00
i509VCB 65e405193e vulkan: use effective api version for determining device features (#3011) 2022-09-20 01:11:15 -04:00
i509VCB f877a8a3c9 Vendor id clarification (#3036)
* set GL vendor for id Mesa and Apple

* match on "apple m" to mark M2 cpu as integrated in gles

* document AdapterInfo::vendor if the vendor has no PCI id
2022-09-19 23:52:00 -04:00
João Capucho c61f61ca0e dx12: Add support for push constants (#2866) 2022-09-19 20:47:24 -04:00
i509VCB 6f2c393024 move GL vendor magic numbers to "auxil::db" (#3035) 2022-09-19 06:48:15 +00:00
daxpedda 95408cd48b [BREAKING] Wrap ShaderSource::Naga in Cow<'static> (#2903) 2022-09-19 00:50:46 -04:00
Jinlei Li 44399bb4a3 Expose alpha_mode, support non-opaque mode on metal and vk backends (#2836) 2022-09-19 00:10:21 -04:00
Alphyr d1c94d09e2 Update dependencies (#3021) 2022-09-18 23:53:21 -04:00
i509VCB 9e3efd7019 pass around RawDisplayHandle and RawWindowHandle in implementation (#3022)
This change is to help with an attempt to allow the Context type in wgpu to be swappable at runtime. In order to do that, the functions provided by Context and it's associated types need to be object safe. Instead of passing a impl trait that combines both HasRawWindowHandle and HasRawDisplayHandle, we seperate the types into their RawDisplayHandle and RawWindowHandle parts internally to reduce some of the hal implementation code mess.
2022-09-15 16:29:20 -07:00
Jinlei Li e350f50b2f metal: remove PrivateCapabilities's format_rgb10a2_unorm_surface field (#2981)
* metal: remove PrivateCapabilities's format_rgb10a2_unorm_surface field

* Update CHANGELOG
2022-09-02 20:28:26 -07:00
Andreas Monitzer 6348a07d28 Expose the vk::Queue and the queue index in the Vulkan hal. (#2950) 2022-09-02 22:58:01 +00:00