ws-tex: docs/guide sections (textures / HDR, OpenRaster); DDS / KTX pixelFormat option; XBM / XPM names from F.save

F.save sets opts.format to the file format, so the DDS / KTX layout option is pixelFormat; XBM / XPM make a C
identifier of opts.name (F.save passes the file name).
This commit is contained in:
4DBug committed 2026-10-31 15:18:40 -05:00
1 parent d618795ce7
commit 918c8310af
10 files changed
+90 -30

No files matched your search

+1 -1
View File
@@ -133,7 +133,7 @@ do
end
local back = dec(Ktx.encode(f) :: buffer, { native = true })
t:eq(buffer.tostring(back.pixels), buffer.tostring(f.pixels), "rgba32f round trip")
local _, e = Ktx.encode(f, { format = "rgba8" })
local _, e = Ktx.encode(f, { pixelFormat = "rgba8" })
t:check(e and e.code == Err.ARG, "format mismatch")
local _, e2 = Ktx.encode(img, { zlib = 12 })
t:check(e2 and e2.code == Err.ARG, "zlib level")