File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 82
82
DDS_CUBEMAP_POSITIVEZ = DDSCAPS2_CUBEMAP | DDSCAPS2_CUBEMAP_POSITIVEZ
83
83
DDS_CUBEMAP_NEGATIVEZ = DDSCAPS2_CUBEMAP | DDSCAPS2_CUBEMAP_NEGATIVEZ
84
84
85
+
85
86
# DXT1
86
87
DXT1_FOURCC = 0x31545844
87
88
@@ -155,6 +156,14 @@ def _open(self):
155
156
elif fourcc == b"DXT5" :
156
157
self .pixel_format = "DXT5"
157
158
n = 3
159
+ elif fourcc == b"ATI1" :
160
+ self .pixel_format = "BC4"
161
+ n = 4
162
+ self .mode = "L"
163
+ elif fourcc == b"ATI2" :
164
+ self .pixel_format = "BC5"
165
+ n = 5
166
+ self .mode = "RGB"
158
167
elif fourcc == b"BC5S" :
159
168
self .pixel_format = "BC5S"
160
169
n = 5
@@ -192,14 +201,6 @@ def _open(self):
192
201
raise NotImplementedError (
193
202
f"Unimplemented DXGI format { dxgi_format } "
194
203
)
195
- elif fourcc == b"ATI1" :
196
- self .pixel_format = "BC4"
197
- n = 4
198
- self .mode = "L"
199
- elif fourcc == b"ATI2" :
200
- self .pixel_format = "BC5"
201
- n = 5
202
- self .mode = "RGB"
203
204
else :
204
205
raise NotImplementedError (f"Unimplemented pixel format { repr (fourcc )} " )
205
206
You can’t perform that action at this time.
0 commit comments