Skip to content

SetSamplerAddressModeU

Claude edited this page Oct 27, 2026 · 6 revisions

SetSamplerAddressModeU 〔BlitzLLVM〕

Command Index · Blitz3D · Textures

SetSamplerAddressModeU sampler%, mode%

〔BlitzLLVM〕 This command does not exist in the original Blitz products. BlitzLLVM adds it.

Chooses what is read where the horizontal texture coordinate (u) is not between 0 and 1. This is a BlitzLLVM extension: the originals read every texture with the settings of its flags and do not have samplers.

Mode Result
0 Repeat: the texture starts again, the default.
1 Mirror: every second repeat is turned around.
2 Clamp: the edge texel is stretched out.
3 Border: the color of SetSamplerBorderColor, opaque black by default.

SetSamplerAddressModeV does the same for the vertical coordinate (v), and SetSamplerAddressModeW for the depth coordinate (w), which flat textures do not use.

Parameter Type Default Description
sampler Int required The sampler to change.
mode Int required The address mode from the table above.

Differences and known gaps:

  • The mode has to be 0 to 3, other values stop the program with an error. Mirror once (the coordinate is mirrored and then clamped) is not offered, since not every graphics card can do it.

Related commands

Command Index · Blitz3D · Textures

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

More

Clone this wiki locally