File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,9 @@ pub fn dds_buffer_to_image(
23
23
Ok ( format) => ( format, None ) ,
24
24
Err ( TextureError :: FormatRequiresTranscodingError ( TranscodeFormat :: Rgb8 ) ) => {
25
25
let format = if is_srgb {
26
- TextureFormat :: Bgra8UnormSrgb
26
+ TextureFormat :: Rgba8UnormSrgb
27
27
} else {
28
- TextureFormat :: Bgra8Unorm
28
+ TextureFormat :: Rgba8Unorm
29
29
} ;
30
30
( format, Some ( TranscodeFormat :: Rgb8 ) )
31
31
}
Original file line number Diff line number Diff line change @@ -1558,11 +1558,11 @@ pub enum DataFormat {
1558
1558
pub enum TranscodeFormat {
1559
1559
Etc1s ,
1560
1560
Uastc ( DataFormat ) ,
1561
- // Has to be transcoded to R8Unorm for use with `wgpu`.
1561
+ /// Has to be transcoded from `R8UnormSrgb` to ` R8Unorm` for use with `wgpu`.
1562
1562
R8UnormSrgb ,
1563
- // Has to be transcoded to R8G8Unorm for use with `wgpu`.
1563
+ /// Has to be transcoded from `Rg8UnormSrgb` to ` R8G8Unorm` for use with `wgpu`.
1564
1564
Rg8UnormSrgb ,
1565
- // Has to be transcoded to Rgba8 for use with `wgpu`.
1565
+ /// Has to be transcoded from `Rgb8` to ` Rgba8` for use with `wgpu`.
1566
1566
Rgb8 ,
1567
1567
}
1568
1568
You can’t perform that action at this time.
0 commit comments