GtfDdsSharp GtfDdsSharp
GtfDdsSharp GtfDdsSharp
DocFX + Singulink = ♥

Search Results for

    Method ToSwizzle3D

    ToSwizzle3D(uint, uint, uint, uint, uint, uint)

    Computes the swizzle offset from the specified coordinates and base-2 logarithms of each dimension.

    Declaration
    public static uint ToSwizzle3D(uint x, uint y, uint z, uint log2Width, uint log2Height, uint log2Depth)
    Parameters
    Type Name Description
    uint x

    The x-coordinate, relative to the width.

    uint y

    The y-coordinate, relative to the height.

    uint z

    The z-coordinate, relative to the depth.

    uint log2Width

    The base-2 logarithm of the width.

    uint log2Height

    The base-2 logarithm of the height.

    uint log2Depth

    The base-2 logarithm of the depth.

    Returns
    Type Description
    uint

    The swizzle offset.