Skip to content

SetSamplerFilterMip

Claude edited this page Oct 27, 2026 · 8 revisions

SetSamplerFilterMip 〔BlitzLLVM〕

Command Index · Blitz3D · Textures

SetSamplerFilterMip sampler%, mode%

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

Chooses how the mip levels of a texture are read. With 0 the level that is closest to the size on the screen is used, with 1 two levels are blended (trilinear filtering), which hides the jump from one level to the next. It only has an effect on a texture that has mip levels: use flag 8 or a DDS file that stores them, see Mip maps. This is a BlitzLLVM extension: the originals read every texture with the settings of its flags and do not have samplers.

Mode Result
0 Nearest: the texel that is closest, which shows blocks.
1 Linear: blends the texels around the point, the default.
Parameter Type Default Description
sampler Int required The sampler to change.
mode Int required The filter mode from the table above.

Differences and known gaps:

  • The mode has to be 0 or 1, other values stop the program with an error.

Related commands

Command Index · Blitz3D · Textures

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

More

Clone this wiki locally