Skip to content

SetTextureSampler

Claude edited this page Oct 27, 2026 · 6 revisions

SetTextureSampler 〔BlitzLLVM〕

Command Index · Blitz3D · Textures

SetTextureSampler texture%, sampler%

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

Makes a texture be read through a sampler, see CreateSampler. The sampler takes over the filtering, repeating and mip level settings of the flags of the texture (clamp 16 and 32, mip maps 8), and changes made to the sampler later are seen by the texture at once. Giving 0 as the sampler takes it away, and the flags pick the settings again. This is a BlitzLLVM extension: the originals read every texture with the settings of its flags and do not have samplers.

A sampler does not make mip levels: flag 8 or a DDS file with levels is still needed, see Mip maps.

Parameter Type Default Description
texture Int required The texture to change.
sampler Int required The sampler to read it with, or 0.

Related commands

Command Index · Blitz3D · Textures

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally