teoxoy
d6ebd88f42
implement override-expression evaluation for initializers of override declarations
2024-04-05 18:07:41 +02:00
teoxoy
2929ec333c
[spv/msl/hlsl-out] support pipeline constant value replacements
2024-04-05 18:07:41 +02:00
Teodor Tanasoaia and Jim Blandy
f949ea69c4
[wgsl-in] add support for override declarations ( #4793 )
...
Co-authored-by: Jim Blandy <jimb@red-bean.com >
2024-04-05 18:07:41 +02:00
teoxoy
3bda381812
add pipeline constants plumbing
2024-04-05 18:07:41 +02:00
Dzmitry Malyshau
3a467ad93d
spv-out: Support arrayLength of a dynamically indexed bindings array
2024-04-02 19:22:34 +02:00
Dzmitry Malyshau
bfe0b90740
spv-out: implement OpArrayLength on array buffer bindings
2024-04-02 19:22:34 +02:00
vero and Connor Fitzgerald
4e6f873da5
Add shader I64 and U64 support ( #5154 )
...
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2024-03-12 12:34:06 +01:00
Connor Fitzgerald
8129897ccb
Nested loop test
2024-02-28 13:54:27 +01:00
Imbris
abc0b30dfc
Add test case for builtin only accessed in function parsed after the entry point function
2024-02-15 18:12:25 +01:00
Imbris
ae22743326
Add test case to naga/spv-in for an unnamed glPerVertex struct
2024-02-15 18:12:25 +01:00
Christian Schwarz
2382c8e74f
Fix glsl backend errors regarding samplerCubeArrayShadow ( #5171 )
...
* add GL_EXT_texture_shadow_lod feature detection
* allow more cases of cube depth texture sampling in glsl
* add test for sampling a cubemap array depth texture with lod
* add test for chosing GL_EXT_texture_shadow_lod over the grad workaround if instructed
* add changelog entry for GL_EXT_texture_shadow_lod
* fix criteria for requiring and using TEXTURE_SHADOW_LOD
* require gles 320 for textureSampling over cubeArrayShadow
* prevent false positives in TEXTURE_SHADOW_LOD in checks
* make workaround_lod_with_grad usecase selection less context dependant
* move 3d array texture error into the validator
* correct ImageSample logic errors
2024-02-08 18:27:58 +01:00
Connor Fitzgerald and Andreas Reich
faed98b45c
Add typos to Repository CI ( #5191 )
...
Co-authored-by: Andreas Reich <r_andreas2@web.de >
2024-02-05 12:30:29 -05:00
Patryk Wychowaniec
e7c7017d2e
[naga wgsl-in] Fix parsing break ifs
...
Closes https://github.com/gfx-rs/wgpu/issues/4982 .
2024-01-08 10:50:38 +01:00
teoxoy
b47d4924a8
[glsl-in] fix swizzle in a global const context
2024-01-03 11:34:10 +01:00
Jim Blandy
d9d051b7a5
[naga wgsl] Let unary operators accept and produce abstract types.
...
Fixes #4445 .
Fixes #4492 .
Fixes #4435 .
2023-12-14 10:54:46 +01:00
Jim Blandy
c4b43875e5
[naga wgsl-in] Support abstract operands to binary operators.
2023-12-13 08:42:26 -08:00
Jim Blandy
4b6a2d1dfa
[naga] Teach the constant evaluator vector/vector operators.
...
Allow constant evaluation of binary operators whose left and right
operands are both vectors.
2023-12-12 12:48:10 +01:00
Jim Blandy
0e41cfe4ca
[naga] Change operators.wgsl to use values that matter.
...
Change `splat` to take run-time values as arguments, to prevent
constant evaluation from boiling everything away.
2023-12-12 12:48:10 +01:00
Jim Blandy
f470103874
[naga wgsl-in] Automatic conversions for local var initializers.
2023-12-06 10:35:21 +01:00
Jim Blandy
1676ee0dc0
[naga wgsl-in] Automatic conversions for global var initializers.
2023-12-06 10:35:21 +01:00
Jim Blandy
19702108ab
[naga] Rename abstract-types snapshots abstract-types-const.
...
This prepares for introducing a similar test for global variables.
2023-12-06 10:35:21 +01:00
Jim Blandy
fe4d412aea
[naga wgsl-in] Matrix constructors have only float overloads.
2023-11-29 08:58:47 +01:00
Jim Blandy
601f235b34
[naga wgsl-in] Implement abstract types for consts, constructors.
2023-11-29 08:58:47 +01:00
Jim Blandy
eb92ab2878
[naga wgsl] Experimental 64-bit floating-point literals.
...
In the WGSL front and back ends, support an `lf` suffix on
floating-point literals to yield 64-bit integer literals.
2023-11-23 12:17:21 +01:00
Erich Gubler
1cf0fe841a
test(naga): add struct-layout test
2023-11-22 03:54:16 -07:00
Connor Fitzgerald and teoxoy
1df98d9888
Test And Normalize Vertex Behavior on All Backends ( #4723 )
...
Co-authored-by: teoxoy <28601907+teoxoy@users.noreply.github.com >
2023-11-21 22:11:24 +00:00
Jim Blandy
b7dd59e1dc
[naga] Let constant evaluation handle Compose of Splat.
...
When consuming a `Compose` expression that constructs a vector,
flatten `Splat` subexpressions out into their components.
Fixes #4581 .
2023-11-16 13:34:27 +01:00
Jim Blandy
ecb522e4e3
[naga] New tests for GLSL double-precision builtin functions.
2023-11-14 20:12:31 -08:00
Connor Fitzgerald
5369eec3b2
Move naga to subfolder
2023-10-25 14:25:04 -04:00