MCPcopy Create free account
hub / github.com/Rust-GPU/rust-gpu / trunc

Method trunc

crates/rustc_codegen_spirv/src/builder/builder_methods.rs:1400–1402  ·  view source on GitHub ↗

intcast has the logic for dealing with bools, so use that

(&mut self, val: Self::Value, dest_ty: Self::Type)

Source from the content-addressed store, hash-verified

1398
1399 // intcast has the logic for dealing with bools, so use that
1400 fn trunc(&mut self, val: Self::Value, dest_ty: Self::Type) -> Self::Value {
1401 self.intcast(val, dest_ty, false)
1402 }
1403 fn sext(&mut self, val: Self::Value, dest_ty: Self::Type) -> Self::Value {
1404 self.intcast(val, dest_ty, true)
1405 }

Callers

nothing calls this directly

Calls 1

intcastMethod · 0.80

Tested by

no test coverage detected