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

Use Cow to reduce allocation in proc::Namer. (#1465)

Minimize allocation in the namer. Heap-allocate string only when needed to
provide an owned key...

ed4cc8e4d884e0d6aaa6c4041a679a1137f24b22 authored over 3 years ago
[msl-out] Put serde(default) on the whole struct, not on each field. (#1463)

This has no effect, but makes the code more legible.

528f52fba0db368dae60048bf4cb6f2373820bc8 authored over 3 years ago
[msl-out] Delete Writer::runtime_sized_buffers. (#1462)

This is just a table mapping handles to their indices, but we can just fetch the
index directly...

62cc5fc6462da1a4bbcd6cce06e49e1a04d4c258 authored over 3 years ago
cli: option to keep coordinate space unchanged (#1460)

4cb91f2c98ab97d42442aa5b8da05367f263d227 authored over 3 years ago
Bump version to 0.7.1

3b499811116dd4a29449af134181e28878a9e0a4 authored over 3 years ago
Fix float-bool casts in MSL, SPV, and HLSL backends (#1459)

ee450c1ee4da4e46bc482b3bcdd71600d387a384 authored over 3 years ago
Release 0.7 (#1455)

3a2f7e611e4fe8ec50d9bb365916f22e7c30e46c authored over 3 years ago
[glsl-out] Convert modulo operator on float to SPIR-V OpFRem equivalent function (#1452)

943235cd5e91df9a1d41c60f525d26734bc0d261 authored over 3 years ago
[spv-in] Fix bitfieldExtract/Insert argument types (#1453)

2e7d629aefe6857ade4f96fe2c3dc1a09f0fa4db authored over 3 years ago
Replace pointer-access.spv snapshot test with WGSL source. (#1450)

The original pointer access test used SPIR-V for its input because WGSL didn't
have a working p...

0e3fbc81664a263e8be278d11a6083b227a5b1a2 authored over 3 years ago
Fix lazy CI for snapshots

943e321bc697ccedab4618e1b3733034abc42390 authored over 3 years ago
Add insert/extractBits and pack/unpack functions (#1449)

2f5a41cce9aff2818b64c6faaf804e9eec969eef authored over 3 years ago
Make shader validation under a separate feature (#1437)

3e1244c5cbff24506b82bed906e283260fc19849 authored over 3 years ago
[glsl-in] Always use uint for array size (#1448)

da00bf2be6a8c3cd27153d820cc15e0470e4a1b8 authored over 3 years ago
[glsl-out] Es: convert 1D images to 2D (#1436)

71a75d727d2a9ff898b3bc50f94728be7efaae87 authored over 3 years ago
[glsl-in] Fix array index parsing for 1D images (#1445)

b34fa5f2cc2d4ddd42b64125f811fb51ace942e5 authored over 3 years ago
[Snapshots] Allow a blacklist of entrypoints for glsl-out (#1444)

f01eb723780691b20b2debb8f4d31e505e085816 authored over 3 years ago
Properly type-check `Expression::Select` arguments. (#1442)

Require the `accept` and `reject` arguments to `select` to be scalars or
vectors, per WGSL spec.

f30f3a3db6e126e8e07531a693ea1e28832087db authored over 3 years ago
Forbid unsized structs as final members of structs. (#1443)

WGSL says:

> - The last member of the structure type defining the store type for a variable
...

ea50486b2dfce3e41411aa50e23646768d9558d0 authored over 3 years ago
Various doc fixes. (#1440)

4ea2d96cfb697079d240db5ed4ad41fbd0c7730d authored over 3 years ago
Remove Namer::call_unique. (#1439)

Replace uses of `call_unique` with uses of `call` and `call_or`, which becomes
public. It's not...

4ef1cc403b0a6be96e88f73f1e71680a97199cb1 authored over 3 years ago
Simplify implementation of `Namer::namespace`. (#1438)

Eliminate `Namer::namespace_index` and remove namespace indices from
`Namer::unique` keys. Inst...

92a97fb7d5a5edfe363b38f69cff22ba0a7bc1d0 authored over 3 years ago
Emit std430 layout qualifiers for storage buffers (#1435)

* Remove unused petgraph dependency from glsl-out

* Emit std430 layout qualifiers for storage...

a4bf25a0d5b87a7f0fdd85eac1e2e5041d536f21 authored over 3 years ago
When writing snapshots, reliably identify which writer has failed. (#1427)

2e73e486570e62171058bbfe88a69f2de50997ad authored over 3 years ago
Address 'unused variable' warnings when 'span' feature is off. (#1433)

3e992d8bbfa1c587c5fc6ba760d286c9a4977e84 authored over 3 years ago
[spv-out] option to clamp frag_depth (#1431)

004a12e21d470c854c539d882bae8c953683b202 authored over 3 years ago
Update WGSL grammar for pointer access. (#1312)

* Update WGSL grammar for pointer access.

Comes with a small test, which revealed a number of...

21324b8feaecd5808ea32997dc4a64cbef8640ab authored over 3 years ago
[glsl-in] Use intermediate local if storage class isn't function

Automatically spills to a local variable function call arguments to
parameters expecting a point...

38d74a7f0aa723355a35a3011d044f59d38e79a6 authored over 3 years ago
[spv-in] preserve case order when reusing blocks

aa08cf94a4da1cad7ff8bef27611ff0650bdfb02 authored over 3 years ago
[wgsl-out] Correct handling of named pointer expressions.

Treat expressions in `Function::named_expressions` like WGSL `let` declarations,
assuming that t...

8122598fe790896bd689fa24371408760519196f authored over 3 years ago
[wgsl-out] Make plain_form_indirection an associated fn of Writer.

7b023ce396967c20f660655a2aba72a2e5e1c387 authored over 3 years ago
[wgsl-in]: Correctly compare pointer types.

Treat `TypeInner::ValuePointer` and `TypeInner::Pointer` as equivalent by
converting them to a c...

f3ea2130a45f06a1fbbd6e7f0364a32dcd7d3965 authored over 3 years ago
Rename `UniqueArena` methods to more closely resemble `HashSet`.

`UniqueArena::fetch_or_append` becomes `insert`.

`UniqueArena::try_get` becomes `get_handle`, b...

6e4401ae964e88a506590cc05049463b96343eec authored over 3 years ago
Use `UniqueArena` for types.

Ensure that each distinct type occurs only once in `Module::types`, so that we
can use `Eq` on `...

944a693ae5aec702d58d321b809762818f6bca7a authored over 3 years ago
Consolidate Handle construction code.

d026577a913ea4d849995a4a622dca244f872ffa authored over 3 years ago
[glsl-in]: Register new types as necessary during constant solving.

f91e95b22e4cde9537d58443a6f7fe8930451621 authored over 3 years ago
Simplify interpolation defaulting.

Replace `Module::apply_common_default_interpolation` with a simpler function
that handles a sing...

d44e2ad207883f47019316ccbd6f02c27b27cde9 authored over 3 years ago
[Typifier] Some relational functions output vectors

Previously the typifier flagged all relational functions as producing a
scalar boolean but with ...

73f9d072079246ccf119c4e27de2b624afa6e466 authored over 3 years ago
[glsl-in] Refractor overload selector and add comments

04b176ec6bd16929c45bd9db932ec11f86195c6e authored over 3 years ago
[glsl-in] Allow array constructors

160ab82feeba2d4c555543a998a3f022bde2dfcf authored over 3 years ago
[glsl-in] Allow use of constructors for user types

70db5f681dd4f899d197b55a7d74f0f1923f9505 authored over 3 years ago
Allow unsigned integers in switch

d5fc05e8a4ea39aa91a4c9cc2da149eef5a03ba0 authored over 3 years ago
[glsl-out] Improve handling of samplerCubeArrayShadow

Adds checks that it isn't used in an unsupported function and emits the
depth_ref as a separate ...

6a575590704d02210698ee3f4e4e0907fd5b6e72 authored over 3 years ago
[glsl-in] Support function declarations with void as arguments

63a8463edd3d205ea8f8bb43a0ae1f91cee3addc authored over 3 years ago
wgsl-out: update reserved words

115d170584392fc998b236d6616cea4dcb6925b3 authored over 3 years ago
[glsl-in] Use Span instead of SourceMetadata

af44603e47de7a8009837f7e6be969ede4f8c110 authored over 3 years ago
wgsl-out: vector bitcast

42db64628ed2b42b439a7e7cacc957e6b209a077 authored over 3 years ago
Track finished across compound statements

98944bb7a65dd18e251752912b9c72368333a706 authored over 3 years ago
spv-in: no case fallthrough when last statement allows it

dc8a41de04068b4766c1e74f9d77f765e815172a authored over 3 years ago
Add support for multi view extensions

60d0bf850b5bfeb87aeb5a0d4db6bb4059f80290 authored over 3 years ago
[wgsl-in] Disallow identifiers starting with _

cd65484a2219ef877ae8b653670fdfac7e590b57 authored over 3 years ago
Don't output identifiers starting with _

7895e7f036debe59f5f35e2d5be9e1598d28393e authored over 3 years ago
[spv-in] Allow OpLine anywhere in the function

aea755fd327456566ec8eb4e46d8da9426b9b208 authored over 3 years ago
Add formating checks to CI

9b34d503da0ebfd134c7fc1c472c1af2333a718f authored over 3 years ago
[glsl-in] Improve infix handling

Add support for float, vector and matrices targets.

Fix prefix and postfix being inverted (one ...

d7ca7d43b987c17f553db2823d833646ff1d48e0 authored over 3 years ago
[glsl-in] Add test array constant dynamic indexing

1cb4447ec305f24f5c22b4a3530df55ed4a04393 authored over 3 years ago
[glsl-in] Cast switch selector to int if it's uint

e824519378333d7794187e7d732286a269f5de42 authored over 3 years ago
[glsl-in] Fix bad bit pattern in texelFetch

This caused arrayed textures to not be accepted

796f5f14b0358cec3b6c6c7aec27337fdf8cf020 authored over 3 years ago
[glsl-in] Also apply vector splatting to bitwise ops

27d6e442d29a17c4d32d7caafda61a000a2656a8 authored over 3 years ago
[glsl-in] Use local for constant indexing

Constants that are to be dynamically indexed now are first transformed
into locals with them as ...

2610082bbf03bc2ddba03a86cd2d1cbf9a896c97 authored over 3 years ago
[glsl-in] Add support for a large number of texture sample overrides

a9d20d8ef4a03bf60402dec806b9949a733f11a7 authored over 3 years ago
[glsl-in] Compile tests without codespan

60bd9ec88427d58eb7457d3bcf2997fc0ea3f29c authored over 3 years ago
Document some Expression, EntryPoint, and Module rules.

8aae069f22ac94ec46329a9adbfaf341cd3e7adf authored over 3 years ago
Document `AtomicResult` expressions.

636b8ed606a36f0b137b548d797dbbc7b581f368 authored over 3 years ago
spv-out: option to emit PointSize

52d74e91a4b062d317304250b5461890913d3bb8 authored over 3 years ago
[wgsl-out] Properly parenthesize address-of expressions.

Fixes #1352.

5d3c93e8c776411406be72be08dd51d7ecef8b91 authored over 3 years ago
[spv-out] Various doc fixes.

045ec6db32398119e5e418b28d7226ceb9201808 authored over 3 years ago
Enable span tracking by default in the Naga CLI. (#1364)

95d3a4e6992ae345802d1df1cecb676a9611711c authored over 3 years ago
Correctly recognize defined spans.

Without this change, the `to_range` method method returns `None` even when spans
are enabled.

e5ba11332ffc0ffcddbcdb327123b23c37c77f8a authored over 3 years ago
[wgsl-in] Record identifier definitions as TypedExpression values.

Both a `var` binding and a `let` binding of a pointer to a variable create
entries in the `looku...

08c1a1e9a39a9a47dc2425705b5b3473b4c8dbbd authored over 3 years ago
[wgsl-in] Refuse to apply postfix expressions to WGSL pointers.

Fixes #1356.

Output for the test case in that issue is now:

error: the value indexed by a ...

d31121df77a4a2c960b8efcd2b877b6f9b0165c3 authored over 3 years ago
snapshot tests: Always write IR when requested, even if validation fails.

4abf22c4d115b8ea354bae259706202824965cf9 authored over 3 years ago
[spv-in] Move function data into BlockContext

This allows removing many arguments from functions dealing with
instruction parsing

36114d95b6be797bdf3efb3d1edf544e5f176546 authored over 3 years ago
[spv-out] Rename test snapshot files.

The old filenames were probably based on the shader stage, not the shader
function name, which t...

933ecc4a443cb882bce0283fe77897bba6007080 authored over 3 years ago
Clean up some old snapshot files.

`tests/out/glsl/operators.main.Fragment.glsl` is no longer generated because the
function in que...

0d3dbfe781bc9b5e0c8f63696dd0fff58887e050 authored over 3 years ago
[wgsl-in] Rework Load Rule handling and indirection.

Make the parser code more closely follow the spec's grammar around
`unary_expression`, `postfix_...

3fdd8592fca818710919584dd6ac5e614ca555d8 authored over 3 years ago
Fix warnings in snapshots and spv-in

db80ed4fa935b3ab63a8cfa999a7e9981a51659d authored over 3 years ago
Document TypeResolution and TypeInner::ValuePointer.

c03427b15452e3beef90de10f1f3d05444ffddf8 authored over 3 years ago
wgsl-in: require storage class to be given

807accd7ded15dd8589c93f5f42c5a0076b0f728 authored over 3 years ago
[glsl-in] Fix sampling texture array types

Fixes #1349.

0e66930aff1340d5c636df616d573cc326702158 authored over 3 years ago
Output parentheses around dereference (#1348)

Regression from ce676cf13090b87e1405640ea8ee43e1a1666005.

We need to output (*d).mx rather th...

ba39fd47c32e132072bd5338b7d2afa603f953bc authored over 3 years ago
Make span copyable (#1314)

* Make span copyable

* Use fixed size integers for span

130f802c89d488b719a0e494f3e1ea9ba6f5ba92 authored over 3 years ago
[spv-in] Move essential code out of debug_assert

439148b1a76a0bc31d95a67064a8016176547a32 authored over 3 years ago
[spv-in] new block parser (#1294)

* [spv-in] New two pass parser based

* [spv-in] Allow expressions defined in dominant block i...

3049f63cad4b4b2069139722c07668b3e7dc010f authored over 3 years ago
msl-out: fix as_type expressions

7681f4a21f554412dad494809855edb8367f8994 authored over 3 years ago
hlsl: avoid using texture keyword

135df311b143c4ce033e8d49eec1eea57c704049 authored over 3 years ago
[wgsl-out] Correct production of `*` and `&` operators.

Fixes #1322.

ce676cf13090b87e1405640ea8ee43e1a1666005 authored over 3 years ago
spv-out: option to skip OpName for varyings

e226cf3f1d67d0bf91587e392879f0aee109ec42 authored over 3 years ago
Infer types of module-scope let declarations

c1eed779fe7501dbad4e04c39cf183ee40fe9e7e authored over 3 years ago
Move `#[must_use]` attr on `Capabilities` to where it'll take effect.

This was causing warnings in nightly (1.56.0).

d4bedafbda6e625825fc2c4fedb7281f177ab383 authored over 3 years ago
[spv-out]: ability to separate entry points

7138876625029a59c1f2a0890e9c03b755b11b73 authored over 3 years ago
[hlsl-out] Rewrite indent logic. Reduce heap allocation

35f27cfe7ee09588add02e3c8ce9e3b391953711 authored over 3 years ago
Move `Level` from msl to backend module

3b9dcc568f5d55bc057fd88929cdbdea036ec7ee authored over 3 years ago
[glsl-out] Rewrite indent logic. Reduce heap allocation

9afb581364b37c85d006c2322031793b59c59a87 authored over 3 years ago
[wgsl-out] Rewrite indent logic. Reduce heap allocation

f24ea5c5345862ebd5f942196736539c72fc466d authored over 3 years ago
[spv-in] Divide the depth ref in projection sample

843c6d57585da7951b9bb332eca149a7cb49fb41 authored over 3 years ago
[spv-in] Handle structs with no offset decorations

803093e710b1a3b1989a7984ae9caf4151306f95 authored over 3 years ago
[glsl-out] Fix select order

4fa280d9316c5f6b9e5681de3c4616094ab8375f authored over 3 years ago
hlsl: implement struct constructors

a4f19833b5679fd9a8c39e6535a7e98fe5a41432 authored over 3 years ago
[wgsl-out] Reduce heap allocation

dad26c543c5835707ae6d852d5c661e0927cffa5 authored over 3 years ago