Search Results for

    Show / Hide Table of Contents

    Class PixelFormatSampler

    Utility for writing and reading from different pixels formats within a single code path.

    Inheritance
    System.Object
    PixelFormatSampler
    Namespace: FlaxEngine
    Assembly: FlaxEngine.CSharp.dll
    Syntax
    [Unmanaged]
    public sealed class PixelFormatSampler : ValueType

    Fields

    Format

    Element format.

    Declaration
    public PixelFormat Format
    Field Value
    PixelFormat

    PixelSize

    Element size in bytes.

    Declaration
    public int PixelSize
    Field Value
    System.Int32

    Read

    Read data function.

    Declaration
    public delegate* unmanaged<void*, Float4> Read
    Field Value
    delegate*unmanaged<System.Void*, Float4>

    Write

    Write data function.

    Declaration
    public delegate* unmanaged<void*, ref Float4, void> Write
    Field Value
    delegate*unmanaged<System.Void*, Float4, System.Void>

    Methods

    Get(PixelFormat, out PixelFormatSampler)

    Tries to get a sampler tool for the specified format to read pixels.

    Declaration
    public static bool Get(PixelFormat format, out PixelFormatSampler sampler)
    Parameters
    PixelFormat format

    The format.

    PixelFormatSampler sampler

    The sampler object or empty when cannot sample the given format.

    Returns
    System.Boolean

    True if got sampler, otherwise false.

    Extension Methods

    Extensions.ReflectiveCompare<T>(T, T)
    Extensions.RawClone<T>(T)
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat