Skip to content

Commit 07684d3

Browse files
authored
Rename Rg11b10UFloat to Rg11b10Ufloat (#6226)
1 parent e6a2a86 commit 07684d3

File tree

22 files changed

+38
-38
lines changed

22 files changed

+38
-38
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ By @teoxoy [#6134](https://github.com/gfx-rs/wgpu/pull/6134).
106106

107107
- `wgpu_hal::gles::Adapter::new_external` now requires the context to be current when dropping the adapter and related objects. By @Imberflur in [#6114](https://github.com/gfx-rs/wgpu/pull/6114).
108108
- Reduce the amount of debug and trace logs emitted by wgpu-core and wgpu-hal. By @nical in [#6065](https://github.com/gfx-rs/wgpu/issues/6065)
109-
- `Rg11b10Float` is renamed to `Rg11b10UFloat`. By @sagudev in [#6108](https://github.com/gfx-rs/wgpu/pull/6108)
109+
- `Rg11b10Float` is renamed to `Rg11b10Ufloat`. By @sagudev in [#6108](https://github.com/gfx-rs/wgpu/pull/6108)
110110

111111
#### HAL
112112

naga/src/back/glsl/features.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ impl<'a, W> Writer<'a, W> {
399399
| StorageFormat::Rg16Float
400400
| StorageFormat::Rgb10a2Uint
401401
| StorageFormat::Rgb10a2Unorm
402-
| StorageFormat::Rg11b10UFloat
402+
| StorageFormat::Rg11b10Ufloat
403403
| StorageFormat::Rg32Uint
404404
| StorageFormat::Rg32Sint
405405
| StorageFormat::Rg32Float => {

naga/src/back/glsl/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4825,7 +4825,7 @@ fn glsl_storage_format(format: crate::StorageFormat) -> Result<&'static str, Err
48254825
Sf::Rgba8Sint => "rgba8i",
48264826
Sf::Rgb10a2Uint => "rgb10_a2ui",
48274827
Sf::Rgb10a2Unorm => "rgb10_a2",
4828-
Sf::Rg11b10UFloat => "r11f_g11f_b10f",
4828+
Sf::Rg11b10Ufloat => "r11f_g11f_b10f",
48294829
Sf::Rg32Uint => "rg32ui",
48304830
Sf::Rg32Sint => "rg32i",
48314831
Sf::Rg32Float => "rg32f",

naga/src/back/hlsl/conv.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ impl crate::StorageFormat {
132132
Self::Rg8Sint | Self::Rg16Sint | Self::Rg32Uint => "int2",
133133
Self::Rg8Uint | Self::Rg16Uint | Self::Rg32Sint => "uint2",
134134

135-
Self::Rg11b10UFloat => "float3",
135+
Self::Rg11b10Ufloat => "float3",
136136

137137
Self::Rgba16Float | Self::Rgba32Float => "float4",
138138
Self::Rgba8Unorm | Self::Bgra8Unorm | Self::Rgba16Unorm | Self::Rgb10a2Unorm => {

naga/src/back/spv/instructions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1170,7 +1170,7 @@ impl From<crate::StorageFormat> for spirv::ImageFormat {
11701170
Sf::Bgra8Unorm => Self::Unknown,
11711171
Sf::Rgb10a2Uint => Self::Rgb10a2ui,
11721172
Sf::Rgb10a2Unorm => Self::Rgb10A2,
1173-
Sf::Rg11b10UFloat => Self::R11fG11fB10f,
1173+
Sf::Rg11b10Ufloat => Self::R11fG11fB10f,
11741174
Sf::Rg32Uint => Self::Rg32ui,
11751175
Sf::Rg32Sint => Self::Rg32i,
11761176
Sf::Rg32Float => Self::Rg32f,

naga/src/back/wgsl/writer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2023,7 +2023,7 @@ const fn storage_format_str(format: crate::StorageFormat) -> &'static str {
20232023
Sf::Bgra8Unorm => "bgra8unorm",
20242024
Sf::Rgb10a2Uint => "rgb10a2uint",
20252025
Sf::Rgb10a2Unorm => "rgb10a2unorm",
2026-
Sf::Rg11b10UFloat => "rg11b10float",
2026+
Sf::Rg11b10Ufloat => "rg11b10float",
20272027
Sf::Rg32Uint => "rg32uint",
20282028
Sf::Rg32Sint => "rg32sint",
20292029
Sf::Rg32Float => "rg32float",

naga/src/front/glsl/parser/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ fn map_image_format(word: &str) -> Option<crate::StorageFormat> {
397397
"rgba16f" => Sf::Rgba16Float,
398398
"rg32f" => Sf::Rg32Float,
399399
"rg16f" => Sf::Rg16Float,
400-
"r11f_g11f_b10f" => Sf::Rg11b10UFloat,
400+
"r11f_g11f_b10f" => Sf::Rg11b10Ufloat,
401401
"r32f" => Sf::R32Float,
402402
"r16f" => Sf::R16Float,
403403
"rgba16" => Sf::Rgba16Unorm,

naga/src/front/spv/convert.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ pub(super) fn map_image_format(word: spirv::Word) -> Result<crate::StorageFormat
104104
Some(spirv::ImageFormat::Rgba8i) => Ok(crate::StorageFormat::Rgba8Sint),
105105
Some(spirv::ImageFormat::Rgb10a2ui) => Ok(crate::StorageFormat::Rgb10a2Uint),
106106
Some(spirv::ImageFormat::Rgb10A2) => Ok(crate::StorageFormat::Rgb10a2Unorm),
107-
Some(spirv::ImageFormat::R11fG11fB10f) => Ok(crate::StorageFormat::Rg11b10UFloat),
107+
Some(spirv::ImageFormat::R11fG11fB10f) => Ok(crate::StorageFormat::Rg11b10Ufloat),
108108
Some(spirv::ImageFormat::Rg32ui) => Ok(crate::StorageFormat::Rg32Uint),
109109
Some(spirv::ImageFormat::Rg32i) => Ok(crate::StorageFormat::Rg32Sint),
110110
Some(spirv::ImageFormat::Rg32f) => Ok(crate::StorageFormat::Rg32Float),

naga/src/front/wgsl/parse/conv.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ pub fn map_storage_format(word: &str, span: Span) -> Result<crate::StorageFormat
9494
"rgba8sint" => Sf::Rgba8Sint,
9595
"rgb10a2uint" => Sf::Rgb10a2Uint,
9696
"rgb10a2unorm" => Sf::Rgb10a2Unorm,
97-
"rg11b10float" => Sf::Rg11b10UFloat,
97+
"rg11b10float" => Sf::Rg11b10Ufloat,
9898
"rg32uint" => Sf::Rg32Uint,
9999
"rg32sint" => Sf::Rg32Sint,
100100
"rg32float" => Sf::Rg32Float,

naga/src/front/wgsl/to_wgsl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ impl crate::StorageFormat {
175175
Sf::Bgra8Unorm => "bgra8unorm",
176176
Sf::Rgb10a2Uint => "rgb10a2uint",
177177
Sf::Rgb10a2Unorm => "rgb10a2unorm",
178-
Sf::Rg11b10UFloat => "rg11b10float",
178+
Sf::Rg11b10Ufloat => "rg11b10float",
179179
Sf::Rg32Uint => "rg32uint",
180180
Sf::Rg32Sint => "rg32sint",
181181
Sf::Rg32Float => "rg32float",

0 commit comments

Comments
 (0)