File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ int main()
136
136
137
137
WGPUAttachment attachments [ATTACHMENTS_LENGTH ] = {
138
138
{
139
- .format = WGPUTextureFormat_B8g8r8a8Unorm ,
139
+ .format = WGPUTextureFormat_Bgra8Unorm ,
140
140
.samples = 1 ,
141
141
},
142
142
};
@@ -202,7 +202,7 @@ int main()
202
202
203
203
WGPUSwapChainDescriptor swap_chain_desc = {
204
204
.usage = WGPUTextureUsageFlags_OUTPUT_ATTACHMENT | WGPUTextureUsageFlags_PRESENT ,
205
- .format = WGPUTextureFormat_B8g8r8a8Unorm ,
205
+ .format = WGPUTextureFormat_Bgra8Unorm ,
206
206
.width = 640 ,
207
207
.height = 480 ,
208
208
};
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ fn main() {
45
45
primitive_topology : wgpu:: PrimitiveTopology :: TriangleList ,
46
46
color_states : & [
47
47
wgpu:: ColorStateDescriptor {
48
- format : wgpu:: TextureFormat :: B8g8r8a8Unorm ,
48
+ format : wgpu:: TextureFormat :: Bgra8Unorm ,
49
49
color : wgpu:: BlendDescriptor :: REPLACE ,
50
50
alpha : wgpu:: BlendDescriptor :: REPLACE ,
51
51
write_mask : wgpu:: ColorWriteFlags :: ALL ,
@@ -69,7 +69,7 @@ fn main() {
69
69
let surface = instance. create_surface ( & window) ;
70
70
let mut swap_chain = device. create_swap_chain ( & surface, & wgpu:: SwapChainDescriptor {
71
71
usage : wgpu:: TextureUsageFlags :: OUTPUT_ATTACHMENT ,
72
- format : wgpu:: TextureFormat :: B8g8r8a8Unorm ,
72
+ format : wgpu:: TextureFormat :: Bgra8Unorm ,
73
73
width : size. width as u32 ,
74
74
height : size. height as u32 ,
75
75
} ) ;
Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ impl framework::Example for Example {
176
176
size : texture_extent,
177
177
array_size : 1 ,
178
178
dimension : wgpu:: TextureDimension :: D2 ,
179
- format : wgpu:: TextureFormat :: R8g8b8a8Unorm ,
179
+ format : wgpu:: TextureFormat :: Rgba8Unorm ,
180
180
usage : wgpu:: TextureUsageFlags :: SAMPLED | wgpu:: TextureUsageFlags :: TRANSFER_DST ,
181
181
} ) ;
182
182
let texture_view = texture. create_default_view ( ) ;
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ pub fn run<E: Example>(title: &str) {
78
78
let surface = instance. create_surface ( & window) ;
79
79
let mut sc_desc = wgpu:: SwapChainDescriptor {
80
80
usage : wgpu:: TextureUsageFlags :: OUTPUT_ATTACHMENT ,
81
- format : wgpu:: TextureFormat :: B8g8r8a8Unorm ,
81
+ format : wgpu:: TextureFormat :: Bgra8Unorm ,
82
82
width : size. width as u32 ,
83
83
height : size. height as u32 ,
84
84
} ;
You can’t perform that action at this time.
0 commit comments