ref_iface_IVDXAContext_SetTextureMatrixDual - shekh/VirtualDub2 GitHub Wiki

VirtualDub Plugin SDK 1.2

IVDXAContext interface

IVDXAContext:: SetTextureMatrixDual

Sets a 4x3 matrix to use for generating two pairs of texture sampling coordinates.

void SetTextureMatrixDual(uint32 coordIndex, uint32 textureHandle, float xoffset1, float yoffset1, float xoffset2, float yoffset2);

Parameters

coordIndex Texture coordinate set to apply a matrix to (0-7).
textureHandle Handle of texture to use as a basis for computing texture coordinates.
xoffset1 Horizontal texel position of top-left coordinate of texture rectangle to sample for the first two texture coordinates.
yoffset1 Vertical texel position of top-left coordinate of texture rectangle to sample for the first two texture coordinate.
xoffset2 Horizontal texel position of top-left coordinate of texture rectangle to sample for the second two texture coordinates.
yoffset2 Vertical texel position of top-left coordinate of texture rectangle to sample for the second two texture coordinate.

Thread safety

This method is not thread-safe.

Remarks

This method is used to pack two sets of texture coordinates into one texture coordinate slot by using all four components of the texture coordinate interpolator. The first pair of texture coordinates is placed in the x and y components, while the second pair of texture coordinates is placed in the w and z components. Note that the second pair is in reversed order (wz instead of zw) in order to take advantage of the .wzyx swizzle in pixel shader model 2.0.


Copyright (C) 2007-2012 Avery Lee.

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