mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 14:31:08 +01:00
glsl: floatBitsToUint spelling
This commit is contained in:
1 parent
1206b4cf33
commit
bfe23d6ce1
1 file changed
+1
-1
@@ -2620,7 +2620,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