Commit Graph
8897 Commits
Author SHA1 Message Date
Jim Blandy e821e185a1 Simplify implementation of RefCount and MultiRefCount. (#2548)
`RefCount::rich_drop_inner` is no longer used by anything other than `RefCount::drop`. It's simpler to just handle it directly in `drop`.

`MultiRefCount` has no need to heap-allocate the count, since it's
never cloned.
2022-03-21 16:40:11 -07:00
teoxoy 05f050fad4 insert padding between struct members 2022-03-21 16:39:10 -07: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
Teodor Tanasoaia e66a66a763 [spv-out] fix wrong MatrixStride for matCx2 and mat2xR 2022-03-19 21:20:45 -07:00
Dzmitry Malyshau 326af60df8 Expect shadow example to pass on Vulkan (#2541) 2022-03-19 05:58:14 +00:00
Leo Kettmeir cd6eb2db36 Merge pull request #2539 from crowlKats/update_deno
Update deno_webgpu
2022-03-18 22:31:10 -07:00
Igor Shaposhnik c5d5dbc7eb [naga] Update naga with new struct members separator 2022-03-16 20:42:21 -07:00
Jinlei Li ba07db90c8 metal: improve push | pop_debug_marker 2022-03-14 22:21:46 -07:00
Igor Shaposhnik f90e563c28 update changelog 2022-03-12 22:07:06 -08:00
Igor Shaposhnik b5761d9611 [wgsl-out] Uses commas to separate struct members instead of semicolons 2022-03-12 22:07:06 -08:00
Igor Shaposhnik 816fa347ad [wgsl-in] Uses commas to separate struct members instead of semicolons 2022-03-12 22:07:06 -08:00
Connor Fitzgerald 73f42352f3 Dx11 Backend (#2443) 2022-03-12 17:14:18 +00:00
hatoo 7f4c01784c Remove vs_bake entry point from tests/in/shadow.wgsl
This entry point isn't useful for testing.
2022-03-11 20:14:25 -08:00
hatoo ae282703e2 Update test case from wgpu's shadow example 2022-03-11 20:14:25 -08:00
hatoo 8344951ebe [glsl-out] Write constant sized array type for uniform 2022-03-11 20:14:25 -08: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 ffe5e261da Adds D3D11 DXGI Support and COM Helper Chain (#37)
* Add older dxgi methods

* Add create_swapchain_for_composition

* Add DXGIFactory6

* Write COM inheritance chain macro

* Add DXGIAdapter chain

* Make accessing base of inheritance chain easy

* Add `mut_self` to WeakPtr

* Add TryFrom<u32> for FeatureLevel

* Fix compile error on 1.51

* Comments
2022-03-08 20:15:03 -08:00
Dzmitry Malyshau 1d3fb26ffd Actually test push constants to be used (#1767) 2022-03-08 23:02:20 -05:00
Jim Blandy c84aa77579 [msl-out] Properly rename entry point arguments for struct members. (#1766) 2022-03-08 10:07:30 -05:00
Dzmitry Malyshau 79845371d3 msl: qualify read-only storage with const 2022-03-06 19:28:15 -08:00
Liam Murphy 0ac9ce0026 Fix wasm examples failing to compile (#2524) 2022-03-06 04:47:24 +00:00
Vincent Isambart fe3d945a58 Not operator depending on expression type 2022-03-05 19:11:27 -08:00
João Capucho f054aa94f4 glsl-in: Support arrays as input/output types
Like it was already done for structs, arrays are flattened and each
element is attributed a location that is it's index + the array base
location.
2022-03-03 21:42:48 -08:00
João Capucho a2bcdda81c glsl-in: Fix freestanding constructor parsing 2022-03-03 21:39:45 -08:00
João Capucho 51e66eceb2 glsl-in: Allow backtracking in the parser 2022-03-03 21:39:45 -08:00
João Capucho af8dd4b3bd glsl-in: Fix matrix by scalar operations 2022-03-02 22:27:24 -08:00
João Capucho 48320db507 glsl-in: Fix matrix by matrix division 2022-03-02 22:27:24 -08:00
João Capucho 7f485d262b glsl-in: Fix matrix comparisons 2022-03-02 22:27:24 -08:00
Jinlei Li d3c210160f metal: refactor texture_format_capabilities function 2022-03-02 22:23:48 -08:00
João Capucho d449d2e665 glsl-in: Add support for texelFetchOffset 2022-03-01 21:06:50 -08:00
Jinlei Li 810dc5aa27 gl | metal: updates the upper bounds of the extends of SurfaceCapabilities 2022-03-01 21:05:48 -08:00
Jinlei Li 12f68ff15b metal: refactor PrivateCapabilities creation 2022-03-01 21:05:48 -08:00
Jinlei Li c4e9797921 metal: roll metal-rs, fix read_write_texture_tier 2022-03-01 21:05:48 -08:00
João Capucho e672974d9d gles: Fix texture description for bgra formats (#2520) 2022-03-01 14:43:57 -05:00
Connor Fitzgerald e4553d7e16 Update test status readme 2022-02-28 21:38:52 -08: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 926bf848cf hal/gles: Fix compressed texture stride calculations 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 4e44288677 Install vulkan sdk on CI 2022-02-28 21:38:52 -08:00
Connor Fitzgerald 6979c7fe4c Make texture format info into an in-code table 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 3841353f13 Re-enable GL tests in CI 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 7241dae871 Fill out GLES texture capability table 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
Jim Blandy 62f267a140 [wgsl-in] consume_number: Check uint_suffix flag at top of match.
This makes it unnecessary to check that field in every other pattern
in the match.
2022-02-27 22:43:44 -05:00