@@ -139,35 +139,35 @@ public TexDecoder(teTexture texture, bool grayscale) {
139139 }
140140 case TextureTypes . DXGI_PIXEL_FORMAT . DXGI_FORMAT_BC1_UNORM :
141141 case TextureTypes . DXGI_PIXEL_FORMAT . DXGI_FORMAT_BC1_UNORM_SRGB : {
142- Bc1 . Decompress ( surfaceInputData , texture . Header . Width , texture . Header . Height , surfaceOutputData ) ;
142+ Bc1 . Decompress < ColorBGRA32 , byte > ( surfaceInputData , texture . Header . Width , texture . Header . Height , surfaceOutputData ) ;
143143 break ;
144144 }
145145 case TextureTypes . DXGI_PIXEL_FORMAT . DXGI_FORMAT_BC2_UNORM :
146146 case TextureTypes . DXGI_PIXEL_FORMAT . DXGI_FORMAT_BC2_UNORM_SRGB : {
147- Bc2 . Decompress ( surfaceInputData , texture . Header . Width , texture . Header . Height , surfaceOutputData ) ;
147+ Bc2 . Decompress < ColorBGRA32 , byte > ( surfaceInputData , texture . Header . Width , texture . Header . Height , surfaceOutputData ) ;
148148 break ;
149149 }
150150 case TextureTypes . DXGI_PIXEL_FORMAT . DXGI_FORMAT_BC3_UNORM :
151151 case TextureTypes . DXGI_PIXEL_FORMAT . DXGI_FORMAT_BC3_UNORM_SRGB : {
152- Bc3 . Decompress ( surfaceInputData , texture . Header . Width , texture . Header . Height , surfaceOutputData ) ;
152+ Bc3 . Decompress < ColorBGRA32 , byte > ( surfaceInputData , texture . Header . Width , texture . Header . Height , surfaceOutputData ) ;
153153 break ;
154154 }
155155 case TextureTypes . DXGI_PIXEL_FORMAT . DXGI_FORMAT_BC4_UNORM : {
156- Bc4 . Decompress ( surfaceInputData , texture . Header . Width , texture . Header . Height , surfaceOutputData ) ;
156+ Bc4 . Decompress < ColorBGRA32 , byte > ( surfaceInputData , texture . Header . Width , texture . Header . Height , surfaceOutputData ) ;
157157 break ;
158158 }
159159 case TextureTypes . DXGI_PIXEL_FORMAT . DXGI_FORMAT_BC5_UNORM : {
160- Bc5 . Decompress ( surfaceInputData , texture . Header . Width , texture . Header . Height , surfaceOutputData ) ;
160+ Bc5 . Decompress < ColorBGRA32 , byte > ( surfaceInputData , texture . Header . Width , texture . Header . Height , surfaceOutputData ) ;
161161 break ;
162162 }
163163 case TextureTypes . DXGI_PIXEL_FORMAT . DXGI_FORMAT_BC6H_UF16 :
164164 case TextureTypes . DXGI_PIXEL_FORMAT . DXGI_FORMAT_BC6H_SF16 : {
165- Bc6h . Decompress ( surfaceInputData , texture . Header . Width , texture . Header . Height , format is TextureTypes . DXGI_PIXEL_FORMAT . DXGI_FORMAT_BC6H_SF16 , surfaceOutputData ) ;
165+ Bc6h . Decompress < ColorBGRA32 , byte > ( surfaceInputData , texture . Header . Width , texture . Header . Height , format is TextureTypes . DXGI_PIXEL_FORMAT . DXGI_FORMAT_BC6H_SF16 , surfaceOutputData ) ;
166166 break ;
167167 }
168168 case TextureTypes . DXGI_PIXEL_FORMAT . DXGI_FORMAT_BC7_UNORM :
169169 case TextureTypes . DXGI_PIXEL_FORMAT . DXGI_FORMAT_BC7_UNORM_SRGB : {
170- Bc7 . Decompress ( surfaceInputData , texture . Header . Width , texture . Header . Height , surfaceOutputData ) ;
170+ Bc7 . Decompress < ColorBGRA32 , byte > ( surfaceInputData , texture . Header . Width , texture . Header . Height , surfaceOutputData ) ;
171171 break ;
172172 }
173173 default :
0 commit comments