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

Filter

Filter

enum Filter : Enum<Filter>
Enum class representing the filtering modes for texture sampling.
This enum defines how to calculate the final color value when sampling a texture at a specific address.

Entries

NameSummary
NEAREST

Nearest-neighbor filtering.
LINEAR

Linear filtering.

Properties

NameSummary
filter
val filter: Int
name
val name: String
ordinal
val ordinal: Int

Functions

NameSummary
valueOf
fun valueOf(value: String): Filter

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<Filter>

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