Skip to content

Commit

Permalink
render: Implement Context3DTextureFormat::RgbaHalfFloat
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron1011 committed Oct 3, 2023
1 parent 4f4f871 commit d32b19e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions render/wgpu/src/context3d/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1222,9 +1222,7 @@ fn convert_texture_format(input: Context3DTextureFormat) -> Result<wgpu::Texture
// to be an alpha channel, so we're relying on SWFS doing "the right thing"
// as with BgrPacked
Context3DTextureFormat::Compressed => Ok(TextureFormat::Rgba8Unorm),
_ => Err(Error::Unimplemented(
format!("Texture format {input:?}").into(),
)),
Context3DTextureFormat::RgbaHalfFloat => Ok(TextureFormat::Rgba16Float),
}
}

Expand Down

0 comments on commit d32b19e

Please sign in to comment.