Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions hxd/res/Image.hx
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ class Image extends Resource {
var colbits = f.readByte();
var colType = f.readByte();
inf.pixelFormat = switch ([colbits, colType]) {
case [1, _]: BGRA;
case [2, _]: BGRA;
case [4, _]: BGRA;
case [8, _]: BGRA; // TODO : grayscale png image
case [16, 0]: R16U;
case [16, 2]: RGBA16U; // RGB16U is not supported on DirectX !
Expand Down
Loading