James Jackson-South
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
14 additions and
16 deletions
-
.github/workflows/build-and-test.yml
-
src/ImageSharp/PixelFormats/PixelImplementations/Bgra32.cs
|
|
|
@ -20,20 +20,18 @@ jobs: |
|
|
|
sdk-preview: true |
|
|
|
runtime: -x64 |
|
|
|
codecov: false |
|
|
|
# Temp disabled due to runtime preview issues. |
|
|
|
# https://github.com/SixLabors/ImageSharp/issues/2117 |
|
|
|
#- os: macos-latest |
|
|
|
# framework: net7.0 |
|
|
|
# sdk: 7.0.x |
|
|
|
# sdk-preview: true |
|
|
|
# runtime: -x64 |
|
|
|
# codecov: false |
|
|
|
#- os: windows-latest |
|
|
|
# framework: net7.0 |
|
|
|
# sdk: 7.0.x |
|
|
|
# sdk-preview: true |
|
|
|
# runtime: -x64 |
|
|
|
# codecov: false |
|
|
|
- os: macos-latest |
|
|
|
framework: net7.0 |
|
|
|
sdk: 7.0.x |
|
|
|
sdk-preview: true |
|
|
|
runtime: -x64 |
|
|
|
codecov: false |
|
|
|
- os: windows-latest |
|
|
|
framework: net7.0 |
|
|
|
sdk: 7.0.x |
|
|
|
sdk-preview: true |
|
|
|
runtime: -x64 |
|
|
|
codecov: false |
|
|
|
- os: ubuntu-latest |
|
|
|
framework: net6.0 |
|
|
|
sdk: 6.0.x |
|
|
|
|
|
|
|
@ -149,7 +149,7 @@ public partial struct Bgra32 : IPixel<Bgra32>, IPackedVector<uint> |
|
|
|
|
|
|
|
/// <inheritdoc/>
|
|
|
|
[MethodImpl(InliningOptions.ShortMethod)] |
|
|
|
public void FromVector4(Vector4 vector) => this.Pack(ref vector); |
|
|
|
public void FromVector4(Vector4 vector) => this.Pack(vector); |
|
|
|
|
|
|
|
/// <inheritdoc/>
|
|
|
|
[MethodImpl(InliningOptions.ShortMethod)] |
|
|
|
@ -302,7 +302,7 @@ public partial struct Bgra32 : IPixel<Bgra32>, IPackedVector<uint> |
|
|
|
/// </summary>
|
|
|
|
/// <param name="vector">The vector containing the values to pack.</param>
|
|
|
|
[MethodImpl(InliningOptions.ShortMethod)] |
|
|
|
private void Pack(ref Vector4 vector) |
|
|
|
private void Pack(Vector4 vector) |
|
|
|
{ |
|
|
|
vector *= MaxBytes; |
|
|
|
vector += Half; |
|
|
|
|