microsoft / DirectXTex

DirectXTex texture processing library
https://walbourn.github.io/directxtex/
MIT License
1.79k stars 441 forks source link

TEXCONV.EXE, possible bug #378

Closed Kubera-Info closed 1 year ago

Kubera-Info commented 1 year ago

Thank you for sharing knowledge about DirectX.

When I convert a PNG file, I have an error: 1>[Using DirectCompute 5.0 on "NVIDIA GeForce RTX 3070"] 1> FAILED [compress] (8000FFFF: Katastrofalny b��d. )

I am attaching the source file: https://www.kubera.info/ms/RV_Marble_3_baseColor.png

The destination should be: BC7_UNORM_SRGB

It worked in the past.

Code: ..\..\Bin\texconv.exe -nologo -y -gpu 0 -f BC7_UNORM_SRGB -srgb -m 3 -o DDS Images\RV_Marble_3_baseColor.png

P. S. I am not the author of that image.

Greetings

0xC0000054 commented 1 year ago

It is working for me, but I am using an AMD GPU. Are your NVIDIA drivers up to date?

texconv.exe -f BC7_UNORM_SRGB RV_Marble_3_baseColor.png
Microsoft (R) DirectX Texture Converter [DirectXTex] Version 2023.6.14.1
Copyright (C) Microsoft Corp.

reading RV_Marble_3_baseColor.png (4096x4096 R8G8B8A8_UNORM 2D a:Opaque) as
[Using DirectCompute 5.0 on "AMD Radeon RX 6650 XT"]
 (4096x4096,13 BC7_UNORM_SRGB 2D a:Opaque)
writing RV_Marble_3_baseColor.dds
Kubera-Info commented 1 year ago

Yes, they are.

Kubera-Info commented 1 year ago

Version January 2023 works fine.

walbourn commented 1 year ago

This is a bug in my code. Fixed in referenced PR.