SamplerAddress

How a sampler reads a texture at texture coordinates outside the range from 0 to 1, where 0 is the texture's left or top edge and 1 its right or bottom edge, on both axes. A sprite meets such coordinates when it repeats one texture across an area larger than the texture.

Entries

Link copied to clipboard

Reads the texel at the nearest edge, so the texture never repeats. Right for images and atlases.

Link copied to clipboard

Wraps around, so a coordinate of 2.25 reads where 0.25 does and the texture tiles. With SamplerFilter.LINEAR the texels at one edge blend with those at the opposite edge, which keeps repeats seamless and tints the border of a texture that is drawn only once.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

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.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.