util-downsample-2x

Downsample an input image by 2x along a given axis by using a lanczos filter.

Index

Input Textures/Samplers

Uniform Buffer Values

Input Textures/Samplers

g_sourceTexture
                g_sourceTexture
              
Type
texture (platform-specific)
Description
The texture to sample.
g_sampler
                g_sampler
              
Type
sampler (platform-specific, does not exist on some platforms)
Description
The sampler to use to sample g_sourceTexture.

Uniform Buffer Values

g_filterDir
                float2 g_filterDir
              
Type
float2
Description
The direction that we're downsampling along. Should either be (1, 0) to downsample horizontally to a half-width texture or (0, 1) to downsample vertically to a half-height texture.