Skip to main content

Module texture_normalizer

Module texture_normalizer 

Source
Expand description

BGRA-to-RGBA and Y-flip normalization pass for imported textures. GPU-based texture normalization pass.

Converts imported textures to a canonical format (Rgba8Unorm, top-left origin) via a fullscreen-triangle render pass. Handles BGRA-to-RGBA conversion and Y-flip in a single draw call.

Structsยง

ImportedTextureNormalizer
Caches the wgpu pipeline state for normalizing imported textures.