Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/gfx-rs/naga

Universal shader translation in Rust
https://github.com/gfx-rs/naga

Add support for the saturate function (#2025)

uses clamp in place of saturate in spv and glsl

a80967f860f26c318715cf0c59c6fbdafa0b4f13 authored over 2 years ago
Fix clippy lints for 1.63 (#2026)

6f4003ca9b2582b438de7414f530d9662dcd30ce authored over 2 years ago
[glsl-in] add support for .length() (#2017)

Adds parsing support for methods on the glsl frontend, while `.length` is the only method in the...

f2624ea378e5248244e5486e18934e77051f88a7 authored over 2 years ago
add `emit_to_{stderr,string}` helpers for validation errors (#2012)

Mirrors those already found for parse errors.

Also removes the `StringErrorBuffer` writer in ...

cfbc91d6cf34983d25418a201f00d015dc23e6fc authored over 2 years ago
dot-out: Improvements

Improves the dot backend output by:
- Linking new nodes to the end of other blocks, instead of t...

c6f34fa4d896cad5b194e3290b87b76489bfbe74 authored over 2 years ago
Make termcolor dependency optional (#2014)

a0058217d63672e49c7b8e26e497c1afe176d736 authored over 2 years ago
Handle Unpack2x16float in hlsl (#2002)

cc985396dadc95039a0f3d5cfc818a6b4d5eba6b authored over 2 years ago
Update reserved WGSL keywords (#2009)

8f302a89ef350c462c3c0c69f7084a5cf11d196d authored over 2 years ago
Rename hlsl input/output structs (#2001)

17dcf39a1b2e4282943580302f510955704650f5 authored over 2 years ago
Prepare naga-cli 0.9 for release (#1999)

350171ed2f45612386cc91a0ee9ff79d918939a9 authored over 2 years ago
Release 0.9 (#1998)

* Release 0.9

* Further update changelog

* Apply suggestions from code review

Co-author...

06ae90527dcede1a98d6f15fa7c440f0eab5d0ba authored over 2 years ago
Support for the `OVR_multiview2` WebGL extension (#1933)

* Make some (currently hacky) changes to enable multiview in webgl

* Fix ViewIndex built in f...

e2d688088a8e900e22da348cdc7ba0655394b498 authored over 2 years ago
spv-in: Fix incorrect translation of SMod (#1995)

Since spirv's SMod doesn't map to naga's IR modulo operator the
instruction is mapped into it's...

b746e0a4209133c0654d0c8959db97b45cf9358a authored over 2 years ago
[hlsl-out] More `matCx2` fixes (#1989)

* [hlsl-out] fix matCx2 as global uniform

* [hlsl-out] update comments

* [hlsl-out] fix `r...

27d38aae33fdbfa72197847038cb470720594cb1 authored over 2 years ago
Add support for 'break if' to IR, wgsl-in, and all backends.

67ef37ae991f72f06a58774c3866d716d1c9a9c1 authored over 2 years ago
[glsl-out] Handle vector bitcasts (#1966)

* [spv-in] Fix bitcasts on non-scalars

* Fix ::As handling in glsl

* Cargo fmt

* Make c...

ea832a9eec13560560c017072d4318d5d942e5e5 authored over 2 years ago
hlsl-out: Fix indentation for continuing block

The continuing block in hlsl was being generated with the same indentation as the loop body

6d78f1c06dd5327da015f06bc6145c0b68c15b2a authored over 2 years ago
glsl-out: Fix indentation for continuing block

cafdb160ae554a847a35af19d3f6969db4574908 authored over 2 years ago
[msl-out] insert padding initialization for global constants

89f24b6cfe4f7c25c4c5890a5e15e5e479094189 authored over 2 years ago
[wgsl-in] Restore error in the case of bad scalar widths.

0b60f410ab7bd0ca0d67d024c8b5da84b55fbf18 authored over 2 years ago
unify alignment related functionality

46387e90ceaf121974c505f29aeb80e9e4226a73 authored over 2 years ago
[wgsl-in] remove unused code

ad536ce0dfd5c9cc92ebf623ce44432cd9e68c0e authored over 2 years ago
[wgsl-in] implement complete validation for size and align attributes

531d563f0eb18f647f066f700f28775722b76ff0 authored over 2 years ago
Patch ron version (#1986)

Require at least version 0.7.1 of ron, this version changed how floating points are
serialized ...

357da630765d58b5998a80c3d1457ae93a97cbe3 authored over 2 years ago
Add tests

ae58fbf4d04d7fb4d8d2340f06a11b869eecb290 authored over 2 years ago
glsl-in: Perform casts in int only math functions

Some functions like abs only accept signed integers while naga's IR
accepts both signed and unsi...

70743ee7dc379f6c22fd25da8bd581a03f73f1d0 authored over 2 years ago
Apply comments

98bc8fedf9b88ecbdc1bbe653f4a4f92a915d9ce authored over 2 years ago
glsl-in: Don't allow empty last case in switch

The GLSL spec forbids switch statements with an empty last case, so we
check that now and throw ...

ae50f31d4f0ae954da1816a5d841201fcab15dc5 authored over 2 years ago
glsl-in: Fix last case falltrough and empty switch

GLSL allows the last case of a switch statement to not have a `break`
statement causing it to be...

dab932e8ce46eed20989baa2d52f206f97eaf17c authored over 2 years ago
glsl-in: Splat inputs for smoothstep if needed

Glsl defines two overloads for smoothstep that accept `min` and `max` as
scalars and the value a...

52bb25179bcd48097f4371a487955cf34d26bd26 authored over 2 years ago
msl: don't rely on cached expressions

Expressions marked for caching might not be cached, this can happen for
example when these expre...

46bc882d19f012c6a3491f647fee5b886079e48c authored over 2 years ago
glsl-out: don't rely on cached expressions

Expressions marked for caching might not be cached, this can happen for
example when these expre...

b5a046982f97e27a93885dfcfa624c29fbcaf3dd authored over 2 years ago
Add tests

c7e67690013ce08132f5e8203379c72534b84f39 authored over 2 years ago
glsl-in: Fix parameter not changing to depth

The conversion from sampled images to depth changed the `argument` type
but didn't change the `p...

3d3e5ae00de40de941aa8a9f801228532cf4ae91 authored over 2 years ago
glsl-in: Add test for nested depth texture calls

Co-authored-by: Jasper St. Pierre <[email protected]>

81e2b006e1e968029cb85de5a1fc127f16625a4b authored over 2 years ago
update changelog for v0.9

0a6b0e5b7100a26bd467607359b32c9d3ad3df46 authored over 2 years ago
[wgsl-in] overhaul number lexing / parsing

Bring the lexer's parsing of numeric literals in line with the WGSL
specification as of 86a23b83...

53aa3e2df525dd772e6e9508e8e4a9758e9f5f98 authored over 2 years ago
Forbid returning pointers and atomics from functions.

Introduce a new `TypeFlags::CONSTRUCTIBLE` flag, corresponding to
WGSL's "constructible types". ...

89bed99bcc995bc5068c9c112fd9b7d7896bb148 authored over 2 years ago
Let validation check for more unsupported builtins.

Add `valid::Capabilities` flags for the `ClipDistance` and
`CullDistance` builtins, which are no...

1c21fc02fec00f62f2df429abca0647db6583982 authored over 2 years ago
Verify in CI that benchmarks build.

Also, the documentation job probably doesn't need Clippy.

7f5ec31825be688729450c01d112e876c164760f authored over 2 years ago
Fix Criterion benchmark build.

As of #1889, the GLSL back end takes an additional argument specifying
the bounds checks policie...

231341f056d2fd7ec49ae18c612495895a297e1c authored over 2 years ago
glsl-in: Fix matrix multiplication check

The previous check compared rows to rows and columns to columns but
multiplication of matrices o...

e461d30865150a338c41aa8b57b4b859db5ca7da authored over 2 years ago
spv-in: Implement OpBitReverse and OpBitCount

cff744dc8947fbddfcce1e48aba68b51ee41fc5c authored over 2 years ago
[spv-in] Finish truncated comment.

6a3f526c1224dc74d97514707536354bd5fe8d86 authored over 2 years ago
glsl-in: Stop emitter in conditional

This wasn't being done when there were no implicit conversions, causing
the emitter to panic.

9e75332283243223e611607025d44fca0f0407d6 authored over 2 years ago
[hlsl-out] avoid error X3504: array index out of bounds

768e1fe703e9724f5bfc5e2df6997eefe9cfed6b authored over 2 years ago
[hlsl-out] avoid error X3694: race condition writing to shared resource detected

a8256e94c24e46a3cf298439e631ee29de3ec0de authored over 2 years ago
[hlsl-out] fix fallthrough in switch statements

91ee407c87638ed81844ac2f71e5cd0cbf3dbb61 authored over 2 years ago
[hlsl-out] fix missing break statements (for FXC)

7c7e96276ad86d4538c571c3e93ea59f15cdf1e7 authored over 2 years ago
glsl-out: Implement bounds checks for `ImageLoad` (#1889)

* glsl-out: Implement bounds checks for `ImageLoad`

* Enable image bounds check snapshot test...

0aa7681165f9ae74f2ddd109f4bdfa73a4e094cd authored over 2 years ago
Update README for glsl-in (#1951)

c7e245c0833e76843dbf269f8217ced6b09906bd authored over 2 years ago
glsl-out: Fix storage format for Rgba8Unorm

4cd997a3eb29a33eb4a318e0b1f16acc1b9924e5 authored over 2 years ago
Doc tweaks.

f035854dac7faad6660719f4d6f6a9f3bf468ea3 authored over 2 years ago
Add a helper for getting the location of a span in some textual source.

f9dfc38c405be4b97bb2647a7a407c2171c9ba12 authored over 2 years ago
add HLSL validation via FXC to CI

62da3bf348463a6f1de5f3419fe949075afc9c77 authored over 2 years ago
Run cargo fmt

196c9981bc41320d3169bcf6e3200cbbf6bc0e10 authored over 2 years ago
Add MultiView to SUPPORTED_CAPABILITIES

fea733f58e5360e6ab5d124e504137261a87a51e authored over 2 years ago
Fix a broken clippy lint

104f4dc7ecae8e1f44811a5fca7bcf9413efdb11 authored over 2 years ago
[hlsl-out] Fix countOneBits and reverseBits for signed integers

571302e3ff09cb856f63a3683da308159872b7cc authored over 2 years ago
Add error for non-floating-point matrix

60ae549fe1bec8df40518a6164d723d41a2b76b5 authored over 2 years ago
[hlsl-out] fix array constructor return type (for FXC)

ab2806e05fbd69a502b4b25a85f99ae4d3e82278 authored over 2 years ago
[msl-out] use matrix identity constructor

5f47d6d31f64a16c76b16dad8fb4b72e5ce8815a authored over 2 years ago
[spv-out] use OpCopyObject for bool - bool conversion due to OpBitcast not being feasible for booleans

b7ff50619c952647d9204a5b8ac54b9a9b7dd1ab authored over 2 years ago
add support for identity matrix constructor

afb6504b8b5e6b697f3d6c3d580a8c67a870bb43 authored over 2 years ago
[wgsl-in] support partial vector & matrix identity constructors

6dae3ac7e000810a082cbf6b44745235f5832278 authored over 2 years ago
[spv-out] use OpCopyObject for matrix identity casts

f48174a0b46a8bd30310d4c9b39ef71639db00c3 authored over 2 years ago
[valid] Fix bitflag assignments (#1915)

95d5d165fbae8adb4fd5e5d37e51e7d0ab104137 authored over 2 years ago
[msl-out] fix pointers to private or workgroup address spaces possibly being read only

b688584d87fd76e7388b06421c358a5e984b350d authored over 2 years ago
[wgsl-in] fix incr/decr not matching ValuePointer

fea33c682e7bfff8e82182d81925de1a7fb4440c authored over 2 years ago
[wgsl] Reserve binding_array

8db27c49f861901e7ee66ea41364635bae3f5dd1 authored over 2 years ago
Fix hlsl output for writes to scalar/vector storage buffer

205ea6cc5c437fa42bafb75514387c1dcbf5d585 authored over 2 years ago
[msl-out] zero init variables in function address space

b3d5e6d807560310fa514c0920c91c7f2cac974b authored over 2 years ago
[spv-out] zero init variables in function and private address spaces

239bbbbed44a5c9e74399af1ae6d38b54766f28d authored over 2 years ago
remove named expression entry for phony assignment

ceb92921c2b7f4d216131fcf10efd4592443a612 authored over 2 years ago
[spv-in] translate OpSMod correctly

ecd6d4e4aacb8355cad5f7f3ab50864672aa8d67 authored over 2 years ago
[hlsl-out] use fmod instead of %

c584331f3931a529f83082c927c993dddb2da4a8 authored over 2 years ago
[spv-in] translate OpFMod correctly

0d4098d6349ac849877aa09254d1f300f15430bf authored over 2 years ago
[glsl-in] translate mod fn correctly

c03d840755144feb0d931707dfffb0fd81d49aee authored over 2 years ago
add TODOs for handling undefined behavior

66337af310ca55be296910ba84970775e5c7aba8 authored over 2 years ago
[spv-out] use SRem instead of SMod

7109cffb20a83eee499a0899a739d4186952a0ec authored over 2 years ago
[hlsl-out] use wrapped constructors when loading from storage address space (#1893)

e312a7adeb5b53b3f9e56c666ea195b1c630a161 authored over 2 years ago
Show naga-cli instead of cargo run on README

f1d72f84338ec1f036cbaa692fa2dae3c94d95d3 authored over 2 years ago
Describe the usage of `cargo run`

af6e2fc7ab3296b71f9472d8fe85ab91a3e72abe authored over 2 years ago
Implement reverseBits and countOneBits for SPIR-V (#1897)

* Implement reverseBits and countOneBits for spir-v

* Update tests

* Fix type error for gl...

934fa1691976466cf05a4e14b70bca8bd601bdda authored over 2 years ago
glsl-out: Fix feature search in expressions

It was also searching in all entry points instead of only in the current
one.

All samples queri...

cf32c2b7f38c985e1c770eeff05a91e0cd15ee04 authored over 2 years ago
[hlsl-out] zero init struct constructor

1869c6831e5582e3ee56f724a9ec6b040ba044ce authored over 2 years ago
Use Unicode 14 for WGSL

The unicode-xid crate just had a release with Unicode 14 data, which the WGSL spec requires.

9c8a51830c0348fabb3cda990e2449eea8f9de60 authored over 2 years ago
Split out `check_one_validation` macro from `check_validation`.

The new `check_one_validation` macro permits the source code to be a
computed expression, not ju...

dec07027eebf22e954c9252a6f73622170e228b3 authored over 2 years ago
Rename `check_validation_error` macro to `check_validation`.

The macro can check for both success and failure, so the new name is
more accurate, and shorter.

a8e1e11437d10228df3597db50e25a57ea5466e2 authored over 2 years ago
Properly check that user-defined IO uses IO-shareable types.

Only numeric scalars and vectors, and structs whose members are such
values, are permitted as th...

57e1793143e9ed7937be90f4ef0ea58c7303d61f authored over 2 years ago
glsl-in: Improve the context emitter interface

Adds a new method `emit_restart` to perform the common operation of flushing
the `emitter` to th...

6a62d009ea2b0d215f2fdb209f8bc132c0589a7d authored over 2 years ago
glsl-in: Fix the ternary to behave as an if

The GLSL specification defines that only one of the branches should be
evaluated making the tern...

1c02de537b3b47ea5c4729723a6ffc7e582099ef authored over 2 years ago
glsl-in: Apply comments

883a88580f95161184e754af9b32d171670a6e87 authored over 2 years ago
Factor out code for deciding which pointers can be arguments.

2571039af0607770948b6bf569a724fd985abef2 authored over 2 years ago
update readme

0d3b9bfe45397a0531c041602a0e15280a9090ae authored over 2 years ago
[glsl-in] Simplify control flow in search for `main`.

fae939f537933a1fcc5e9789e18121afc1cb1708 authored over 2 years ago
[glsl-in] Use `std::mem::take` as appropriate. (#1878)

115a8109814667d5adeedf55e8192fcaafbb691e authored over 2 years ago
Change `!0` to `<type>::MAX` or `-1`, depending on signedness

a99fc27dc1ae1b03dcd33502a8740e8928b2a25d authored over 2 years ago
Correct error message for `Handle` index overflow.

This function is used from both `Arena` and `UniqueArena`. When its
code moved from `Arena` to `...

7b8d257043b9db9af6118cff4782526e848d4e73 authored over 2 years ago
Validate `ValuePointer` exactly like a `Pointer` to a `Scalar`.

A `ValuePointer` type should always be handled exactly like the
equivalent `Pointer` to `Scalar`...

e8723219b71aa7daf84422083d603165961770e4 authored over 2 years ago