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

Simplify type handling in VaryingContext.

When `VaryingContext::validate` discovers that it needs to examine
each member of a struct, pass...

5f4a070504a4bda45f26d0aad69b9e610c67ff5a authored over 2 years ago
Rename type flags to better align with the current WGSL spec.

TypeFlags::INTERFACE -> TypeFlags::IO_SHARED
(WGSL §4.4.4's "IO-shareable types")

TypeFLags::HO...

a06b604b80aacbebea20e67210eb9438f4601f6c authored over 2 years ago
[wgsl] Remove buffer, texture, in, out, input, output from reserved keywords

f76af4e53aaf354bfcf7d1b63b3416b9980a2534 authored over 2 years ago
[wgsl-in] implement firstTrailingBit/firstLeadingBit u32 overloads (#1865)

* [wgsl-in] implement firstTrailingBit/firstLeadingBit u32 overloads

* fix MSL type issue

...

f2e7818e7159916445514b485156ddf84f9244a5 authored over 2 years ago
implement phony assignment

062b66ca3157456647d3468d1468039e30aaf421 authored over 2 years ago
Document `TypeInner::BindingArray`.

01212b24b982eb3e93f4dc09dc6576034f7b2765 authored over 2 years ago
Clarify accepted types for `Expression::AccessIndex` (#1862)

* Clarify accepted types for `AccessIndex` and remove `Constant` fragment

* Remove spaces

...

9b7fe8803db1c8bb21ee47bd6691f0cd72ef28cc authored almost 3 years ago
Binding arrays play nice with bounds checks (#1855)

1aa9154964238af8c692cf521ff90e1f2395e147 authored almost 3 years ago
Implement Binding Arrays (#1845)

ad28396851aa4229d228b16594bba7a3fd8d84a3 authored almost 3 years ago
replace unicode-id with unicode-xid

850565243d1d0d03215f13246c94d63e1d4c51cd authored almost 3 years ago
[hlsl-out] Flesh out matrix handling documentation.

0aa6b6902b931afe1d8aaa4ef3e90bfe98538ead authored almost 3 years ago
fix bitflags min version

94467c770fe9a0a6d451bdcbf05040e5ca0a0be5 authored almost 3 years ago
refactor consume_token fn body

0e2bb0194b029c388a70403d36a82d5fc774d307 authored almost 3 years ago
fix being able to match `~=` as LogicalOperation

90b3c18faea19d1a534d6215db686ca4e2028081 authored almost 3 years ago
remove unused code

340bfcc33a09146953c0b554638c05b4f61d8f65 authored almost 3 years ago
update lexer to match more unicode characters

743c8aa387cbfbd3c47e6097c8c2694b3f6ad0a0 authored almost 3 years ago
add minimal-versions check to CI

88fff4c028ccfeced4111cf10fa8ee0ce42c8cd1 authored almost 3 years ago
fix minimal-versions of dependencies

bddfc34299fb47ebaeda40549892ffa70f9ed3e3 authored almost 3 years ago
[wgsl-in] Update reserved keywords (#1847)

dc075e66e3d54b0a4f2650c021271eba2ee71177 authored almost 3 years ago
Make use of new language features (#1841)

* use strip_prefix

* make fn const (resolving TODO)

* make use of nested OR patterns in match ...

7ce98dcc7d7ec541597d1759aa28a321976574c1 authored almost 3 years ago
[hlsl-out] Emit `row_major` qualifier on matrix uniform globals.

Fixes #1836.

ef387f73a613a7b580a1ac7a1974c325e26d0f7e authored almost 3 years ago
update doc of clamp fn

c942a9011bd72b292b1d969b26bf982d3c5295fc authored almost 3 years ago
update msrv to 1.56

33085863b77c1e62dfb09d641462aac0f7830e7c authored almost 3 years ago
[wgsl-out] Update entry point stage attributes

172072501490c877d1efddeb653e0a74107b900c authored almost 3 years ago
[wgsl-in] Update entry point stage attributes

fbb77aa0dcbbc72b47c3a1e213c658b93bccbcf6 authored almost 3 years ago
update `hlsl-out` status in README

c93a5ede71c6cbbc85706af94061862b39202b24 authored almost 3 years ago
[glsl-out] remove redundant space from unary ops

8584507fb6cd9a0d52b474b32f79a66114bd0aba authored almost 3 years ago
[spv-out] add support for int vector scalar mult

95b84c44038da50689868e4bf25a9270e7903165 authored almost 3 years ago
add more tests for operators

e4c017cb7c473dda09bac26b6332cd99681dfd87 authored almost 3 years ago
[glsl-out] add support for boolean vector `~`, `|` and `&` ops

7f4e07e5cd4dbc534e91cba894b90495c01d1de4 authored almost 3 years ago
comment out problematic negative int

2cda40396ac53fd38697053ae150d1733e8730d7 authored almost 3 years ago
[hlsl-out] fix bool splat

6e6daad4d4471f22356b8248c2c03595112a5d6b authored almost 3 years ago
add tests for remaining vector - scalar ops

d3b37dcdb16089776ff5eeebeea6e85f3fd76956 authored almost 3 years ago
[spv-out] add support for matrix add and sub

4ea7dc33816895da76a96e30d0a940339ea747be authored almost 3 years ago
add support for unary vector operators

4366e656097a6f9ae7ab4086ff0511186fea1821 authored almost 3 years ago
add methods on the error types for reusability in wgsl-analyzer (#1827)

6427a661f713c3b4518d753c4f582bafc5dd4c0b authored almost 3 years ago
Document Naga's promises around validation and panics.

ba58ef5176c576527a26719d02bd8ce4b42d1bd2 authored almost 3 years ago
fix typos

dd75579d7c61c5e8de5e0ff28e06442ad34605f2 authored almost 3 years ago
Test matrix-typed uniform globals.

bdbf821c3247742f0fa069636d03937b8166c7aa authored almost 3 years ago
[spv-out] Emit required decorations on wrapper struct types, too.

Fixes #1810.

97fffccac7da222a09b3a32bee031c88f993fbbc authored almost 3 years ago
[spv-out] Decorate array and struct type layouts unconditionally.

Remove the `decorate_layout` variable, which is unconditionally set to
`true` anyway.

1a0a48fd69a12d1e5f204f0c5e4094c689103643 authored almost 3 years ago
[glsl-out] Generate GLSL for arbitrary global types, per Naga IR.

Delete `GlobalTypeKind`.

Break out `Writer::write_global`'s code into two new functions,
`write...

5d631d9e2dd02d203014c15df372338bc112cbb5 authored almost 3 years ago
More tests for non-struct global types.

27d0fee2e7cd4b7e21b05f083f5d0277acddd98c authored almost 3 years ago
[glsl-out] Rename `glsl_storage_class` to `glsl_storage_qualifier`.

"Storage qualifier" is the term used in the GLSL ES specification.

cf1869016f681898da8069304515742cb3d8b4cf authored almost 3 years ago
[glsl-out] Use exhaustive match in AddressSpace::initializable.

No change in behavior. Exhaustive matches aid error detection, and are
clearer when the number o...

896e884802a7b14bd3dd25f91715fdb316a24ba6 authored almost 3 years ago
Introduce TypeInner::is_dynamically_sized helper function.

Use it in HLSL and GLSL back ends.

438a7509679333573415595c35ef0a8f566a6470 authored almost 3 years ago
Reject empty struct types. (#1826)

f11d27af6f7b7c8ffa5fee5f34add227e6e1c689 authored almost 3 years ago
Move `invariant` bit from `Binding::Builtin` to `Builtin::Position`. (#1822)

Use the type system to enforce the rule that the invariant attribute
may only appear on `Positi...

170faab6db5dcada1271d1d72b3be1d21c91c8a6 authored almost 3 years ago
[msl-out] Permit `invariant` qualifier on vertex shader outputs.

78975f25dac3cba5b45c832c1282324aaf165c5f authored almost 3 years ago
[msl-out] Introduce finer distinctions to `LocationMode`.

Distinguish between vertex shader outputs and fragment shader inputs.
This change should have no...

4e4d918d399b50e76613a5f6b34eacce768eb896 authored almost 3 years ago
[glsl-out] Document and flatten `back::glsl::Writer::write_varying`.

8afa5fe5e304c1e32234f93e876423768e291b8e authored almost 3 years ago
[hlsl-out] Add more padding when necessary (#1814)

* [hlsl-out] add padding at the end of structs and after struct members of type matrix and array...

bd62887a1366475224f4e7eeffde76be321b32b7 authored almost 3 years ago
cast packed vec3's to vec3 for expressions that require it

0e77d26241b2429e1bc4f4ef443e6911ac7fd5a1 authored almost 3 years ago
add better tests for msl packed vec3

32cdb272304c54debb8e8b78bf213f3e91500120 authored almost 3 years ago
add matrix vector multiplication test

d7f4c340a7d9f02e4c790e64574965be670c03a1 authored almost 3 years ago
add more packed vec3 load/stores to test

1f797fdc2f79252029bbc40c86a0be07486f08bf authored almost 3 years ago
fix packed vec3 stores

1688a767bb42c9a9a8c942c3619bf5d171b4111d authored almost 3 years ago
glsl-in: Add tests for constants NaN handling (#1817)

954c1f6f4bede2f6a60c92d51f98fe0d1ee5cf83 authored almost 3 years ago
[glsl-in] Implement `MathFunction::Clamp` (#1502)

* Implement Clamp function.

* Fix the return error type.

Change `ConstantSolvingError::Inv...

b21634ac613b8ff3714407f7e8a2c3b58ab32fef authored almost 3 years ago
glsl-in: better errors for bad constant expression (#1501)

Co-authored-by: JCapucho <[email protected]>

8f5d8f61a82edd49750aeae757c94133a6481c26 authored almost 3 years ago
[hlsl-out] fix matCx2 translation for uniform buffers (#1802)

* [hlsl-out] fix matCx2 translation

* fix msl validation (warning: unused variable)

* fix ...

7aaac25fbf64c0f77f0e2deba2963293f3632dad authored almost 3 years ago
[spv-in] error on unsupported matrix stride

5ba2d4d07920cce0ab83f019593e9516f3cdd6c4 authored almost 3 years ago
fix MSL issue

6ee1fd4929f7f6a8e663a74ddc6b69b653e3ffa1 authored almost 3 years ago
implement invariant attribute

d3957c1186f508767c7a2949193d7db86ef34913 authored almost 3 years ago
[glsl-in] error on a `matCx2` used with the std140 layout (#1806)

fa44d9d5369378be47cc12fe407651d01992a2ea authored almost 3 years ago
[hlsl-out] Don't output interpolation modifier if it's the default (#1809)

* hlsl-out: don't output interpolation modifier if it's the default (linear/`Interpolation::Pers...

a3d968e79527b805a7639a4c4db4fa024c16a8c7 authored almost 3 years ago
validate uniform address space layout constraints (#1812)

2db49b6998a6159552a2bcb4395fae1664332e60 authored almost 3 years ago
[wgsl] Make colon in case optional (#1801)

43cd0eceddfac4c44c9a4fc4e9d156dfd1abba57 authored almost 3 years ago
[wgsl] Rename smoothStep to smoothstep (#1800)

6bbba0d0d509f9fe96814473f2369ddc19f230d1 authored almost 3 years ago
[wgsl-in] Constructor improvements (#1790)

* add support for zero value constructors and constructors that infer their type from their para...

cfcf625019188f88431d7abc44d5505eead8f4b5 authored almost 3 years ago
Merge pull request #1784 from teoxoy/patch-2

[hlsl-out] fix matrix not being declared as transposed

012f2a6b2e9328e93939429705fdf9102d9f69b7 authored almost 3 years ago
glsl-in: Allow nested accesses in lhs positions

Also fixes access to runtime sized arrays behind named blocks

4146cb24d0ea596ce983f176a37ffe18e1b6784a authored almost 3 years ago
glsl-in: use forced conversions for vector/matrix constructors

The spec defines that for vector and matrix constructors all arguments
should use the same conve...

21f89b65e4e9012281232d2cb1f66b85bef75f0b authored almost 3 years ago
Call ctx.emit_start after flushing

26537c1a6042e906f278eda5eb40aa331dfa21fa authored almost 3 years ago
Add glsl barrier function

a48faf543f432a4392c40b9bf4c8a111e3ead312 authored almost 3 years ago
glsl-in: Resume expression emit after imageStore

This wasn't done before which caused the frontend to crash if anything
appeared after it.

767d970312d57e353169184f42f93ae06cf903e8 authored almost 3 years ago
fix msrv incompatibility

800fc7471f14ae2fb63d1948be92e5c01615a3ee authored almost 3 years ago
[wgsl-in] implement increment and decrement

9dddfeec37dbd9c55fb6ada97d1db5bb708b5bd8 authored almost 3 years ago
Update changelog

d62c0838a6717c5132261adba46122f57433f4f4 authored almost 3 years ago
wgsl-out: Do not output semicolon after struct decl

b17e6cfe43bcd1bf7982bd3c09ea728c2c72f60f authored almost 3 years ago
wgsl-in: Make semicolon after struct decl optional

3c313564ac8cf933e9cbf05048656044dbfc0b7b authored almost 3 years ago
glsl-in: Allow multiple array specifiers

54ef2e39a0c550084e4e221c7c71b97f62e94244 authored almost 3 years ago
glsl-in: Fix memory qualifiers being inverted

Adds some documentation to better explain how the memory qualifier works
troughout the parser an...

b568bfbbdfbf534dbf0566cc9e11b43715af4d88 authored almost 3 years ago
[wgsl-in] implement while loop

cf992a9a95026d8da2f4847e4884e6c0efbba1db authored almost 3 years ago
insert padding between struct members

05f050fad485763bf7bf6e1ad4206007b52bc345 authored almost 3 years ago
[spv-out] fix wrong MatrixStride for matCx2 and mat2xR

e66a66a7638374922db9a0c02c84e98b397eacae authored almost 3 years ago
update changelog

f90e563c281cfc71c794e0426ebcced9e3999202 authored almost 3 years ago
[wgsl-out] Uses commas to separate struct members instead of semicolons

b5761d96113129ae6ddf82c8d6aa8050abc66b39 authored almost 3 years ago
[wgsl-in] Uses commas to separate struct members instead of semicolons

816fa347ad7afa6053fc7ea49d521239d1cdb899 authored almost 3 years ago
Remove `vs_bake` entry point from `tests/in/shadow.wgsl`

This entry point isn't useful for testing.

7f4c01784c6bbf589d514cf0dabc699c11bfaa29 authored almost 3 years ago
Update test case from wgpu's shadow example

ae282703e2b8de92b03586e35f7013709c0887c6 authored almost 3 years ago
[glsl-out] Write constant sized array type for uniform

8344951ebe3988723ba7844f64f1e7312b51fefb authored almost 3 years ago
Actually test push constants to be used (#1767)

1d3fb26ffde13f512869092c9724d3cd9bfe2eb7 authored almost 3 years ago
[msl-out] Properly rename entry point arguments for struct members. (#1766)

c84aa775790682f2e4ed28440bc681b09808d0cb authored almost 3 years ago
msl: qualify read-only storage with const

79845371d3916b08689da374533c280246f6efc0 authored almost 3 years ago
Not operator depending on expression type

fe3d945a5817135266931db6a205641f7049a778 authored almost 3 years ago
glsl-in: Support arrays as input/output types

Like it was already done for structs, arrays are flattened and each
element is attributed a loca...

f054aa94f4b842b504c8de90cbd8e7d2a2af3922 authored almost 3 years ago
glsl-in: Fix freestanding constructor parsing

a2bcdda81ce5b31dc669724b93eecadef088b7ef authored almost 3 years ago
glsl-in: Allow backtracking in the parser

51e66eceb20d6e3ba6c53b99c1a53d15ecb542dc authored almost 3 years ago
glsl-in: Fix matrix comparisons

7f485d262b90987d6ae51e1e1cc3e304bd12dec6 authored almost 3 years ago