Jonathan Behrens
a48faf543f
Add glsl barrier function
2022-03-27 21:43:16 -07:00
João Capucho
767d970312
glsl-in: Resume expression emit after imageStore
...
This wasn't done before which caused the frontend to crash if anything
appeared after it.
2022-03-27 21:42:02 -07:00
Jim Blandy
4896dee101
Merge pull request #2558 from jimblandy/doc-resource-tracking
...
Document some aspects of resource tracking.
2022-03-27 14:11:30 -07:00
Jim Blandy
0d39818b91
Document some aspects of resource tracking.
2022-03-27 07:41:31 -07:00
teoxoy
800fc7471f
fix msrv incompatibility
2022-03-27 00:34:53 -07:00
teoxoy
9dddfeec37
[wgsl-in] implement increment and decrement
2022-03-27 00:34:53 -07:00
Pu Xingyu
d62c0838a6
Update changelog
2022-03-27 00:22:58 -07:00
Pu Xingyu
b17e6cfe43
wgsl-out: Do not output semicolon after struct decl
2022-03-27 00:22:58 -07:00
Pu Xingyu
3c313564ac
wgsl-in: Make semicolon after struct decl optional
2022-03-27 00:22:58 -07:00
João Capucho
54ef2e39a0
glsl-in: Allow multiple array specifiers
2022-03-27 00:18:20 -07:00
João Capucho
b568bfbbdf
glsl-in: Fix memory qualifiers being inverted
...
Adds some documentation to better explain how the memory qualifier works
troughout the parser and some storage textures tests.
2022-03-27 00:02:26 -07:00
Leo Kettmeir
b52d68d5ad
deno: custom op arity ( #2542 )
2022-03-24 13:20:10 -04:00
HeavyRain266
d5c17fc302
Add Windows 11 to section about DX12 ( #2552 )
2022-03-23 23:23:58 -07:00
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
Jim Blandy
1be43d8073
Document the gfx_select! macro. ( #2555 )
2022-03-23 19:35:42 -04:00
teoxoy
cf992a9a95
[wgsl-in] implement while loop
2022-03-22 22:47:47 -07:00
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