mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
glsl: floatBitsToUint spelling
This commit is contained in:
committed by
Dzmitry Malyshau
parent
aea427fa92
commit
f36cfb93dc
@@ -2663,7 +2663,7 @@ impl<'a, W: Write> Writer<'a, W> {
|
||||
let source_kind = inner.scalar_kind().unwrap();
|
||||
let conv_op = match (source_kind, target_kind) {
|
||||
(Sk::Float, Sk::Sint) => "floatBitsToInt",
|
||||
(Sk::Float, Sk::Uint) => "floatBitsToUInt",
|
||||
(Sk::Float, Sk::Uint) => "floatBitsToUint",
|
||||
(Sk::Sint, Sk::Float) => "intBitsToFloat",
|
||||
(Sk::Uint, Sk::Float) => "uintBitsToFloat",
|
||||
// There is no way to bitcast between Uint/Sint in glsl. Use constructor conversion
|
||||
|
||||
Reference in New Issue
Block a user