Skip to content

Commit

Permalink
consistency: rename Sfloat -> Float
Browse files Browse the repository at this point in the history
  • Loading branch information
EriKWDev committed Dec 15, 2024
1 parent 49f471c commit c895a16
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion blade-graphics/src/gles/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ fn describe_texture_format(format: crate::TextureFormat) -> FormatInfo {
Tf::Bc5Unorm => (glow::COMPRESSED_RG_RGTC2, glow::RG, 0),
Tf::Bc5Snorm => (glow::COMPRESSED_SIGNED_RG_RGTC2, glow::RG, 0),
Tf::Bc6hUfloat => (glow::COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT, glow::RGB, 0),
Tf::Bc6hSfloat => (glow::COMPRESSED_RGB_BPTC_SIGNED_FLOAT, glow::RGB, 0),
Tf::Bc6hFloat => (glow::COMPRESSED_RGB_BPTC_SIGNED_FLOAT, glow::RGB, 0),
Tf::Bc7Unorm => (glow::COMPRESSED_RGBA_BPTC_UNORM, glow::RGBA, 0),
Tf::Bc7UnormSrgb => (glow::COMPRESSED_SRGB_ALPHA_BPTC_UNORM, glow::RGBA, 0),
Tf::Rgb10a2Unorm => (
Expand Down
2 changes: 1 addition & 1 deletion blade-graphics/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ pub enum TextureFormat {
Bc5Unorm,
Bc5Snorm,
Bc6hUfloat,
Bc6hSfloat,
Bc6hFloat,
Bc7Unorm,
Bc7UnormSrgb,
// packed 32-bit
Expand Down
2 changes: 1 addition & 1 deletion blade-graphics/src/metal/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ fn map_texture_format(format: crate::TextureFormat) -> metal::MTLPixelFormat {
Tf::Bc5Unorm => BC5_RGUnorm,
Tf::Bc5Snorm => BC5_RGSnorm,
Tf::Bc6hUfloat => BC6H_RGBUfloat,
Tf::Bc6hSfloat => BC6H_RGBFloat,
Tf::Bc6hFloat => BC6H_RGBFloat,
Tf::Bc7Unorm => BC7_RGBAUnorm,
Tf::Bc7UnormSrgb => BC7_RGBAUnorm_sRGB,
Tf::Rgb10a2Unorm => RGB10A2Unorm,
Expand Down
2 changes: 1 addition & 1 deletion blade-graphics/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ impl super::TextureFormat {
Self::Bc5Unorm => cx_bc(16),
Self::Bc5Snorm => cx_bc(16),
Self::Bc6hUfloat => cx_bc(16),
Self::Bc6hSfloat => cx_bc(16),
Self::Bc6hFloat => cx_bc(16),
Self::Bc7Unorm => cx_bc(16),
Self::Bc7UnormSrgb => cx_bc(16),
Self::Rgb10a2Unorm => uncompressed(4),
Expand Down
2 changes: 1 addition & 1 deletion blade-graphics/src/vulkan/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ fn map_texture_format(format: crate::TextureFormat) -> vk::Format {
Tf::Bc5Unorm => vk::Format::BC5_UNORM_BLOCK,
Tf::Bc5Snorm => vk::Format::BC5_SNORM_BLOCK,
Tf::Bc6hUfloat => vk::Format::BC6H_UFLOAT_BLOCK,
Tf::Bc6hSfloat => vk::Format::BC6H_SFLOAT_BLOCK,
Tf::Bc6hFloat => vk::Format::BC6H_SFLOAT_BLOCK,
Tf::Bc7Unorm => vk::Format::BC7_UNORM_BLOCK,
Tf::Bc7UnormSrgb => vk::Format::BC7_SRGB_BLOCK,
Tf::Rgb10a2Unorm => vk::Format::A2R10G10B10_UNORM_PACK32,
Expand Down

0 comments on commit c895a16

Please sign in to comment.