| 1 |
# Change Log |
| 2 |
|
| 3 |
For changelogs after v0.14, see [the wgpu changelog](../CHANGELOG.md). |
| 4 |
|
| 5 |
## v0.14 (2023-10-25) |
| 6 |
|
| 7 |
#### GENERAL |
| 8 |
|
| 9 |
- Add support for const-expressions. ([#2309](https://github.com/gfx-rs/naga/pull/2309)) **@teoxoy**, **@jimblandy** |
| 10 |
- Add support for the `rgb10a2uint` storage format. ([#2525](https://github.com/gfx-rs/naga/pull/2525)) **@teoxoy** |
| 11 |
- Implement module compaction for snapshot testing and the CLI. ([#2472](https://github.com/gfx-rs/naga/pull/2472)) **@jimblandy** |
| 12 |
- Fix validation and GLSL parsing of `ldexp`. ([#2449](https://github.com/gfx-rs/naga/pull/2449)) **@fornwall** |
| 13 |
- Add support for dual source blending. ([#2427](https://github.com/gfx-rs/naga/pull/2427)) **@freqmod** |
| 14 |
- Bump `indexmap` to v2. ([#2426](https://github.com/gfx-rs/naga/pull/2426)) **@daxpedda** |
| 15 |
- Bump MSRV to 1.65. ([#2420](https://github.com/gfx-rs/naga/pull/2420)) **@jimblandy** |
| 16 |
|
| 17 |
#### API |
| 18 |
|
| 19 |
- Split `UnaryOperator::Not` into `UnaryOperator::LogicalNot` & `UnaryOperator::BitwiseNot`. ([#2554](https://github.com/gfx-rs/naga/pull/2554)) **@teoxoy** |
| 20 |
- Remove `IsFinite` & `IsNormal` relational functions. ([#2532](https://github.com/gfx-rs/naga/pull/2532)) **@teoxoy** |
| 21 |
- Derive `PartialEq` on `Expression`. ([#2417](https://github.com/gfx-rs/naga/pull/2417)) **@robtfm** |
| 22 |
- Use `FastIndexMap` for `SpecialTypes::predeclared_types`. ([#2495](https://github.com/gfx-rs/naga/pull/2495)) **@jimblandy** |
| 23 |
|
| 24 |
#### CLI |
| 25 |
|
| 26 |
- Change `--generate-debug-symbols` from an `option` to a `switch`. ([#2472](https://github.com/gfx-rs/naga/pull/2472)) **@jimblandy** |
| 27 |
- Add support for `.{vert,frag,comp}.glsl` files. ([#2462](https://github.com/gfx-rs/naga/pull/2462)) **@eliemichel** |
| 28 |
|
| 29 |
#### VALIDATOR |
| 30 |
|
| 31 |
- Require `Capabilities::FLOAT64` for 64-bit floating-point literals. ([#2567](https://github.com/gfx-rs/naga/pull/2567)) **@jimblandy** |
| 32 |
- Add `Capabilities::CUBE_ARRAY_TEXTURES`. ([#2530](https://github.com/gfx-rs/naga/pull/2530)) **@teoxoy** |
| 33 |
- Disallow passing pointers to variables in the workgroup address space to functions. ([#2507](https://github.com/gfx-rs/naga/pull/2507)) **@teoxoy** |
| 34 |
- Avoid OOM with large sparse resource bindings. ([#2561](https://github.com/gfx-rs/naga/pull/2561)) **@teoxoy** |
| 35 |
- Require that `Function` and `Private` variables be `CONSTRUCTIBLE`. ([#2545](https://github.com/gfx-rs/naga/pull/2545)) **@jimblandy** |
| 36 |
- Disallow floating-point NaNs and infinities. ([#2508](https://github.com/gfx-rs/naga/pull/2508)) **@teoxoy** |
| 37 |
- Temporarily disable uniformity analysis for the fragment stage. ([#2515](https://github.com/gfx-rs/naga/pull/2515)) **@teoxoy** |
| 38 |
- Validate that `textureSampleBias` is only used in the fragment stage. ([#2515](https://github.com/gfx-rs/naga/pull/2515)) **@teoxoy** |
| 39 |
- Validate variable initializer for address spaces. ([#2513](https://github.com/gfx-rs/naga/pull/2513)) **@teoxoy** |
| 40 |
- Prevent using multiple push constant variables in one entry point. ([#2484](https://github.com/gfx-rs/naga/pull/2484)) **@andriyDev** |
| 41 |
- Validate `binding_array` variable address space. ([#2422](https://github.com/gfx-rs/naga/pull/2422)) **@teoxoy** |
| 42 |
- Validate storage buffer access. ([#2415](https://github.com/gfx-rs/naga/pull/2415)) **@teoxoy** |
| 43 |
|
| 44 |
#### WGSL-IN |
| 45 |
|
| 46 |
- Fix expected min arg count of `textureLoad`. ([#2584](https://github.com/gfx-rs/naga/pull/2584)) **@teoxoy** |
| 47 |
- Turn `Error::Other` into `Error::Internal`, to help devs. ([#2574](https://github.com/gfx-rs/naga/pull/2574)) **@jimblandy** |
| 48 |
- Fix OOB typifier indexing. ([#2570](https://github.com/gfx-rs/naga/pull/2570)) **@teoxoy** |
| 49 |
- Add support for the `bgra8unorm` storage format. ([#2542](https://github.com/gfx-rs/naga/pull/2542) & [#2550](https://github.com/gfx-rs/naga/pull/2550)) **@nical** |
| 50 |
- Remove the `outerProduct` built-in function. ([#2535](https://github.com/gfx-rs/naga/pull/2535)) **@teoxoy** |
| 51 |
- Add support for `i32` overload of the `sign` built-in function. ([#2463](https://github.com/gfx-rs/naga/pull/2463)) **@fornwall** |
| 52 |
- Properly implement `modf` and `frexp`. ([#2454](https://github.com/gfx-rs/naga/pull/2454)) **@fornwall** |
| 53 |
- Add support for scalar overloads of `all` & `any` built-in functions. ([#2445](https://github.com/gfx-rs/naga/pull/2445)) **@fornwall** |
| 54 |
- Don't splat the left hand operand of a binary operation if it's not a scalar. ([#2444](https://github.com/gfx-rs/naga/pull/2444)) **@fornwall** |
| 55 |
- Avoid splatting all binary operator expressions. ([#2440](https://github.com/gfx-rs/naga/pull/2440)) **@fornwall** |
| 56 |
- Error on repeated or missing `@workgroup_size()`. ([#2435](https://github.com/gfx-rs/naga/pull/2435)) **@fornwall** |
| 57 |
- Error on repeated attributes. ([#2428](https://github.com/gfx-rs/naga/pull/2428)) **@fornwall** |
| 58 |
- Fix error message for invalid `texture{Load,Store}()` on arrayed textures. ([#2432](https://github.com/gfx-rs/naga/pull/2432)) **@fornwall** |
| 59 |
|
| 60 |
#### SPV-IN |
| 61 |
|
| 62 |
- Disable `Modf` & `Frexp` and translate `ModfStruct` & `FrexpStruct` to their IR equivalents. ([#2527](https://github.com/gfx-rs/naga/pull/2527)) **@teoxoy** |
| 63 |
- Don't advertise support for `Capability::ImageMSArray` & `Capability::InterpolationFunction`. ([#2529](https://github.com/gfx-rs/naga/pull/2529)) **@teoxoy** |
| 64 |
- Fix `OpImageQueries` to allow Uints. ([#2404](https://github.com/gfx-rs/naga/pull/2404)) **@evahop** |
| 65 |
|
| 66 |
#### GLSL-IN |
| 67 |
|
| 68 |
- Disable `modf` & `frexp`. ([#2527](https://github.com/gfx-rs/naga/pull/2527)) **@teoxoy** |
| 69 |
|
| 70 |
#### SPV-OUT |
| 71 |
|
| 72 |
- Require `ClipDistance` & `CullDistance` capabilities if necessary. ([#2528](https://github.com/gfx-rs/naga/pull/2528)) **@teoxoy** |
| 73 |
- Change `naga::back::spv::DebugInfo::file_name` to a `&Path`. ([#2501](https://github.com/gfx-rs/naga/pull/2501)) **@jimblandy** |
| 74 |
- Always give structs with runtime arrays a `Block` decoration. ([#2455](https://github.com/gfx-rs/naga/pull/2455)) **@TheoDulka** |
| 75 |
- Decorate the result of the `OpLoad` with `NonUniform` (not the access chain) when loading images/samplers (resources in the Handle address space). ([#2422](https://github.com/gfx-rs/naga/pull/2422)) **@teoxoy** |
| 76 |
- Cache `OpConstantNull`. ([#2414](https://github.com/gfx-rs/naga/pull/2414)) **@evahop** |
| 77 |
|
| 78 |
#### MSL-OUT |
| 79 |
|
| 80 |
- Add and fix minimum Metal version checks for optional functionality. ([#2486](https://github.com/gfx-rs/naga/pull/2486)) **@teoxoy** |
| 81 |
- Make varyings' struct members unique. ([#2521](https://github.com/gfx-rs/naga/pull/2521)) **@evahop** |
| 82 |
- Add experimental vertex pulling transform flag. ([#5254](https://github.com/gfx-rs/wgpu/pull/5254)) **@bradwerth** |
| 83 |
- Fixup some generated MSL for vertex buffer unpack functions. ([#5829](https://github.com/gfx-rs/wgpu/pull/5829)) **@bradwerth** |
| 84 |
- Make vertex pulling transform on by default. ([#5773](https://github.com/gfx-rs/wgpu/pull/5773)) **@bradwerth** |
| 85 |
|
| 86 |
#### GLSL-OUT |
| 87 |
|
| 88 |
- Cull functions that should not be available for a given stage. ([#2531](https://github.com/gfx-rs/naga/pull/2531)) **@teoxoy** |
| 89 |
- Rename identifiers containing double underscores. ([#2510](https://github.com/gfx-rs/naga/pull/2510)) **@evahop** |
| 90 |
- Polyfill `frexp`. ([#2504](https://github.com/gfx-rs/naga/pull/2504)) **@evahop** |
| 91 |
- Add built-in functions to keywords. ([#2410](https://github.com/gfx-rs/naga/pull/2410)) **@fornwall** |
| 92 |
|
| 93 |
#### WGSL-OUT |
| 94 |
|
| 95 |
- Generate correct code for bit complement on integers. ([#2548](https://github.com/gfx-rs/naga/pull/2548)) **@jimblandy** |
| 96 |
- Don't include type parameter in splat expressions. ([#2469](https://github.com/gfx-rs/naga/pull/2469)) **@jimblandy** |
| 97 |
|
| 98 |
## v0.13 (2023-07-21) |
| 99 |
|
| 100 |
#### GENERAL |
| 101 |
|
| 102 |
- Move from `make` to `cargo xtask` workflows. ([#2297](https://github.com/gfx-rs/naga/pull/2297)) **@ErichDonGubler** |
| 103 |
- Omit non referenced expressions from output. ([#2378](https://github.com/gfx-rs/naga/pull/2378)) **@teoxoy** |
| 104 |
- Bump `bitflags` to v2. ([#2358](https://github.com/gfx-rs/naga/pull/2358)) **@daxpedda** |
| 105 |
- Implement `workgroupUniformLoad`. ([#2201](https://github.com/gfx-rs/naga/pull/2201)) **@DJMcNab** |
| 106 |
|
| 107 |
#### API |
| 108 |
|
| 109 |
- Expose early depth test field. ([#2393](https://github.com/gfx-rs/naga/pull/2393)) **@Joeoc2001** |
| 110 |
- Split image bounds check policy. ([#2265](https://github.com/gfx-rs/naga/pull/2265)) **@teoxoy** |
| 111 |
- Change type of constant sized arrays to `NonZeroU32`. ([#2337](https://github.com/gfx-rs/naga/pull/2337)) **@teoxoy** |
| 112 |
- Introduce `GlobalCtx`. ([#2335](https://github.com/gfx-rs/naga/pull/2335)) **@teoxoy** |
| 113 |
- Introduce `Expression::Literal`. ([#2333](https://github.com/gfx-rs/naga/pull/2333)) **@teoxoy** |
| 114 |
- Introduce `Expression::ZeroValue`. ([#2332](https://github.com/gfx-rs/naga/pull/2332)) **@teoxoy** |
| 115 |
- Add support for const-expressions (only at the API level, functionality is still WIP). ([#2266](https://github.com/gfx-rs/naga/pull/2266)) **@teoxoy**, **@jimblandy** |
| 116 |
|
| 117 |
#### DOCS |
| 118 |
|
| 119 |
- Document which expressions are in scope for a `break_if` expression. ([#2326](https://github.com/gfx-rs/naga/pull/2326)) **@jimblandy** |
| 120 |
|
| 121 |
#### VALIDATOR |
| 122 |
|
| 123 |
- Don't `use std::opsIndex`, used only when `"validate"` is on. ([#2383](https://github.com/gfx-rs/naga/pull/2383)) **@jimblandy** |
| 124 |
- Remove unneeded `ConstantError::Unresolved{Component,Size}`. ([#2330](https://github.com/gfx-rs/naga/pull/2330)) **@ErichDonGubler** |
| 125 |
- Remove `TypeError::UnresolvedBase`. ([#2308](https://github.com/gfx-rs/naga/pull/2308)) **@ErichDonGubler** |
| 126 |
|
| 127 |
#### WGSL-IN |
| 128 |
|
| 129 |
- Error on param redefinition. ([#2342](https://github.com/gfx-rs/naga/pull/2342)) **@SparkyPotato** |
| 130 |
|
| 131 |
#### SPV-IN |
| 132 |
|
| 133 |
- Improve documentation for SPIR-V control flow parsing. ([#2324](https://github.com/gfx-rs/naga/pull/2324)) **@jimblandy** |
| 134 |
- Obey the `is_depth` field of `OpTypeImage`. ([#2341](https://github.com/gfx-rs/naga/pull/2341)) **@expenses** |
| 135 |
- Convert conditional backedges to `break if`. ([#2290](https://github.com/gfx-rs/naga/pull/2290)) **@eddyb** |
| 136 |
|
| 137 |
#### GLSL-IN |
| 138 |
|
| 139 |
- Support commas in structure definitions. ([#2400](https://github.com/gfx-rs/naga/pull/2400)) **@fornwall** |
| 140 |
|
| 141 |
#### SPV-OUT |
| 142 |
|
| 143 |
- Add debug info. ([#2379](https://github.com/gfx-rs/naga/pull/2379)) **@wicast** |
| 144 |
- Use `IndexSet` instead of `HashSet` for iterated sets (capabilities/extensions). ([#2389](https://github.com/gfx-rs/naga/pull/2389)) **@eddyb** |
| 145 |
- Support array bindings of buffers. ([#2282](https://github.com/gfx-rs/naga/pull/2282)) **@kvark** |
| 146 |
|
| 147 |
#### MSL-OUT |
| 148 |
|
| 149 |
- Rename `allow_point_size` to `allow_and_force_point_size`. ([#2280](https://github.com/gfx-rs/naga/pull/2280)) **@teoxoy** |
| 150 |
- Initialize arrays inline. ([#2331](https://github.com/gfx-rs/naga/pull/2331)) **@teoxoy** |
| 151 |
|
| 152 |
#### HLSL-OUT |
| 153 |
|
| 154 |
- Implement Pack/Unpack for HLSL. ([#2353](https://github.com/gfx-rs/naga/pull/2353)) **@Elabajaba** |
| 155 |
- Complete HLSL reserved symbols. ([#2367](https://github.com/gfx-rs/naga/pull/2367)) **@teoxoy** |
| 156 |
- Handle case insensitive FXC keywords. ([#2347](https://github.com/gfx-rs/naga/pull/2347)) **@PJB3005** |
| 157 |
- Fix return type for firstbitlow/high. ([#2315](https://github.com/gfx-rs/naga/pull/2315)) **@evahop** |
| 158 |
|
| 159 |
#### GLSL-OUT |
| 160 |
|
| 161 |
- `textureSize` level must be a signed integer. ([#2397](https://github.com/gfx-rs/naga/pull/2397)) **@nical** |
| 162 |
- Fix functions with array return type. ([#2382](https://github.com/gfx-rs/naga/pull/2382)) **@Gordon-F** |
| 163 |
|
| 164 |
#### WGSL-OUT |
| 165 |
|
| 166 |
- Output `@interpolate(flat)` attribute for integer locations. ([#2318](https://github.com/gfx-rs/naga/pull/2318)) **@expenses** |
| 167 |
|
| 168 |
## v0.12.3 (2023-07-09) |
| 169 |
|
| 170 |
#### WGSL-OUT |
| 171 |
|
| 172 |
- (Backport) Output `@interpolate(flat)` attribute for integer locations. ([#2318](https://github.com/gfx-rs/naga/pull/2318)) **@expenses** |
| 173 |
|
| 174 |
## v0.12.2 (2023-05-30) |
| 175 |
|
| 176 |
#### SPV-OUT |
| 177 |
|
| 178 |
- (Backport) Support array bindings of buffers. ([#2282](https://github.com/gfx-rs/naga/pull/2282)) **@kvark** |
| 179 |
|
| 180 |
## v0.12.1 (2023-05-18) |
| 181 |
|
| 182 |
#### SPV-IN |
| 183 |
|
| 184 |
- (Backport) Convert conditional backedges to `break if`. ([#2290](https://github.com/gfx-rs/naga/pull/2290)) **@eddyb** |
| 185 |
|
| 186 |
## v0.12 (2023-04-19) |
| 187 |
|
| 188 |
#### GENERAL |
| 189 |
|
| 190 |
- Allow `array_index` to be unsigned. ([#2298](https://github.com/gfx-rs/naga/pull/2298)) **@daxpedda** |
| 191 |
- Add ray query support. ([#2256](https://github.com/gfx-rs/naga/pull/2256)) **@kvark** |
| 192 |
- Add partial derivative builtins. ([#2277](https://github.com/gfx-rs/naga/pull/2277)) **@evahop** |
| 193 |
- Skip `gl_PerVertex` unused builtins in the SPIR-V frontend. ([#2272](https://github.com/gfx-rs/naga/pull/2272)) **@teoxoy** |
| 194 |
- Differentiate between `i32` and `u32` in switch statement cases. ([#2269](https://github.com/gfx-rs/naga/pull/2269)) **@evahop** |
| 195 |
- Fix zero initialization of workgroup memory. ([#2259](https://github.com/gfx-rs/naga/pull/2259)) **@teoxoy** |
| 196 |
- Add `countTrailingZeros`. ([#2243](https://github.com/gfx-rs/naga/pull/2243)) **@gents83** |
| 197 |
- Fix texture built-ins where u32 was expected. ([#2245](https://github.com/gfx-rs/naga/pull/2245)) **@evahop** |
| 198 |
- Add `countLeadingZeros`. ([#2226](https://github.com/gfx-rs/naga/pull/2226)) **@evahop** |
| 199 |
- [glsl/hlsl-out] Write sizes of arrays behind pointers in function arguments. ([#2250](https://github.com/gfx-rs/naga/pull/2250)) **@pluiedev** |
| 200 |
|
| 201 |
#### VALIDATOR |
| 202 |
|
| 203 |
- Validate vertex stage returns the position built-in. ([#2264](https://github.com/gfx-rs/naga/pull/2264)) **@teoxoy** |
| 204 |
- Enforce discard is only used in the fragment stage. ([#2262](https://github.com/gfx-rs/naga/pull/2262)) **@Uriopass** |
| 205 |
- Add `Capabilities::MULTISAMPLED_SHADING`. ([#2255](https://github.com/gfx-rs/naga/pull/2255)) **@teoxoy** |
| 206 |
- Add `Capabilities::EARLY_DEPTH_TEST`. ([#2255](https://github.com/gfx-rs/naga/pull/2255)) **@teoxoy** |
| 207 |
- Add `Capabilities::MULTIVIEW`. ([#2255](https://github.com/gfx-rs/naga/pull/2255)) **@teoxoy** |
| 208 |
- Improve forward declaration validation. ([#2232](https://github.com/gfx-rs/naga/pull/2232)) **@JCapucho** |
| 209 |
|
| 210 |
#### WGSL-IN |
| 211 |
|
| 212 |
- Use `alias` instead of `type` for type aliases. ([#2299](https://github.com/gfx-rs/naga/pull/2299)) **@FL33TW00D** |
| 213 |
- Add predeclared vector and matrix type aliases. ([#2251](https://github.com/gfx-rs/naga/pull/2251)) **@evahop** |
| 214 |
- Improve invalid assignment diagnostic. ([#2233](https://github.com/gfx-rs/naga/pull/2233)) **@SparkyPotato** |
| 215 |
- Expect semicolons wherever required. ([#2233](https://github.com/gfx-rs/naga/pull/2233)) **@SparkyPotato** |
| 216 |
- Fix panic on invalid zero array size. ([#2233](https://github.com/gfx-rs/naga/pull/2233)) **@SparkyPotato** |
| 217 |
- Check for leading `{` while parsing a block. ([#2233](https://github.com/gfx-rs/naga/pull/2233)) **@SparkyPotato** |
| 218 |
|
| 219 |
#### SPV-IN |
| 220 |
|
| 221 |
- Don't apply interpolation to fragment shaders outputs. ([#2239](https://github.com/gfx-rs/naga/pull/2239)) **@JCapucho** |
| 222 |
|
| 223 |
#### GLSL-IN |
| 224 |
|
| 225 |
- Add switch implicit type conversion. ([#2273](https://github.com/gfx-rs/naga/pull/2273)) **@evahop** |
| 226 |
- Document some fields of `naga::front::glsl::context::Context`. ([#2244](https://github.com/gfx-rs/naga/pull/2244)) **@jimblandy** |
| 227 |
- Perform output parameters implicit casts. ([#2063](https://github.com/gfx-rs/naga/pull/2063)) **@JCapucho** |
| 228 |
- Add `not` vector relational builtin. ([#2227](https://github.com/gfx-rs/naga/pull/2227)) **@JCapucho** |
| 229 |
- Add double overloads for relational vector builtins. ([#2227](https://github.com/gfx-rs/naga/pull/2227)) **@JCapucho** |
| 230 |
- Add bool overloads for relational vector builtins. ([#2227](https://github.com/gfx-rs/naga/pull/2227)) **@JCapucho** |
| 231 |
|
| 232 |
#### SPV-OUT |
| 233 |
|
| 234 |
- Fix invalid spirv being generated from integer dot products. ([#2291](https://github.com/gfx-rs/naga/pull/2291)) **@PyryM** |
| 235 |
- Fix adding illegal decorators on fragment outputs. ([#2286](https://github.com/gfx-rs/naga/pull/2286)) **@Wumpf** |
| 236 |
- Fix `countLeadingZeros` impl. ([#2258](https://github.com/gfx-rs/naga/pull/2258)) **@teoxoy** |
| 237 |
- Cache constant composites. ([#2257](https://github.com/gfx-rs/naga/pull/2257)) **@evahop** |
| 238 |
- Support SPIR-V version 1.4. ([#2230](https://github.com/gfx-rs/naga/pull/2230)) **@kvark** |
| 239 |
|
| 240 |
#### MSL-OUT |
| 241 |
|
| 242 |
- Replace `per_stage_map` with `per_entry_point_map` ([#2237](https://github.com/gfx-rs/naga/pull/2237)) **@armansito** |
| 243 |
- Update `firstLeadingBit` for signed integers ([#2235](https://github.com/gfx-rs/naga/pull/2235)) **@evahop** |
| 244 |
|
| 245 |
#### HLSL-OUT |
| 246 |
|
| 247 |
- Use `Interlocked<op>` intrinsic for atomic integers (#2294) ([#2294](https://github.com/gfx-rs/naga/pull/2294)) **@ErichDonGubler** |
| 248 |
- Document storage access generation. ([#2295](https://github.com/gfx-rs/naga/pull/2295)) **@jimblandy** |
| 249 |
- Emit constructor functions for arrays. ([#2281](https://github.com/gfx-rs/naga/pull/2281)) **@ErichDonGubler** |
| 250 |
- Clear `named_expressions` inserted by duplicated blocks. ([#2116](https://github.com/gfx-rs/naga/pull/2116)) **@teoxoy** |
| 251 |
|
| 252 |
#### GLSL-OUT |
| 253 |
|
| 254 |
- Skip `invariant` for `gl_FragCoord` on WebGL2. ([#2254](https://github.com/gfx-rs/naga/pull/2254)) **@grovesNL** |
| 255 |
- Inject default `gl_PointSize = 1.0` in vertex shaders if `FORCE_POINT_SIZE` option was set. ([#2223](https://github.com/gfx-rs/naga/pull/2223)) **@REASY** |
| 256 |
|
| 257 |
## v0.11.1 (2023-05-18) |
| 258 |
|
| 259 |
#### SPV-IN |
| 260 |
|
| 261 |
- (Backport) Convert conditional backedges to `break if`. ([#2290](https://github.com/gfx-rs/naga/pull/2290)) **@eddyb** |
| 262 |
|
| 263 |
## v0.11 (2023-01-25) |
| 264 |
|
| 265 |
- Move to the Rust 2021 edition ([#2085](https://github.com/gfx-rs/naga/pull/2085)) **@ErichDonGubler** |
| 266 |
- Bump MSRV to 1.63 ([#2129](https://github.com/gfx-rs/naga/pull/2129)) **@teoxoy** |
| 267 |
|
| 268 |
#### API |
| 269 |
|
| 270 |
- Add handle validation pass to `Validator` ([#2090](https://github.com/gfx-rs/naga/pull/2090)) **@ErichDonGubler** |
| 271 |
- Add `Range::new_from_bounds` ([#2148](https://github.com/gfx-rs/naga/pull/2148)) **@robtfm** |
| 272 |
|
| 273 |
#### DOCS |
| 274 |
|
| 275 |
- Fix docs for `Emit` statements ([#2208](https://github.com/gfx-rs/naga/pull/2208)) **@jimblandy** |
| 276 |
- Fix invalid `<...>` URLs with code spans ([#2176](https://github.com/gfx-rs/naga/pull/2176)) **@ErichDonGubler** |
| 277 |
- Explain how case clauses with multiple selectors are supported ([#2126](https://github.com/gfx-rs/naga/pull/2126)) **@teoxoy** |
| 278 |
- Document `EarlyDepthTest` and `ConservativeDepth` syntax ([#2132](https://github.com/gfx-rs/naga/pull/2132)) **@coreh** |
| 279 |
|
| 280 |
#### VALIDATOR |
| 281 |
|
| 282 |
- Allow `u32` coordinates for `textureStore`/`textureLoad` ([#2172](https://github.com/gfx-rs/naga/pull/2172)) **@PENGUINLIONG** |
| 283 |
- Fix array being flagged as constructible when its base isn't ([#2111](https://github.com/gfx-rs/naga/pull/2111)) **@teoxoy** |
| 284 |
- Add `type_flags` to `ModuleInfo` ([#2111](https://github.com/gfx-rs/naga/pull/2111)) **@teoxoy** |
| 285 |
- Remove overly restrictive array stride check ([#2215](https://github.com/gfx-rs/naga/pull/2215)) **@fintelia** |
| 286 |
- Let the uniformity analysis trust the handle validation pass ([#2200](https://github.com/gfx-rs/naga/pull/2200)) **@jimblandy** |
| 287 |
- Fix warnings when building tests without validation ([#2177](https://github.com/gfx-rs/naga/pull/2177)) **@jimblandy** |
| 288 |
- Add `ValidationFlags::BINDINGS` ([#2156](https://github.com/gfx-rs/naga/pull/2156)) **@kvark** |
| 289 |
- Fix `textureGather` on `texture_2d<u32/i32>` ([#2138](https://github.com/gfx-rs/naga/pull/2138)) **@JMS55** |
| 290 |
|
| 291 |
#### ALL (FRONTENDS/BACKENDS) |
| 292 |
|
| 293 |
- Support 16-bit unorm/snorm formats ([#2210](https://github.com/gfx-rs/naga/pull/2210)) **@fintelia** |
| 294 |
- Support `gl_PointCoord` ([#2180](https://github.com/gfx-rs/naga/pull/2180)) **@Neo-Zhixing** |
| 295 |
|
| 296 |
#### ALL BACKENDS |
| 297 |
|
| 298 |
- Add support for zero-initializing workgroup memory ([#2111](https://github.com/gfx-rs/naga/pull/2111)) **@teoxoy** |
| 299 |
|
| 300 |
#### WGSL-IN |
| 301 |
|
| 302 |
- Implement module-level scoping ([#2075](https://github.com/gfx-rs/naga/pull/2075)) **@SparkyPotato** |
| 303 |
- Remove `isFinite` and `isNormal` ([#2218](https://github.com/gfx-rs/naga/pull/2218)) **@evahop** |
| 304 |
- Update inverse hyperbolic built-ins ([#2218](https://github.com/gfx-rs/naga/pull/2218)) **@evahop** |
| 305 |
- Add `refract` built-in ([#2218](https://github.com/gfx-rs/naga/pull/2218)) **@evahop** |
| 306 |
- Update reserved keywords ([#2130](https://github.com/gfx-rs/naga/pull/2130)) **@teoxoy** |
| 307 |
- Remove non-32bit integers ([#2146](https://github.com/gfx-rs/naga/pull/2146)) **@teoxoy** |
| 308 |
- Remove `workgroup_size` builtin ([#2147](https://github.com/gfx-rs/naga/pull/2147)) **@teoxoy** |
| 309 |
- Remove fallthrough statement ([#2126](https://github.com/gfx-rs/naga/pull/2126)) **@teoxoy** |
| 310 |
|
| 311 |
#### SPV-IN |
| 312 |
|
| 313 |
- Support binding arrays ([#2199](https://github.com/gfx-rs/naga/pull/2199)) **@Patryk27** |
| 314 |
|
| 315 |
#### GLSL-IN |
| 316 |
|
| 317 |
- Fix position propagation in lowering ([#2079](https://github.com/gfx-rs/naga/pull/2079)) **@JCapucho** |
| 318 |
- Update initializer list type when parsing ([#2066](https://github.com/gfx-rs/naga/pull/2066)) **@JCapucho** |
| 319 |
- Parenthesize unary negations to avoid `--` ([#2087](https://github.com/gfx-rs/naga/pull/2087)) **@ErichDonGubler** |
| 320 |
|
| 321 |
#### SPV-OUT |
| 322 |
|
| 323 |
- Add support for `atomicCompareExchangeWeak` ([#2165](https://github.com/gfx-rs/naga/pull/2165)) **@aweinstock314** |
| 324 |
- Omit extra switch case blocks where possible ([#2126](https://github.com/gfx-rs/naga/pull/2126)) **@teoxoy** |
| 325 |
- Fix switch cases after default not being output ([#2126](https://github.com/gfx-rs/naga/pull/2126)) **@teoxoy** |
| 326 |
|
| 327 |
#### MSL-OUT |
| 328 |
|
| 329 |
- Don't panic on missing bindings ([#2175](https://github.com/gfx-rs/naga/pull/2175)) **@kvark** |
| 330 |
- Omit extra switch case blocks where possible ([#2126](https://github.com/gfx-rs/naga/pull/2126)) **@teoxoy** |
| 331 |
- Fix `textureGather` compatibility on macOS 10.13 ([#2104](https://github.com/gfx-rs/naga/pull/2104)) **@xiaopengli89** |
| 332 |
- Fix incorrect atomic bounds check on metal back-end ([#2099](https://github.com/gfx-rs/naga/pull/2099)) **@raphlinus** |
| 333 |
- Parenthesize unary negations to avoid `--` ([#2087](https://github.com/gfx-rs/naga/pull/2087)) **@ErichDonGubler** |
| 334 |
|
| 335 |
#### HLSL-OUT |
| 336 |
|
| 337 |
- Simplify `write_default_init` ([#2111](https://github.com/gfx-rs/naga/pull/2111)) **@teoxoy** |
| 338 |
- Omit extra switch case blocks where possible ([#2126](https://github.com/gfx-rs/naga/pull/2126)) **@teoxoy** |
| 339 |
- Properly implement bitcast ([#2097](https://github.com/gfx-rs/naga/pull/2097)) **@cwfitzgerald** |
| 340 |
- Fix storage access chain through a matrix ([#2097](https://github.com/gfx-rs/naga/pull/2097)) **@cwfitzgerald** |
| 341 |
- Workaround FXC Bug in Matrix Indexing ([#2096](https://github.com/gfx-rs/naga/pull/2096)) **@cwfitzgerald** |
| 342 |
- Parenthesize unary negations to avoid `--` ([#2087](https://github.com/gfx-rs/naga/pull/2087)) **@ErichDonGubler** |
| 343 |
|
| 344 |
#### GLSL-OUT |
| 345 |
|
| 346 |
- Introduce a flag to include unused items ([#2205](https://github.com/gfx-rs/naga/pull/2205)) **@robtfm** |
| 347 |
- Use `fma` polyfill for versions below gles 320 ([#2197](https://github.com/gfx-rs/naga/pull/2197)) **@teoxoy** |
| 348 |
- Emit reflection info for non-struct uniforms ([#2189](https://github.com/gfx-rs/naga/pull/2189)) **@Rainb0wCodes** |
| 349 |
- Introduce a new block for switch cases ([#2126](https://github.com/gfx-rs/naga/pull/2126)) **@teoxoy** |
| 350 |
|
| 351 |
#### WGSL-OUT |
| 352 |
|
| 353 |
- Write correct scalar kind when `width != 4` ([#1514](https://github.com/gfx-rs/naga/pull/1514)) **@fintelia** |
| 354 |
|
| 355 |
## v0.10.1 (2023-06-21) |
| 356 |
|
| 357 |
SPV-OUT |
| 358 |
- Backport #2389 (Use `IndexSet` instead of `HashSet` for iterated sets (capabilities/extensions)) by @eddyb, @jimblandy in https://github.com/gfx-rs/naga/pull/2391 |
| 359 |
|
| 360 |
SPV-IN |
| 361 |
- Backport #2290 (Convert conditional backedges to `break if`) by @eddyb in https://github.com/gfx-rs/naga/pull/2387 |
| 362 |
|
| 363 |
## v0.10 (2022-10-05) |
| 364 |
|
| 365 |
- Make termcolor dependency optional by @AldaronLau in https://github.com/gfx-rs/naga/pull/2014 |
| 366 |
- Fix clippy lints for 1.63 by @JCapucho in https://github.com/gfx-rs/naga/pull/2026 |
| 367 |
- Saturate by @evahop in https://github.com/gfx-rs/naga/pull/2025 |
| 368 |
- Use `Option::as_deref` as appropriate. by @jimblandy in https://github.com/gfx-rs/naga/pull/2040 |
| 369 |
- Explicitly enable std for indexmap by @maxammann in https://github.com/gfx-rs/naga/pull/2062 |
| 370 |
- Fix compiler warning by @Gordon-F in https://github.com/gfx-rs/naga/pull/2074 |
| 371 |
|
| 372 |
API |
| 373 |
- Implement `Clone` for `Module` by @daxpedda in https://github.com/gfx-rs/naga/pull/2013 |
| 374 |
- Remove the glsl-validate feature by @JCapucho in https://github.com/gfx-rs/naga/pull/2045 |
| 375 |
|
| 376 |
DOCS |
| 377 |
- Document arithmetic binary operation type rules. by @jimblandy in https://github.com/gfx-rs/naga/pull/2051 |
| 378 |
|
| 379 |
VALIDATOR |
| 380 |
- Add `emit_to_{stderr,string}` helpers to validation error by @nolanderc in https://github.com/gfx-rs/naga/pull/2012 |
| 381 |
- Check regular functions don't have bindings by @JCapucho in https://github.com/gfx-rs/naga/pull/2050 |
| 382 |
|
| 383 |
WGSL-IN |
| 384 |
- Update reserved WGSL keywords by @norepimorphism in https://github.com/gfx-rs/naga/pull/2009 |
| 385 |
- Implement lexical scopes by @JCapucho in https://github.com/gfx-rs/naga/pull/2024 |
| 386 |
- Rename `Scope` to `Rule`, since we now have lexical scope. by @jimblandy in https://github.com/gfx-rs/naga/pull/2042 |
| 387 |
- Splat on compound assignments by @JCapucho in https://github.com/gfx-rs/naga/pull/2049 |
| 388 |
- Fix bad span in assignment lhs error by @JCapucho in https://github.com/gfx-rs/naga/pull/2054 |
| 389 |
- Fix inclusion of trivia in spans by @SparkyPotato in https://github.com/gfx-rs/naga/pull/2055 |
| 390 |
- Improve assignment diagnostics by @SparkyPotato in https://github.com/gfx-rs/naga/pull/2056 |
| 391 |
- Break up long string, reformat rest of file. by @jimblandy in https://github.com/gfx-rs/naga/pull/2057 |
| 392 |
- Fix line endings on wgsl reserved words list. by @jimblandy in https://github.com/gfx-rs/naga/pull/2059 |
| 393 |
|
| 394 |
GLSL-IN |
| 395 |
- Add support for .length() by @SpaceCat-Chan in https://github.com/gfx-rs/naga/pull/2017 |
| 396 |
- Fix missing stores for local declarations by @adeline-sparks in https://github.com/gfx-rs/naga/pull/2029 |
| 397 |
- Migrate to `SymbolTable` by @JCapucho in https://github.com/gfx-rs/naga/pull/2044 |
| 398 |
- Update initializer list type when parsing by @JCapucho in https://github.com/gfx-rs/naga/pull/2066 |
| 399 |
|
| 400 |
SPV-OUT |
| 401 |
- Don't decorate varyings with interpolation modes at pipeline start/end by @nical in https://github.com/gfx-rs/naga/pull/2038 |
| 402 |
- Decorate integer builtins as Flat in the spirv writer by @nical in https://github.com/gfx-rs/naga/pull/2035 |
| 403 |
- Properly combine the fixes for #2035 and #2038. by @jimblandy in https://github.com/gfx-rs/naga/pull/2041 |
| 404 |
- Don't emit no-op `OpBitCast` instructions. by @jimblandy in https://github.com/gfx-rs/naga/pull/2043 |
| 405 |
|
| 406 |
HLSL-OUT |
| 407 |
- Use the namer to sanitise entrypoint input/output struct names by @expenses in https://github.com/gfx-rs/naga/pull/2001 |
| 408 |
- Handle Unpack2x16float in hlsl by @expenses in https://github.com/gfx-rs/naga/pull/2002 |
| 409 |
- Add support for push constants by @JCapucho in https://github.com/gfx-rs/naga/pull/2005 |
| 410 |
|
| 411 |
DOT-OUT |
| 412 |
- Improvements by @JCapucho in https://github.com/gfx-rs/naga/pull/1987 |
| 413 |
|
| 414 |
## v0.9 (2022-06-30) |
| 415 |
|
| 416 |
- Fix minimal-versions of dependencies ([#1840](https://github.com/gfx-rs/naga/pull/1840)) **@teoxoy** |
| 417 |
- Update MSRV to 1.56 ([#1838](https://github.com/gfx-rs/naga/pull/1838)) **@teoxoy** |
| 418 |
|
| 419 |
API |
| 420 |
|
| 421 |
- Rename `TypeFlags` `INTERFACE`/`HOST_SHARED` to `IO_SHARED`/`HOST_SHAREABLE` ([#1872](https://github.com/gfx-rs/naga/pull/1872)) **@jimblandy** |
| 422 |
- Expose more error information ([#1827](https://github.com/gfx-rs/naga/pull/1827), [#1937](https://github.com/gfx-rs/naga/pull/1937)) **@jakobhellermann** **@nical** **@jimblandy** |
| 423 |
- Do not unconditionally make error output colorful ([#1707](https://github.com/gfx-rs/naga/pull/1707)) **@rhysd** |
| 424 |
- Rename `StorageClass` to `AddressSpace` ([#1699](https://github.com/gfx-rs/naga/pull/1699)) **@kvark** |
| 425 |
- Add a way to emit errors to a path ([#1640](https://github.com/gfx-rs/naga/pull/1640)) **@laptou** |
| 426 |
|
| 427 |
CLI |
| 428 |
|
| 429 |
- Add `bincode` representation ([#1729](https://github.com/gfx-rs/naga/pull/1729)) **@kvark** |
| 430 |
- Include file path in WGSL parse error ([#1708](https://github.com/gfx-rs/naga/pull/1708)) **@rhysd** |
| 431 |
- Add `--version` flag ([#1706](https://github.com/gfx-rs/naga/pull/1706)) **@rhysd** |
| 432 |
- Support reading input from stdin via `--stdin-file-path` ([#1701](https://github.com/gfx-rs/naga/pull/1701)) **@rhysd** |
| 433 |
- Use `panic = "abort"` ([#1597](https://github.com/gfx-rs/naga/pull/1597)) **@jrmuizel** |
| 434 |
|
| 435 |
DOCS |
| 436 |
|
| 437 |
- Standardize some docs ([#1660](https://github.com/gfx-rs/naga/pull/1660)) **@NoelTautges** |
| 438 |
- Document `TypeInner::BindingArray` ([#1859](https://github.com/gfx-rs/naga/pull/1859)) **@jimblandy** |
| 439 |
- Clarify accepted types for `Expression::AccessIndex` ([#1862](https://github.com/gfx-rs/naga/pull/1862)) **@NoelTautges** |
| 440 |
- Document `proc::layouter` ([#1693](https://github.com/gfx-rs/naga/pull/1693)) **@jimblandy** |
| 441 |
- Document Naga's promises around validation and panics ([#1828](https://github.com/gfx-rs/naga/pull/1828)) **@jimblandy** |
| 442 |
- `FunctionInfo` doc fixes ([#1726](https://github.com/gfx-rs/naga/pull/1726)) **@jimblandy** |
| 443 |
|
| 444 |
VALIDATOR |
| 445 |
|
| 446 |
- Forbid returning pointers and atomics from functions ([#911](https://github.com/gfx-rs/naga/pull/911)) **@jimblandy** |
| 447 |
- Let validation check for more unsupported builtins ([#1962](https://github.com/gfx-rs/naga/pull/1962)) **@jimblandy** |
| 448 |
- Fix `Capabilities::SAMPLER_NON_UNIFORM_INDEXING` bitflag ([#1915](https://github.com/gfx-rs/naga/pull/1915)) **@cwfitzgerald** |
| 449 |
- Properly check that user-defined IO uses IO-shareable types ([#912](https://github.com/gfx-rs/naga/pull/912)) **@jimblandy** |
| 450 |
- Validate `ValuePointer` exactly like a `Pointer` to a `Scalar` ([#1875](https://github.com/gfx-rs/naga/pull/1875)) **@jimblandy** |
| 451 |
- Reject empty structs ([#1826](https://github.com/gfx-rs/naga/pull/1826)) **@jimblandy** |
| 452 |
- Validate uniform address space layout constraints ([#1812](https://github.com/gfx-rs/naga/pull/1812)) **@teoxoy** |
| 453 |
- Improve `AddressSpace` related error messages ([#1710](https://github.com/gfx-rs/naga/pull/1710)) **@kvark** |
| 454 |
|
| 455 |
WGSL-IN |
| 456 |
|
| 457 |
Main breaking changes |
| 458 |
|
| 459 |
- Commas to separate struct members (comma after last member is optional) |
| 460 |
- `struct S { a: f32; b: i32; }` -> `struct S { a: f32, b: i32 }` |
| 461 |
- Attribute syntax |
| 462 |
- `[[binding(0), group(0)]]` -> `@binding(0) @group(0)` |
| 463 |
- Entry point stage attributes |
| 464 |
- `@stage(vertex)` -> `@vertex` |
| 465 |
- `@stage(fragment)` -> `@fragment` |
| 466 |
- `@stage(compute)` -> `@compute` |
| 467 |
- Function renames |
| 468 |
- `smoothStep` -> `smoothstep` |
| 469 |
- `findLsb` -> `firstTrailingBit` |
| 470 |
- `findMsb` -> `firstLeadingBit` |
| 471 |
|
| 472 |
Specification Changes (relevant changes have also been applied to the WGSL backend) |
| 473 |
|
| 474 |
- Add support for `break if` ([#1993](https://github.com/gfx-rs/naga/pull/1993)) **@JCapucho** |
| 475 |
- Update number literal format ([#1863](https://github.com/gfx-rs/naga/pull/1863)) **@teoxoy** |
| 476 |
- Allow non-ascii characters in identifiers ([#1849](https://github.com/gfx-rs/naga/pull/1849)) **@teoxoy** |
| 477 |
- Update reserved keywords ([#1847](https://github.com/gfx-rs/naga/pull/1847), [#1870](https://github.com/gfx-rs/naga/pull/1870), [#1905](https://github.com/gfx-rs/naga/pull/1905)) **@teoxoy** **@Gordon-F** |
| 478 |
- Update entry point stage attributes ([#1833](https://github.com/gfx-rs/naga/pull/1833)) **@Gordon-F** |
| 479 |
- Make colon in case optional ([#1801](https://github.com/gfx-rs/naga/pull/1801)) **@Gordon-F** |
| 480 |
- Rename `smoothStep` to `smoothstep` ([#1800](https://github.com/gfx-rs/naga/pull/1800)) **@Gordon-F** |
| 481 |
- Make semicolon after struct declaration optional ([#1791](https://github.com/gfx-rs/naga/pull/1791)) **@stshine** |
| 482 |
- Use commas to separate struct members instead of semicolons ([#1773](https://github.com/gfx-rs/naga/pull/1773)) **@Gordon-F** |
| 483 |
- Rename `findLsb`/`findMsb` to `firstTrailingBit`/`firstLeadingBit` ([#1735](https://github.com/gfx-rs/naga/pull/1735)) **@kvark** |
| 484 |
- Make parenthesis optional for `if` and `switch` statements ([#1725](https://github.com/gfx-rs/naga/pull/1725)) **@Gordon-F** |
| 485 |
- Declare attributes with `@attrib` instead of `[[attrib]]` ([#1676](https://github.com/gfx-rs/naga/pull/1676)) **@kvark** |
| 486 |
- Allow non-structure buffer types ([#1682](https://github.com/gfx-rs/naga/pull/1682)) **@kvark** |
| 487 |
- Remove `stride` attribute ([#1681](https://github.com/gfx-rs/naga/pull/1681)) **@kvark** |
| 488 |
|
| 489 |
Improvements |
| 490 |
|
| 491 |
- Implement complete validation for size and align attributes ([#1979](https://github.com/gfx-rs/naga/pull/1979)) **@teoxoy** |
| 492 |
- Implement `firstTrailingBit`/`firstLeadingBit` u32 overloads ([#1865](https://github.com/gfx-rs/naga/pull/1865)) **@teoxoy** |
| 493 |
- Add error for non-floating-point matrix ([#1917](https://github.com/gfx-rs/naga/pull/1917)) **@grovesNL** |
| 494 |
- Implement partial vector & matrix identity constructors ([#1916](https://github.com/gfx-rs/naga/pull/1916)) **@teoxoy** |
| 495 |
- Implement phony assignment ([#1866](https://github.com/gfx-rs/naga/pull/1866), [#1869](https://github.com/gfx-rs/naga/pull/1869)) **@teoxoy** |
| 496 |
- Fix being able to match `~=` as LogicalOperation ([#1849](https://github.com/gfx-rs/naga/pull/1849)) **@teoxoy** |
| 497 |
- Implement Binding Arrays ([#1845](https://github.com/gfx-rs/naga/pull/1845)) **@cwfitzgerald** |
| 498 |
- Implement unary vector operators ([#1820](https://github.com/gfx-rs/naga/pull/1820)) **@teoxoy** |
| 499 |
- Implement zero value constructors and constructors that infer their type from their parameters ([#1790](https://github.com/gfx-rs/naga/pull/1790)) **@teoxoy** |
| 500 |
- Implement invariant attribute ([#1789](https://github.com/gfx-rs/naga/pull/1789), [#1822](https://github.com/gfx-rs/naga/pull/1822)) **@teoxoy** **@jimblandy** |
| 501 |
- Implement increment and decrement statements ([#1788](https://github.com/gfx-rs/naga/pull/1788), [#1912](https://github.com/gfx-rs/naga/pull/1912)) **@teoxoy** |
| 502 |
- Implement `while` loop ([#1787](https://github.com/gfx-rs/naga/pull/1787)) **@teoxoy** |
| 503 |
- Fix array size on globals ([#1717](https://github.com/gfx-rs/naga/pull/1717)) **@jimblandy** |
| 504 |
- Implement integer vector overloads for `dot` function ([#1689](https://github.com/gfx-rs/naga/pull/1689)) **@francesco-cattoglio** |
| 505 |
- Implement block comments ([#1675](https://github.com/gfx-rs/naga/pull/1675)) **@kocsis1david** |
| 506 |
- Implement assignment binary operators ([#1662](https://github.com/gfx-rs/naga/pull/1662)) **@kvark** |
| 507 |
- Implement `radians`/`degrees` builtin functions ([#1627](https://github.com/gfx-rs/naga/pull/1627)) **@encounter** |
| 508 |
- Implement `findLsb`/`findMsb` builtin functions ([#1473](https://github.com/gfx-rs/naga/pull/1473)) **@fintelia** |
| 509 |
- Implement `textureGather`/`textureGatherCompare` builtin functions ([#1596](https://github.com/gfx-rs/naga/pull/1596)) **@kvark** |
| 510 |
|
| 511 |
SPV-IN |
| 512 |
|
| 513 |
- Implement `OpBitReverse` and `OpBitCount` ([#1954](https://github.com/gfx-rs/naga/pull/1954)) **@JCapucho** |
| 514 |
- Add `MultiView` to `SUPPORTED_CAPABILITIES` ([#1934](https://github.com/gfx-rs/naga/pull/1934)) **@expenses** |
| 515 |
- Translate `OpSMod` and `OpFMod` correctly ([#1867](https://github.com/gfx-rs/naga/pull/1867), [#1995](https://github.com/gfx-rs/naga/pull/1995)) **@teoxoy** **@JCapucho** |
| 516 |
- Error on unsupported `MatrixStride` ([#1805](https://github.com/gfx-rs/naga/pull/1805)) **@teoxoy** |
| 517 |
- Align array stride for undecorated arrays ([#1724](https://github.com/gfx-rs/naga/pull/1724)) **@JCapucho** |
| 518 |
|
| 519 |
GLSL-IN |
| 520 |
|
| 521 |
- Don't allow empty last case in switch ([#1981](https://github.com/gfx-rs/naga/pull/1981)) **@JCapucho** |
| 522 |
- Fix last case fallthrough and empty switch ([#1981](https://github.com/gfx-rs/naga/pull/1981)) **@JCapucho** |
| 523 |
- Splat inputs for smoothstep if needed ([#1976](https://github.com/gfx-rs/naga/pull/1976)) **@JCapucho** |
| 524 |
- Fix parameter not changing to depth ([#1967](https://github.com/gfx-rs/naga/pull/1967)) **@JCapucho** |
| 525 |
- Fix matrix multiplication check ([#1953](https://github.com/gfx-rs/naga/pull/1953)) **@JCapucho** |
| 526 |
- Fix panic (stop emitter in conditional) ([#1952](https://github.com/gfx-rs/naga/pull/1952)) **@JCapucho** |
| 527 |
- Translate `mod` fn correctly ([#1867](https://github.com/gfx-rs/naga/pull/1867)) **@teoxoy** |
| 528 |
- Make the ternary operator behave as an if ([#1877](https://github.com/gfx-rs/naga/pull/1877)) **@JCapucho** |
| 529 |
- Add support for `clamp` function ([#1502](https://github.com/gfx-rs/naga/pull/1502)) **@sjinno** |
| 530 |
- Better errors for bad constant expression ([#1501](https://github.com/gfx-rs/naga/pull/1501)) **@sjinno** |
| 531 |
- Error on a `matCx2` used with the `std140` layout ([#1806](https://github.com/gfx-rs/naga/pull/1806)) **@teoxoy** |
| 532 |
- Allow nested accesses in lhs positions ([#1794](https://github.com/gfx-rs/naga/pull/1794)) **@JCapucho** |
| 533 |
- Use forced conversions for vector/matrix constructors ([#1796](https://github.com/gfx-rs/naga/pull/1796)) **@JCapucho** |
| 534 |
- Add support for `barrier` function ([#1793](https://github.com/gfx-rs/naga/pull/1793)) **@fintelia** |
| 535 |
- Fix panic (resume expression emit after `imageStore`) ([#1795](https://github.com/gfx-rs/naga/pull/1795)) **@JCapucho** |
| 536 |
- Allow multiple array specifiers ([#1780](https://github.com/gfx-rs/naga/pull/1780)) **@JCapucho** |
| 537 |
- Fix memory qualifiers being inverted ([#1779](https://github.com/gfx-rs/naga/pull/1779)) **@JCapucho** |
| 538 |
- Support arrays as input/output types ([#1759](https://github.com/gfx-rs/naga/pull/1759)) **@JCapucho** |
| 539 |
- Fix freestanding constructor parsing ([#1758](https://github.com/gfx-rs/naga/pull/1758)) **@JCapucho** |
| 540 |
- Fix matrix - scalar operations ([#1757](https://github.com/gfx-rs/naga/pull/1757)) **@JCapucho** |
| 541 |
- Fix matrix - matrix division ([#1757](https://github.com/gfx-rs/naga/pull/1757)) **@JCapucho** |
| 542 |
- Fix matrix comparisons ([#1757](https://github.com/gfx-rs/naga/pull/1757)) **@JCapucho** |
| 543 |
- Add support for `texelFetchOffset` ([#1746](https://github.com/gfx-rs/naga/pull/1746)) **@JCapucho** |
| 544 |
- Inject `sampler2DMSArray` builtins on use ([#1737](https://github.com/gfx-rs/naga/pull/1737)) **@JCapucho** |
| 545 |
- Inject `samplerCubeArray` builtins on use ([#1736](https://github.com/gfx-rs/naga/pull/1736)) **@JCapucho** |
| 546 |
- Add support for image builtin functions ([#1723](https://github.com/gfx-rs/naga/pull/1723)) **@JCapucho** |
| 547 |
- Add support for image declarations ([#1723](https://github.com/gfx-rs/naga/pull/1723)) **@JCapucho** |
| 548 |
- Texture builtins fixes ([#1719](https://github.com/gfx-rs/naga/pull/1719)) **@JCapucho** |
| 549 |
- Type qualifiers rework ([#1713](https://github.com/gfx-rs/naga/pull/1713)) **@JCapucho** |
| 550 |
- `texelFetch` accept multisampled textures ([#1715](https://github.com/gfx-rs/naga/pull/1715)) **@JCapucho** |
| 551 |
- Fix panic when culling nested block ([#1714](https://github.com/gfx-rs/naga/pull/1714)) **@JCapucho** |
| 552 |
- Fix composite constructors ([#1631](https://github.com/gfx-rs/naga/pull/1631)) **@JCapucho** |
| 553 |
- Fix using swizzle as out arguments ([#1632](https://github.com/gfx-rs/naga/pull/1632)) **@JCapucho** |
| 554 |
|
| 555 |
SPV-OUT |
| 556 |
|
| 557 |
- Implement `reverseBits` and `countOneBits` ([#1897](https://github.com/gfx-rs/naga/pull/1897)) **@hasali19** |
| 558 |
- Use `OpCopyObject` for matrix identity casts ([#1916](https://github.com/gfx-rs/naga/pull/1916)) **@teoxoy** |
| 559 |
- Use `OpCopyObject` for bool - bool conversion due to `OpBitcast` not being feasible for booleans ([#1916](https://github.com/gfx-rs/naga/pull/1916)) **@teoxoy** |
| 560 |
- Zero init variables in function and private address spaces ([#1871](https://github.com/gfx-rs/naga/pull/1871)) **@teoxoy** |
| 561 |
- Use `SRem` instead of `SMod` ([#1867](https://github.com/gfx-rs/naga/pull/1867)) **@teoxoy** |
| 562 |
- Add support for integer vector - scalar multiplication ([#1820](https://github.com/gfx-rs/naga/pull/1820)) **@teoxoy** |
| 563 |
- Add support for matrix addition and subtraction ([#1820](https://github.com/gfx-rs/naga/pull/1820)) **@teoxoy** |
| 564 |
- Emit required decorations on wrapper struct types ([#1815](https://github.com/gfx-rs/naga/pull/1815)) **@jimblandy** |
| 565 |
- Decorate array and struct type layouts unconditionally ([#1815](https://github.com/gfx-rs/naga/pull/1815)) **@jimblandy** |
| 566 |
- Fix wrong `MatrixStride` for `matCx2` and `mat2xR` ([#1781](https://github.com/gfx-rs/naga/pull/1781)) **@teoxoy** |
| 567 |
- Use `OpImageQuerySize` for MS images ([#1742](https://github.com/gfx-rs/naga/pull/1742)) **@JCapucho** |
| 568 |
|
| 569 |
MSL-OUT |
| 570 |
|
| 571 |
- Insert padding initialization for global constants ([#1988](https://github.com/gfx-rs/naga/pull/1988)) **@teoxoy** |
| 572 |
- Don't rely on cached expressions ([#1975](https://github.com/gfx-rs/naga/pull/1975)) **@JCapucho** |
| 573 |
- Fix pointers to private or workgroup address spaces possibly being read only ([#1901](https://github.com/gfx-rs/naga/pull/1901)) **@teoxoy** |
| 574 |
- Zero init variables in function address space ([#1871](https://github.com/gfx-rs/naga/pull/1871)) **@teoxoy** |
| 575 |
- Make binding arrays play nice with bounds checks ([#1855](https://github.com/gfx-rs/naga/pull/1855)) **@cwfitzgerald** |
| 576 |
- Permit `invariant` qualifier on vertex shader outputs ([#1821](https://github.com/gfx-rs/naga/pull/1821)) **@jimblandy** |
| 577 |
- Fix packed `vec3` stores ([#1816](https://github.com/gfx-rs/naga/pull/1816)) **@teoxoy** |
| 578 |
- Actually test push constants to be used ([#1767](https://github.com/gfx-rs/naga/pull/1767)) **@kvark** |
| 579 |
- Properly rename entry point arguments for struct members ([#1766](https://github.com/gfx-rs/naga/pull/1766)) **@jimblandy** |
| 580 |
- Qualify read-only storage with const ([#1763](https://github.com/gfx-rs/naga/pull/1763)) **@kvark** |
| 581 |
- Fix not unary operator for integer scalars ([#1760](https://github.com/gfx-rs/naga/pull/1760)) **@vincentisambart** |
| 582 |
- Add bounds checks for `ImageLoad` and `ImageStore` ([#1730](https://github.com/gfx-rs/naga/pull/1730)) **@jimblandy** |
| 583 |
- Fix resource bindings for non-structures ([#1718](https://github.com/gfx-rs/naga/pull/1718)) **@kvark** |
| 584 |
- Always check whether _buffer_sizes arg is needed ([#1717](https://github.com/gfx-rs/naga/pull/1717)) **@jimblandy** |
| 585 |
- WGSL storage address space should always correspond to MSL device address space ([#1711](https://github.com/gfx-rs/naga/pull/1711)) **@wtholliday** |
| 586 |
- Mitigation for MSL atomic bounds check ([#1703](https://github.com/gfx-rs/naga/pull/1703)) **@glalonde** |
| 587 |
|
| 588 |
HLSL-OUT |
| 589 |
|
| 590 |
- More `matCx2` fixes (#1989) ([#1989](https://github.com/gfx-rs/naga/pull/1989)) **@teoxoy** |
| 591 |
- Fix fallthrough in switch statements ([#1920](https://github.com/gfx-rs/naga/pull/1920)) **@teoxoy** |
| 592 |
- Fix missing break statements ([#1919](https://github.com/gfx-rs/naga/pull/1919)) **@teoxoy** |
| 593 |
- Fix `countOneBits` and `reverseBits` for signed integers ([#1928](https://github.com/gfx-rs/naga/pull/1928)) **@hasali19** |
| 594 |
- Fix array constructor return type ([#1914](https://github.com/gfx-rs/naga/pull/1914)) **@teoxoy** |
| 595 |
- Fix hlsl output for writes to scalar/vector storage buffer ([#1903](https://github.com/gfx-rs/naga/pull/1903)) **@hasali19** |
| 596 |
- Use `fmod` instead of `%` ([#1867](https://github.com/gfx-rs/naga/pull/1867)) **@teoxoy** |
| 597 |
- Use wrapped constructors when loading from storage address space ([#1893](https://github.com/gfx-rs/naga/pull/1893)) **@teoxoy** |
| 598 |
- Zero init struct constructor ([#1890](https://github.com/gfx-rs/naga/pull/1890)) **@teoxoy** |
| 599 |
- Flesh out matrix handling documentation ([#1850](https://github.com/gfx-rs/naga/pull/1850)) **@jimblandy** |
| 600 |
- Emit `row_major` qualifier on matrix uniform globals ([#1846](https://github.com/gfx-rs/naga/pull/1846)) **@jimblandy** |
| 601 |
- Fix bool splat ([#1820](https://github.com/gfx-rs/naga/pull/1820)) **@teoxoy** |
| 602 |
- Add more padding when necessary ([#1814](https://github.com/gfx-rs/naga/pull/1814)) **@teoxoy** |
| 603 |
- Support multidimensional arrays ([#1814](https://github.com/gfx-rs/naga/pull/1814)) **@teoxoy** |
| 604 |
- Don't output interpolation modifier if it's the default ([#1809](https://github.com/gfx-rs/naga/pull/1809)) **@NoelTautges** |
| 605 |
- Fix `matCx2` translation for uniform buffers ([#1802](https://github.com/gfx-rs/naga/pull/1802)) **@teoxoy** |
| 606 |
- Fix modifiers not being written in the vertex output and fragment input structs ([#1789](https://github.com/gfx-rs/naga/pull/1789)) **@teoxoy** |
| 607 |
- Fix matrix not being declared as transposed ([#1784](https://github.com/gfx-rs/naga/pull/1784)) **@teoxoy** |
| 608 |
- Insert padding between struct members ([#1786](https://github.com/gfx-rs/naga/pull/1786)) **@teoxoy** |
| 609 |
- Fix not unary operator for integer scalars ([#1760](https://github.com/gfx-rs/naga/pull/1760)) **@vincentisambart** |
| 610 |
|
| 611 |
GLSL-OUT |
| 612 |
|
| 613 |
- Fix vector bitcasts (#1966) ([#1966](https://github.com/gfx-rs/naga/pull/1966)) **@expenses** |
| 614 |
- Perform casts in int only math functions ([#1978](https://github.com/gfx-rs/naga/pull/1978)) **@JCapucho** |
| 615 |
- Don't rely on cached expressions ([#1975](https://github.com/gfx-rs/naga/pull/1975)) **@JCapucho** |
| 616 |
- Fix type error for `countOneBits` implementation ([#1897](https://github.com/gfx-rs/naga/pull/1897)) **@hasali19** |
| 617 |
- Fix storage format for `Rgba8Unorm` ([#1955](https://github.com/gfx-rs/naga/pull/1955)) **@JCapucho** |
| 618 |
- Implement bounds checks for `ImageLoad` ([#1889](https://github.com/gfx-rs/naga/pull/1889)) **@JCapucho** |
| 619 |
- Fix feature search in expressions ([#1887](https://github.com/gfx-rs/naga/pull/1887)) **@JCapucho** |
| 620 |
- Emit globals of any type ([#1823](https://github.com/gfx-rs/naga/pull/1823)) **@jimblandy** |
| 621 |
- Add support for boolean vector `~`, `|` and `&` ops ([#1820](https://github.com/gfx-rs/naga/pull/1820)) **@teoxoy** |
| 622 |
- Fix array function arguments ([#1814](https://github.com/gfx-rs/naga/pull/1814)) **@teoxoy** |
| 623 |
- Write constant sized array type for uniform ([#1768](https://github.com/gfx-rs/naga/pull/1768)) **@hatoo** |
| 624 |
- Texture function fixes ([#1742](https://github.com/gfx-rs/naga/pull/1742)) **@JCapucho** |
| 625 |
- Push constants use anonymous uniforms ([#1683](https://github.com/gfx-rs/naga/pull/1683)) **@JCapucho** |
| 626 |
- Add support for push constant emulation ([#1672](https://github.com/gfx-rs/naga/pull/1672)) **@JCapucho** |
| 627 |
- Skip unsized types if unused ([#1649](https://github.com/gfx-rs/naga/pull/1649)) **@kvark** |
| 628 |
- Write struct and array initializers ([#1644](https://github.com/gfx-rs/naga/pull/1644)) **@JCapucho** |
| 629 |
|
| 630 |
|
| 631 |
## v0.8.5 (2022-01-25) |
| 632 |
|
| 633 |
MSL-OUT |
| 634 |
|
| 635 |
- Make VS-output positions invariant on even more systems ([#1697](https://github.com/gfx-rs/naga/pull/1697)) **@cwfitzgerald** |
| 636 |
- Improve support for point primitives ([#1696](https://github.com/gfx-rs/naga/pull/1696)) **@kvark** |
| 637 |
|
| 638 |
|
| 639 |
## v0.8.4 (2022-01-24) |
| 640 |
|
| 641 |
MSL-OUT |
| 642 |
|
| 643 |
- Make VS-output positions invariant if possible ([#1687](https://github.com/gfx-rs/naga/pull/1687)) **@kvark** |
| 644 |
|
| 645 |
GLSL-OUT |
| 646 |
|
| 647 |
- Fix `floatBitsToUint` spelling ([#1688](https://github.com/gfx-rs/naga/pull/1688)) **@cwfitzgerald** |
| 648 |
- Call proper memory barrier functions ([#1680](https://github.com/gfx-rs/naga/pull/1680)) **@francesco-cattoglio** |
| 649 |
|
| 650 |
|
| 651 |
## v0.8.3 (2022-01-20) |
| 652 |
|
| 653 |
- Don't pin `indexmap` version ([#1666](https://github.com/gfx-rs/naga/pull/1666)) **@a1phyr** |
| 654 |
|
| 655 |
MSL-OUT |
| 656 |
|
| 657 |
- Fix support for point primitives ([#1674](https://github.com/gfx-rs/naga/pull/1674)) **@kvark** |
| 658 |
|
| 659 |
GLSL-OUT |
| 660 |
|
| 661 |
- Fix sampler association ([#1671](https://github.com/gfx-rs/naga/pull/1671)) **@JCapucho** |
| 662 |
|
| 663 |
|
| 664 |
## v0.8.2 (2022-01-11) |
| 665 |
|
| 666 |
VALIDATOR |
| 667 |
|
| 668 |
- Check structure resource types ([#1639](https://github.com/gfx-rs/naga/pull/1639)) **@kvark** |
| 669 |
|
| 670 |
WGSL-IN |
| 671 |
|
| 672 |
- Improve type mismatch errors ([#1658](https://github.com/gfx-rs/naga/pull/1658)) **@Gordon-F** |
| 673 |
|
| 674 |
SPV-IN |
| 675 |
|
| 676 |
- Implement more sign agnostic operations ([#1651](https://github.com/gfx-rs/naga/pull/1651), [#1650](https://github.com/gfx-rs/naga/pull/1650)) **@JCapucho** |
| 677 |
|
| 678 |
SPV-OUT |
| 679 |
|
| 680 |
- Fix modulo operator (use `OpFRem` instead of `OpFMod`) ([#1653](https://github.com/gfx-rs/naga/pull/1653)) **@JCapucho** |
| 681 |
|
| 682 |
MSL-OUT |
| 683 |
|
| 684 |
- Fix `texture1d` accesses ([#1647](https://github.com/gfx-rs/naga/pull/1647)) **@jimblandy** |
| 685 |
- Fix data packing functions ([#1637](https://github.com/gfx-rs/naga/pull/1637)) **@phoekz** |
| 686 |
|
| 687 |
|
| 688 |
## v0.8.1 (2021-12-29) |
| 689 |
|
| 690 |
API |
| 691 |
|
| 692 |
- Make `WithSpan` cloneable ([#1620](https://github.com/gfx-rs/naga/pull/1620)) **@jakobhellermann** |
| 693 |
|
| 694 |
MSL-OUT |
| 695 |
|
| 696 |
- Fix packed vec access ([#1634](https://github.com/gfx-rs/naga/pull/1634)) **@kvark** |
| 697 |
- Fix packed float support ([#1630](https://github.com/gfx-rs/naga/pull/1630)) **@kvark** |
| 698 |
|
| 699 |
HLSL-OUT |
| 700 |
|
| 701 |
- Support arrays of matrices ([#1629](https://github.com/gfx-rs/naga/pull/1629)) **@kvark** |
| 702 |
- Use `mad` instead of `fma` function ([#1580](https://github.com/gfx-rs/naga/pull/1580)) **@parasyte** |
| 703 |
|
| 704 |
GLSL-OUT |
| 705 |
|
| 706 |
- Fix conflicting names for globals ([#1616](https://github.com/gfx-rs/naga/pull/1616)) **@Gordon-F** |
| 707 |
- Fix `fma` function ([#1580](https://github.com/gfx-rs/naga/pull/1580)) **@parasyte** |
| 708 |
|
| 709 |
|
| 710 |
## v0.8 (2021-12-18) |
| 711 |
- development release for wgpu-0.12 |
| 712 |
- lots of fixes in all parts |
| 713 |
- validator: |
| 714 |
- now gated by `validate` feature |
| 715 |
- nicely detailed error messages with spans |
| 716 |
- API: |
| 717 |
- image gather operations |
| 718 |
- WGSL-in: |
| 719 |
- remove `[[block]]` attribute |
| 720 |
- `elseif` is removed in favor of `else if` |
| 721 |
- MSL-out: |
| 722 |
- full out-of-bounds checking |
| 723 |
|
| 724 |
## v0.7.3 (2021-12-14) |
| 725 |
- API: |
| 726 |
- `view_index` builtin |
| 727 |
- GLSL-out: |
| 728 |
- reflect textures without samplers |
| 729 |
- SPV-out: |
| 730 |
- fix incorrect pack/unpack |
| 731 |
|
| 732 |
## v0.7.2 (2021-12-01) |
| 733 |
- validator: |
| 734 |
- check stores for proper pointer class |
| 735 |
- HLSL-out: |
| 736 |
- fix stores into `mat3` |
| 737 |
- respect array strides |
| 738 |
- SPV-out: |
| 739 |
- fix multi-word constants |
| 740 |
- WGSL-in: |
| 741 |
- permit names starting with underscores |
| 742 |
- SPV-in: |
| 743 |
- cull unused builtins |
| 744 |
- support empty debug labels |
| 745 |
- GLSL-in: |
| 746 |
- don't panic on invalid integer operations |
| 747 |
|
| 748 |
## v0.7.1 (2021-10-12) |
| 749 |
- implement casts from and to booleans in the backends |
| 750 |
|
| 751 |
## v0.7 (2021-10-07) |
| 752 |
- development release for wgpu-0.11 |
| 753 |
- API: |
| 754 |
- bit extraction and packing functions |
| 755 |
- hyperbolic trigonometry functions |
| 756 |
- validation is gated by a cargo feature |
| 757 |
- `view_index` builtin |
| 758 |
- separate bounds checking policies for locals/buffers/textures |
| 759 |
- IR: |
| 760 |
- types and constants are guaranteed to be unique |
| 761 |
- WGSL-in: |
| 762 |
- new hex literal parser |
| 763 |
- updated list of reserved words |
| 764 |
- rewritten logic for resolving references and pointers |
| 765 |
- `switch` can use unsigned selectors |
| 766 |
- GLSL-in: |
| 767 |
- better support for texture sampling |
| 768 |
- better logic for auto-splatting scalars |
| 769 |
- GLSL-out: |
| 770 |
- fixed storage buffer layout |
| 771 |
- fix module operator |
| 772 |
- HLSL-out: |
| 773 |
- fixed texture queries |
| 774 |
- SPV-in: |
| 775 |
- control flow handling is rewritten from scratch |
| 776 |
- SPV-out: |
| 777 |
- fully covered out-of-bounds checking |
| 778 |
- option to emit point size |
| 779 |
- option to clamp output depth |
| 780 |
|
| 781 |
## v0.6.3 (2021-09-08) |
| 782 |
- Reduced heap allocations when generating WGSL, HLSL, and GLSL |
| 783 |
- WGSL-in: |
| 784 |
- support module-scope `let` type inference |
| 785 |
- SPV-in: |
| 786 |
- fix depth sampling with projection |
| 787 |
- HLSL-out: |
| 788 |
- fix local struct construction |
| 789 |
- GLSL-out: |
| 790 |
- fix `select()` order |
| 791 |
- SPV-out: |
| 792 |
- allow working around Adreno issue with `OpName` |
| 793 |
|
| 794 |
## v0.6.2 (2021-09-01) |
| 795 |
- SPV-out fixes: |
| 796 |
- requested capabilities for 1D and cube images, storage formats |
| 797 |
- handling `break` and `continue` in a `switch` statement |
| 798 |
- avoid generating duplicate `OpTypeImage` types |
| 799 |
- HLSL-out fixes: |
| 800 |
- fix output struct member names |
| 801 |
- MSL-out fixes: |
| 802 |
- fix packing of fields in interface structs |
| 803 |
- GLSL-out fixes: |
| 804 |
- fix non-fallthrough `switch` cases |
| 805 |
- GLSL-in fixes: |
| 806 |
- avoid infinite loop on invalid statements |
| 807 |
|
| 808 |
## v0.6.1 (2021-08-24) |
| 809 |
- HLSL-out fixes: |
| 810 |
- array arguments |
| 811 |
- pointers to array arguments |
| 812 |
- switch statement |
| 813 |
- rewritten interface matching |
| 814 |
- SPV-in fixes: |
| 815 |
- array storage texture stores |
| 816 |
- tracking sampling across function parameters |
| 817 |
- updated petgraph dependencies |
| 818 |
- MSL-out: |
| 819 |
- gradient sampling |
| 820 |
- GLSL-out: |
| 821 |
- modulo operator on floats |
| 822 |
|
| 823 |
## v0.6 (2021-08-18) |
| 824 |
- development release for wgpu-0.10 |
| 825 |
- API: |
| 826 |
- atomic types and functions |
| 827 |
- storage access is moved from global variables to the storage class and storage texture type |
| 828 |
- new built-ins: `primitive_index` and `num_workgroups` |
| 829 |
- support for multi-sampled depth images |
| 830 |
- WGSL: |
| 831 |
- `select()` order of true/false is swapped |
| 832 |
- HLSL backend is vastly improved and now usable |
| 833 |
- GLSL frontend is heavily reworked |
| 834 |
|
| 835 |
## v0.5 (2021-06-18) |
| 836 |
- development release for wgpu-0.9 |
| 837 |
- API: |
| 838 |
- barriers |
| 839 |
- dynamic indexing of matrices and arrays is only allowed on variables |
| 840 |
- validator now accepts a list of IR capabilities to allow |
| 841 |
- improved documentation |
| 842 |
- Infrastructure: |
| 843 |
- much richer test suite, focused around consuming or emitting WGSL |
| 844 |
- lazy testing on large shader corpuses |
| 845 |
- the binary is moved to a sub-crate "naga-cli" |
| 846 |
- Frontends: |
| 847 |
- GLSL frontend: |
| 848 |
- rewritten from scratch and effectively revived, no longer depends on `pomelo` |
| 849 |
- only supports 440/450/460 versions for now |
| 850 |
- has optional support for codespan messages |
| 851 |
- SPIRV frontend has improved CFG resolution (still with issues unresolved) |
| 852 |
- WGSL got better error messages, workgroup memory support |
| 853 |
- Backends: |
| 854 |
- general: better expression naming and emitting |
| 855 |
- new HLSL backend (in progress) |
| 856 |
- MSL: |
| 857 |
- support `ArraySize` expression |
| 858 |
- better texture sampling instructions |
| 859 |
- GLSL: |
| 860 |
- multisampling on GLES |
| 861 |
- WGSL is vastly improved and now usable |
| 862 |
|
| 863 |
## v0.4.2 (2021-05-28) |
| 864 |
- SPIR-V frontend: |
| 865 |
- fix image stores |
| 866 |
- fix matrix stride check |
| 867 |
- SPIR-V backend: |
| 868 |
- fix auto-deriving the capabilities |
| 869 |
- GLSL backend: |
| 870 |
- support sample interpolation |
| 871 |
- write out swizzled vector accesses |
| 872 |
|
| 873 |
## v0.4.1 (2021-05-14) |
| 874 |
- numerous additions and improvements to SPIR-V frontend: |
| 875 |
- int8, in16, int64 |
| 876 |
- null constant initializers for structs and matrices |
| 877 |
- `OpArrayLength`, `OpCopyMemory`, `OpInBoundsAccessChain`, `OpLogicalXxxEqual` |
| 878 |
- outer product |
| 879 |
- fix struct size alignment |
| 880 |
- initialize built-ins with default values |
| 881 |
- fix read-only decorations on struct members |
| 882 |
- fix struct size alignment in WGSL |
| 883 |
- fix `fwidth` in WGSL |
| 884 |
- fix scalars arrays in GLSL backend |
| 885 |
|
| 886 |
## v0.4 (2021-04-29) |
| 887 |
- development release for wgpu-0.8 |
| 888 |
- API: |
| 889 |
- expressions are explicitly emitted with `Statement::Emit` |
| 890 |
- entry points have inputs in arguments and outputs in the result type |
| 891 |
- `input`/`output` storage classes are gone, but `push_constant` is added |
| 892 |
- `Interpolation` is moved into `Binding::Location` variant |
| 893 |
- real pointer semantics with required `Expression::Load` |
| 894 |
- `TypeInner::ValuePointer` is added |
| 895 |
- image query expressions are added |
| 896 |
- new `Statement::ImageStore` |
| 897 |
- all function calls are `Statement::Call` |
| 898 |
- `GlobalUse` is moved out into processing |
| 899 |
- `Header` is removed |
| 900 |
- entry points are an array instead of a map |
| 901 |
- new `Swizzle` and `Splat` expressions |
| 902 |
- interpolation qualifiers are extended and required |
| 903 |
- struct member layout is based on the byte offsets |
| 904 |
- Infrastructure: |
| 905 |
- control flow uniformity analysis |
| 906 |
- texture-sampler combination gathering |
| 907 |
- `CallGraph` processor is moved out into `glsl` backend |
| 908 |
- `Interface` is removed, instead the analysis produces `ModuleInfo` with all the derived info |
| 909 |
- validation of statement tree, expressions, and constants |
| 910 |
- code linting is more strict for matches |
| 911 |
- new GraphViz `dot` backend for pretty visualization of the IR |
| 912 |
- Metal support for inlined samplers |
| 913 |
- `convert` example is transformed into the default binary target named `naga` |
| 914 |
- lots of frontend and backend fixes |
| 915 |
|
| 916 |
## v0.3.2 (2021-02-15) |
| 917 |
- fix logical expression types |
| 918 |
- fix _FragDepth_ semantics |
| 919 |
- spv-in: |
| 920 |
- derive block status of structures |
| 921 |
- spv-out: |
| 922 |
- add lots of missing math functions |
| 923 |
- implement discard |
| 924 |
|
| 925 |
## v0.3.1 (2021-01-31) |
| 926 |
- wgsl: |
| 927 |
- support constant array sizes |
| 928 |
- spv-out: |
| 929 |
- fix block decorations on nested structures |
| 930 |
- fix fixed-size arrays |
| 931 |
- fix matrix decorations inside structures |
| 932 |
- implement read-only decorations |
| 933 |
|
| 934 |
## v0.3 (2021-01-30) |
| 935 |
- development release for wgpu-0.7 |
| 936 |
- API: |
| 937 |
- math functions |
| 938 |
- type casts |
| 939 |
- updated storage classes |
| 940 |
- updated image sub-types |
| 941 |
- image sampling/loading options |
| 942 |
- storage images |
| 943 |
- interpolation qualifiers |
| 944 |
- early and conservative depth |
| 945 |
- Processors: |
| 946 |
- name manager |
| 947 |
- automatic layout |
| 948 |
- termination analysis |
| 949 |
- validation of types, constants, variables, and entry points |
| 950 |
|
| 951 |
## v0.2 (2020-08-17) |
| 952 |
- development release for wgpu-0.6 |
| 953 |
|
| 954 |
## v0.1 (2020-02-26) |
| 955 |
- initial release |