Skip to content

CLI 'etc1s' and 'uastc' commands should expose --resize flag #1776

@donmccurdy

Description

@donmccurdy

When running the 'optimize' CLI command with KTX2 compression enabled by the --texture-compress flag, texture resizing (if enabled by --resize) happens automatically within the toktx() calls. When running the etc1s or uastc commands separately, --resize isn't currently exposed, and so you'd need to call the resize function separately.

My intention is that 'optimize' be an easy-to-use, simplified, and opinionated pipeline composed of parts from @gltf-transform/functions, and that it's possible — when those simplifications and opinions aren't a good fit for a particular user — to drop down into composing the more configurable and more advanced commands and functions underneath it.

That being the case, the etc1s and uastc commands should expose all features that they offer through the optimize command, and --resize is currently missing.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions