Commit Graph
850 Commits
Author SHA1 Message Date
David A Roberts 46eea16335 Generate 1x1 mip level (#2551)
Just a minor off-by-one error that meant the final 1x1 mip level wasn't being generated. I don't think it makes any substantial difference to the rendered result.
2022-03-23 21:19:41 -04:00
Alphyr b0da1a2c1d Switch from cgmath to glam in examples (#2544) 2022-03-21 10:32:59 -04:00
Fichtelcoder 36877c3749 Fix resizing behaviour of hello-triangle example (#2543) 2022-03-21 01:21:51 +00:00
Dzmitry Malyshau 326af60df8 Expect shadow example to pass on Vulkan (#2541) 2022-03-19 05:58:14 +00:00
Igor Shaposhnik c5d5dbc7eb [naga] Update naga with new struct members separator 2022-03-16 20:42:21 -07:00
skierpage c314c55788 Correct program output ("Steps", not "Times") (#2535)
Since 985c1feb4 , hello-compute has output "Steps: ...", not "Times: ..."
2022-03-11 19:32:54 -05:00
Layl 3c85fe6782 Fix incorrect filtering used in mipmap generation (#2525) 2022-03-10 20:14:17 +00:00
Connor Fitzgerald b1b02fb239 Round up clear texture tests to block size 2022-02-28 21:38:52 -08:00
Connor Fitzgerald 36defcfdc2 Expand skybox outlier count due to llvmpipe 2022-02-28 21:38:52 -08:00
Connor Fitzgerald 3f30a8011f Prevent uncaught validation error on water example 2022-02-28 21:38:52 -08:00
Connor Fitzgerald 129c32ffc3 Prevent 3D compressed textures 2022-02-28 21:38:52 -08:00
Connor Fitzgerald 4d7f6eb07a Implement validation canary 2022-02-28 21:38:52 -08:00
Connor Fitzgerald 52badfb63c Mark expectant test failures on ANGLE 2022-02-28 21:38:52 -08:00
Connor Fitzgerald b61939650c Add DownlevelFlag to prevent copies between Depth32 Textures 2022-02-28 21:38:52 -08:00
Connor Fitzgerald e9b13b74c4 Make tests properly request their own limits 2022-02-24 23:52:41 -05:00
Connor Fitzgerald 283a9fceeb tests/gles: properly label tests that don't run without some downlevel features 2022-02-24 23:52:41 -05:00
Connor Fitzgerald b87e50feae Rename get_downlevel_properties to get_downlevel_capabilities 2022-02-24 23:52:41 -05:00
Connor Fitzgerald 87102ccdf5 Improve shader support documentation 2022-02-22 22:32:23 -05:00
Jinlei Li 1bd85a835a Roll naga from 8e2e39e to a45b9a6 (27 revisions) 2022-02-22 15:45:05 -05:00
Dmitry SharshakovandConnor Fitzgerald 70db03dc99 Use EGL surfaceless platform when windowing system is not found (#2339)
* Use EGL surfaceless platform when windowing system is not found

Falling back to egl::DEFAULT_DISPLAY usually results in X11 EGL platform being picked and then rejected because of unavailability on a head/GPU-less system. EGL_PLATFORM_SURFACELESS_MESA works with both radeonsi and llvmpipe/swrast when Xorg/Wayland sockets are being hidden from application. Needs to be tested in a truly GPU-less environment such as CI it is required to run in. Addresses #1551

Signed-off-by: Dmitry Sharshakov <d3dx12.xx@gmail.com>

* Set backend for capture by environment variables

Useful for testing surfaceless

Signed-off-by: Dmitry Sharshakov <d3dx12.xx@gmail.com>

* Check for EGL_MESA_platform_surfaceless extension before using surfaceless platform

Signed-off-by: Dmitry Sharshakov <d3dx12.xx@gmail.com>

* Format

Signed-off-by: Dmitry Sharshakov <d3dx12.xx@gmail.com>

* Unify types for GLES config tiers

Signed-off-by: Dmitry Sharshakov <d3dx12.xx@gmail.com>

* Remove red.png

Signed-off-by: Dmitry Sharshakov <d3dx12.xx@gmail.com>

* Enable GL backend for CI

* Bump outliers count for skybox_etc2 due to llvmpipe test (102)

* Add SURFACE_TYPE PBUFFER_BIT requirement to off-screen surface tier

* Re-nix GL Backend on CI

Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2022-02-19 05:21:05 +00:00
Lucas Kent bfcdcd6486 Update dev deps (#2493) 2022-02-18 23:24:18 -05:00
Jinlei Li fa35c0a0f4 Re-allow vk backend on Apple platforms via vulkan-portability feature 2022-02-18 20:26:53 -05:00
Jinlei Li 1c17d15507 Metal backend ASTC HDR formats support (#2477) 2022-02-15 09:43:16 -05:00
currypseudo a604535972 fix: blit example use trianglelist and 3 vertices 2022-02-12 23:29:54 -05:00
Xiaopeng Li 8c351970ce Support to create surface from visual on Windows (#2434)
* Support to create surface from visual on Windows, add mpo(Multiple Plane Overlay) feature to AdapterInfo

* Expose create_surface_from_visual method

* Fix code style

* Make code more concise

* Revert mpo from AdapterInfo
2022-02-07 14:57:57 -05:00
Hiroaki Yutani c262e83d78 Add a ⭐ to the feature matrix of examples README (#2457)
* Add a ⭐ to the feature matrix of examples README

* Empty commit to try invoking the CI checks
2022-02-06 12:36:46 -05:00
Dzmitry Malyshau 6b4f1b843f msl: support unsized array not in structures (#2459) 2022-02-06 05:33:20 +00:00
Samuel Hurel 3e0305d27d Allow non struct buffers in wgsl (#2451)
* Bump naga

* Update examples
2022-02-05 09:53:04 -05:00
Jinlei Li b10f7ed407 Make shadow example runnable on iOS Android devices (#2433) 2022-02-01 18:08:35 -05:00
Alexander Guryanov b19000367c feature: emscripten 2022-01-27 14:14:29 -05:00
Jinlei Li 77b2c25684 Fix msaa-line example's unnecessary MSAA data store 2022-01-25 09:09:06 -05:00
João Capucho dcd07f0391 Update to upstream naga 2022-01-22 18:36:26 -05:00
Shota Hamada 299e6f443b Make execute_bundles() receives IntoIterator (#2410) 2022-01-20 16:14:41 +00:00
Aaron O'Mullan 5877117529 chore: bump naga to a1840be (#2401)
* chore: bump naga to a1840be

So tip no longer indirectly pins indexmap, etc...

* feedback

* TODO push_constant_binding
2022-01-17 19:17:31 -05:00
rustui 4612cdfba5 fix typo (#2393) 2022-01-15 05:09:06 +00:00
Dzmitry Malyshau 36220b4da5 Update WGSL example shaders to use assignment ops 2022-01-11 11:45:33 -05:00
Dzmitry Malyshau 1bab287eae Update naga to c0b7ac7 2022-01-11 11:45:33 -05:00
Dzmitry Malyshau 01f62baad2 Limits 1D texture mips to 1 2022-01-10 12:22:49 -05:00
Samuel Hurel e924aa1a05 Add util::indirect helper structs 2022-01-07 11:39:26 -05:00
Dzmitry Malyshau 043e36c59a Test WebGPU backend with extra features 2022-01-06 12:48:40 -05:00
Dzmitry Malyshau eda3d4fa34 Update naga to 09d35f3 2022-01-05 23:33:43 -05:00
Lucas Kent b88808b454 Replace run-wasm-example.sh with aliased rust crate (xtask) 2022-01-04 23:56:47 -05:00
Jakob Hellermann bec6ec6235 fix compilation on wasm32-unknown-unknown without webgl feature (#2355) 2022-01-04 16:09:48 +00:00
Wumpf 2fa75aaf05 Do texture init via clear passes when possible (#2307)
* CLEAR_COMMANDS extension is now more of a window into wgpu zero-init
this has mostly implications on the constraints, but also allows a more leaky documentation which makes sense for this non-standard function as there is no other place to look it up

* clear_texture via renderpasses wip

* 3D depth textures are no longer allowed, volumes are always cleared via CPY_DST

* cleanup texture's clear_views

* rename CLEAR_COMMANDS to CLEAR_TEXTURE

* separate clear_texture into reusable & more descriptive parts

* texture clear views are now created ahead of time

* discarded surface fixup goes through new clear_texture method now

* onq ueue texture initialization now goes threw clear_texture
pending inits need to store Stored textures now though, causing more ref count bumping

* texture init on queue_write_texture now also goes through new clear_texture

* transfer functions on commandbuffer use now new texture init route

* merge collect_zero_buffer_copies_for_clear_texture into clear_texture_via_buffer_copies

* clear functions now take TextureInitRange

* Fix clippy lints

* command_encoder_clear_texture no longer takes write lock on texture

* TextureClearMode encodes now is_color

* code cleanup, mostly about `use`

* Handle volume textures in clear_texture_via_render_passes properly

* texture clear no longer requires id::Stored

* init tracking fixes for volumes and init on partial subresource writes

* texture creation enforces COPY_DST only if absolutely necessary

* unrolled functional chain, reduce unsafe scope size

* fix clippy lints

* clear_texture test no longer creates 1D textures

see #2323

* 3D textures are no longer cleared as render target since this isn't supported on Metal

* fix deno building issue, fix formatting

* TextureInner::Surface can now be zero initialized
2021-12-28 17:05:53 -05:00
Wumpf b0654e17af [example] fix conserative-raster low res target getting zero sized on resize (#2318)
* [example] fix conserative-faster low res target getting zero sized on resize

* [sample] conservative-raster: fix low res target aspect ratio being wrong
2021-12-26 12:02:21 -05:00
Dzmitry Malyshau 39b7a8a202 Update naga to 8df5421 2021-12-25 00:03:15 -05:00
Josh Groves 97e6ea7b71 Improve shader source documentation (#2315)
- remove outdated note about WGSL web support
- try to combine the note about parsing/validation/translation
2021-12-24 03:00:57 +00:00
Jonathan Behrens a3b9fc3af6 Make ShaderSource #[non_exhaustive] 2021-12-22 17:15:57 -05:00
Dzmitry Malyshau c00e471274 Release 0.12 2021-12-18 12:36:41 -05:00
Dzmitry Malyshau ec1d022a75 Error scopes API (#2299) 2021-12-17 04:39:48 +00:00