Shaders: use makeDouble.f64 overload and DXIL ShaderFlags bit 2 for DOUBLES
This commit is contained in:
1 parent
b17b69fd9e
commit
61e5f79ac6
2 files changed
+4
-4
No files matched your search
@@ -1983,7 +1983,7 @@ impl<'a> Lower<'a> {
|
||||
.named_struct("dx.types.splitdouble", vec![i32t, i32t]);
|
||||
let arg = self
|
||||
.s
|
||||
.op(c, "makeDouble", Attr::ReadNone, f64t, 101, &[lo, hi]);
|
||||
.op(c, "makeDouble.f64", Attr::ReadNone, f64t, 101, &[lo, hi]);
|
||||
let (k0, k0b) = (self.s.m.i8(0), self.s.m.i8(0));
|
||||
let sum = self
|
||||
.s
|
||||
@@ -2003,10 +2003,10 @@ impl<'a> Lower<'a> {
|
||||
let c = self.cur;
|
||||
let d0 = self
|
||||
.s
|
||||
.op(c, "makeDouble", Attr::ReadNone, f64t, 101, &[lo0, hi0]);
|
||||
.op(c, "makeDouble.f64", Attr::ReadNone, f64t, 101, &[lo0, hi0]);
|
||||
let d1 = self
|
||||
.s
|
||||
.op(c, "makeDouble", Attr::ReadNone, f64t, 101, &[lo1, hi1]);
|
||||
.op(c, "makeDouble.f64", Attr::ReadNone, f64t, 101, &[lo1, hi1]);
|
||||
let total = self.s.m.bin(c, Bin::Add, d0, d1);
|
||||
let split = self
|
||||
.s
|
||||
|
||||
@@ -73,7 +73,7 @@ pub const USER_VIEW_BIAS: u32 = 0x103;
|
||||
/// `ShaderFlags` bits (metadata) and their `SFI0` feature bits.
|
||||
pub(crate) mod flags {
|
||||
pub const RAW_BUFFERS: u64 = 1 << 4;
|
||||
pub const DOUBLES: u64 = 1 << 5;
|
||||
pub const DOUBLES: u64 = 1 << 2;
|
||||
pub const STENCIL_REF: u64 = 1 << 11;
|
||||
pub const TYPED_UAV_LOADS: u64 = 1 << 13;
|
||||
pub const WAVE_OPS: u64 = 1 << 19;
|
||||
|
||||
Reference in new issue
Block a user