Skip to content
This repository has been archived by the owner on Jan 29, 2025. It is now read-only.

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Elabajaba committed Jun 9, 2023
1 parent 1c701b6 commit 42a3662
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/back/hlsl/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2865,7 +2865,10 @@ impl<'a, W: fmt::Write> super::Writer<'a, W> {
self.write_expr(module, arg, func_ctx)?;
write!(self.out, "[2], -1.0, 1.0) * {scale}.0 + 0.5)) & 0xFF) << 16) | ((int(floor(clamp(")?;
self.write_expr(module, arg, func_ctx)?;
write!(self.out, "[3], -1.0, 1.0) * {scale}.0 + 0.5)) & 0xFF) << 24))",)?;
write!(
self.out,
"[3], -1.0, 1.0) * {scale}.0 + 0.5)) & 0xFF) << 24))",
)?;
} else {
// pack4x8unorm
write!(self.out, "(uint(clamp(")?;
Expand Down

0 comments on commit 42a3662

Please sign in to comment.