Vixen
02b45cc4
csharp
public static class MipChain.Srgb

The sRGB transfer function, as a byte-to-byte table.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

Two hundred and fifty-six entries, built once. An importer generating a mip chain for a colour texture converts through these rather than calling Pow per channel per texel, which for a 4K texture is forty million calls.

Fields and properties (1)

  • public static ReadOnlySpan<float> ToLinearTable

    The linear value each encoded byte stands for.

Methods (1)

  • public static byte FromLinear(float linear)

    Encodes a linear value as a byte.

Used by (2)

  • MipChainVixen.Core.Imaging
  • MipChainTestsVixen.Core.Imaging.Tests