API reference
API reference
Select your platform
No SDKs available
No versions available

AddressMode

AddressMode

enum AddressMode : Enum<AddressMode>
Enum class representing the addressing mode for texture coordinates outside an image.
This enum defines how to handle texture coordinates that fall outside the range of 0, 1 for U and V axes. Visualizations of these functions can be found here: https://vulkan-tutorial.com/Texture_mapping/Image_view_and_sampler.

Entries

NameSummary
REPEAT

Repeat the texture.
MIRRORED_REPEAT

Mirrored repeat of the texture.
CLAMP_TO_EDGE

Clamp the texture coordinates to the edge of the texture.

Properties

NameSummary
mode
val mode: Int
name
val name: String
ordinal
val ordinal: Int

Functions

NameSummary
valueOf
fun valueOf(value: String): AddressMode

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
values
fun values(): Array<AddressMode>

Returns an array containing the constants of this enum type, in the order they’re declared.
Did you find this page helpful?