Luna::RHI::TextureAddressMode

enum TextureAddressMode : u8
{
    repeat
    mirror
    clamp
    border
}

Specifies the texture address mode for samplers when the sample position does not fall in range [0, 1].

Options

  • repeat

    Given the input position x, the sample position is computed as x - floor(x).

  • mirror

    Given the input position x, the sample position is computed as 1 - abs(mod(x, 2) - 1)

  • clamp

    Given the input position x, the sample position is computed as clamp(x, 0, 1).

  • border

    Outputs one constant color if input position x is not in range [0, 1].