Jim Blandy
1e42208657
Provide a proper new method for RefCount. ( #2570 )
2022-03-31 22:50:48 -07:00
Igor Shaposhnik
43cd0ecedd
[wgsl] Make colon in case optional ( #1801 )
2022-03-30 14:32:01 -04:00
Igor Shaposhnik
6bbba0d0d5
[wgsl] Rename smoothStep to smoothstep ( #1800 )
2022-03-30 14:31:26 -04:00
Teodor Tanasoaia
cfcf625019
[wgsl-in] Constructor improvements ( #1790 )
...
* add support for zero value constructors and constructors that infer their type from their parameters
* address comments
* extract constructor machinery into new module
* fix doc link
2022-03-29 22:51:54 -07:00
Alphyr
58f318550d
Fix clippy lints ( #2560 )
2022-03-28 09:00:09 -04:00
Teodor Tanasoaia
012f2a6b2e
Merge pull request #1784 from teoxoy/patch-2
...
[hlsl-out] fix matrix not being declared as transposed
2022-03-27 22:24:09 -07:00
Alphyr
d45e6b4119
Update ash to 0.37 ( #2557 )
2022-03-27 22:15:58 -07:00
João Capucho
4146cb24d0
glsl-in: Allow nested accesses in lhs positions
...
Also fixes access to runtime sized arrays behind named blocks
2022-03-27 21:47:51 -07:00
João Capucho
21f89b65e4
glsl-in: use forced conversions for vector/matrix constructors
...
The spec defines that for vector and matrix constructors all arguments
should use the same conversions as scalar constructors (forced conversions)
2022-03-27 21:44:17 -07:00
Jonathan Behrens
26537c1a60
Call ctx.emit_start after flushing
2022-03-27 21:43:16 -07:00
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