Search Results for

    Class PassthroughColorLut

    Inheritance
    object
    PassthroughColorLut
    Implements
    IDisposable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: YVR.Core
    Assembly: YVR.Core.Runtime.dll
    Syntax
    public class PassthroughColorLut : IDisposable

    Constructors

    Name Description
    PassthroughColorLut(byte[], PassthroughColorLutChannels)

    Set the color LUT data from an array of Color. The resolution is inferred from the array size, thus the size needs to be a result of resolution = size ^ 3 * numColorChannels, where numColorChannels depends on channels. Use UpdateFrom() to update color LUT data after construction.

    PassthroughColorLut(Color32[], PassthroughColorLutChannels)

    Set the color LUT data from an array of Color. The resolution is inferred from the array size, thus the size needs to be a result of resolution = size ^ 3 * numColorChannels, where numColorChannels depends on channels. Use UpdateFrom() to update color LUT data after construction.

    PassthroughColorLut(Color[], PassthroughColorLutChannels)

    Set the color LUT data from an array of Color. The resolution is inferred from the array size, thus the size needs to be a result of resolution = size ^ 3 * numColorChannels, where numColorChannels depends on channels. Use UpdateFrom() to update color LUT data after construction.

    PassthroughColorLut(Texture2D, bool)

    Initialize the color LUT data from a texture. Color channels are inferred from texture format. Use UpdateFrom() to update LUT data after construction.

    Properties

    Name Description
    Channels

    The color channels contained in each of the resulting colors. Can be ColorChannels.Rgb or ColorChannels.Rgba. This property is defined at construction time and cannot be modified.

    IsValid
    Resolution

    The size of one edge of the color cube spanned by the LUT. For example, a resolution of 16 means that the LUT encompasses 16 * 16 * 16 colors. This property is defined at construction time and cannot be modified.

    Methods

    Name Description
    Dispose()
    ~PassthroughColorLut()
    IsTextureSupported(Texture2D, out string)

    Check if the given texture is formatted correctly for the use as color LUT.

    UpdateFrom(byte[])

    Updates color LUT data from an array of RGB(A) values. The resolution (number of colors) must match the original specification at construction time. The expected number of bytes per color is 3 if ColorChannels was set to Rgb, 4 if it was set to Rgba.

    UpdateFrom(Color32[])

    Updates color LUT data from an array of Color32. The resolution (number of colors) must match the original specification at construction time. The alpha value is ignored if ColorChannels was set to Rgb.

    UpdateFrom(Color[])

    Updates color LUT data from an array of Color. The resolution (number of colors) must match the original specification at construction time. The alpha value is ignored if ColorChannels was set to Rgb.

    UpdateFrom(Texture2D, bool)

    Update color LUT data from a texture. Color channels and resolution must match the original.

    Extension Methods

    ObjectExtensions.GetEnumerableElementType(object)
    ObjectExtensions.IsGenericEnumerable(object)
    ObjectExtensions.ReflectEquals(object, object)
    ObjectExtensions.ReflectionSequenceEqual(object, object)
    ObjectExtensions.TryGetFieldValue<T>(object, string, out T, BindingFlags)
    ObjectExtensions.TryGetPropertyValue<T>(object, string, out T, BindingFlags)
    ObjectExtensions.TrySetFieldValue<T>(object, string, T, BindingFlags)
    ObjectExtensions.TrySetPropertyValue<T>(object, string, T, BindingFlags)
    SystemObjectExtensions.As<T>(object)
    YVRLog.Debug(object, string)
    YVRLog.Error(object, string)
    YVRLog.Info(object, string)
    YVRLog.Warn(object, string)
    In This Article