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
-
Given the input position
x, the sample position is computed asx - floor(x). -
Given the input position
x, the sample position is computed as1 - abs(mod(x, 2) - 1) -
Given the input position
x, the sample position is computed asclamp(x, 0, 1). -
Outputs one constant color if input position x is not in range [0, 1].