shader: Implement DADD
This commit is contained in:
parent
3b7fd3ad0f
commit
72990df7ba
8 changed files with 132 additions and 14 deletions
|
@ -153,6 +153,14 @@ u64 Value::U64() const {
|
|||
return imm_u64;
|
||||
}
|
||||
|
||||
f64 Value::F64() const {
|
||||
if (IsIdentity()) {
|
||||
return inst->Arg(0).F64();
|
||||
}
|
||||
ValidateAccess(Type::F64);
|
||||
return imm_f64;
|
||||
}
|
||||
|
||||
bool Value::operator==(const Value& other) const {
|
||||
if (type != other.type) {
|
||||
return false;
|
||||
|
|
|
@ -52,6 +52,7 @@ public:
|
|||
[[nodiscard]] u32 U32() const;
|
||||
[[nodiscard]] f32 F32() const;
|
||||
[[nodiscard]] u64 U64() const;
|
||||
[[nodiscard]] f64 F64() const;
|
||||
|
||||
[[nodiscard]] bool operator==(const Value& other) const;
|
||||
[[nodiscard]] bool operator!=(const Value& other) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue