Back to Filament

CompareFunction

docs/android/dokka/filament-android/com.google.android.filament/-texture-sampler/-compare-function/index.md

1.75.01.9 KB
Original Source

//filament-android/com.google.android.filament/TextureSampler/CompareFunction

CompareFunction

[main]
enum CompareFunction

Comparison functions for the depth sampler.

Entries

LESS_EQUAL[main]
LESS_EQUAL
Less or equal
GREATER_EQUAL[main]
GREATER_EQUAL
Greater or equal
LESS[main]
LESS
Strictly less than
GREATER[main]
GREATER
Strictly greater than
EQUAL[main]
EQUAL
Equal
NOT_EQUAL[main]
NOT_EQUAL
Not equal
ALWAYS[main]
ALWAYS
Always. Depth testing is deactivated.
NEVER[main]
NEVER
Never. The depth test always fails.

Functions

NameSummary
valueOf[main]
open fun valueOf(name: String): TextureSampler.CompareFunction
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[main]
open fun values(): Array<TextureSampler.CompareFunction>
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.