[PR #2324] [MERGED] Add R8 integer PNG preview support #2327

Closed
opened 2026-11-26 21:20:50 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/2324
Author: @ZroIsHere
Created: 11/26/2026
Status: ✅ Merged
Merged: 11/26/2026
Merged by: @aslan2142

Base: main ← Head: fix/dds-png-r8-integer


📝 Commits (1)

  • 4ba0afc Add R8 integer PNG preview support

📊 Changes

2 files changed (+15 additions, -5 deletions)

View changed files

📝 tools/dds_png.py (+14 -4)
📝 tools/tex_export.py (+1 -1)

📄 Description

Adds PNG previews for DXGI_FORMAT_R8_UINT and DXGI_FORMAT_R8_SINT. UINT channel bytes are preserved as red values; signed values are shifted from [-128, 127] into the PNG byte range [0, 255]. Green and blue remain zero and alpha is opaque. The texture exporter documentation now lists both formats.

DXGI format reference: https://learn.microsoft.com/en-us/windows/win32/api/dxgiformat/ne-dxgiformat-dxgi_format

Validation: Python AST parsing and git diff --check passed. No tests were run.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/2324 **Author:** [@ZroIsHere](https://github.com/ZroIsHere) **Created:** 11/26/2026 **Status:** ✅ Merged **Merged:** 11/26/2026 **Merged by:** [@aslan2142](https://github.com/aslan2142) **Base:** `main` ← **Head:** `fix/dds-png-r8-integer` --- ### 📝 Commits (1) - [`4ba0afc`](https://github.com/ubiquitarianism/leonida/commit/4ba0afc2db513300d51a0004a682186b8feb90a9) Add R8 integer PNG preview support ### 📊 Changes **2 files changed** (+15 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `tools/dds_png.py` (+14 -4) 📝 `tools/tex_export.py` (+1 -1) </details> ### 📄 Description Adds PNG previews for DXGI_FORMAT_R8_UINT and DXGI_FORMAT_R8_SINT. UINT channel bytes are preserved as red values; signed values are shifted from [-128, 127] into the PNG byte range [0, 255]. Green and blue remain zero and alpha is opaque. The texture exporter documentation now lists both formats. DXGI format reference: https://learn.microsoft.com/en-us/windows/win32/api/dxgiformat/ne-dxgiformat-dxgi_format Validation: Python AST parsing and `git diff --check` passed. No tests were run. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 21:20:50 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#2327
No description provided.