ref_iface_IVDXAContext_SetSampler - shekh/VirtualDub2 GitHub Wiki

VirtualDub Plugin SDK 1.2

IVDXAContext interface

IVDXAContext:: SetSampler

Binds a texture to a texture sampler.

void SetSampler(uint32 samplerIndex, uint32 textureHandle, VDXAFilterMode filterMode);

Parameters

samplerIndex Index of sampler to bind (0-15).
textureHandle Texture handle to bind to the sampler. Use zero to unbind a texture.
filterMode Filtering mode to use when sampling the texture.
kVDXAFilt_Point
Point sample in X/Y directions; disable mipmapping.
kVDXAFilt_Bilinear
Use bilinear filtering in X/Y directions; disable mipmapping.
kVDXAFilt_BilinearMip
Use bilinear filtering in X/Y directions; select nearest mip-map.

Thread safety

This method is not thread-safe.

Remarks

This method is used to select which textures are accessible to the fragment program.


Copyright (C) 2007-2012 Avery Lee.

⚠️ **GitHub.com Fallback** ⚠️