go-texconv
Go wrapper for DirectXTex texconv with Windows and Linux support.
Installation
go get github.com/zelenin/go-texconv
Usage
package main
import (
"log"
"github.com/zelenin/go-texconv"
)
func main() {
args := []string{"-ft", "png", "-y", "input.dds"}
result, err := texconv.Texconv(args, true, true, true)
if err != nil {
log.Fatalf("texconv failed: %v", err)
}
log.Printf("texconv finished with code %d", result)
}
Author
Aleksandr Zelenin, e-mail: aleksandr@zelenin.me