mirror of
https://git.suyu.dev/suyu/sirit.git
synced 2024-12-22 20:22:02 +00:00
parent
bb6a3421d2
commit
58c5406436
2 changed files with 1 additions and 19 deletions
|
@ -920,15 +920,6 @@ public:
|
||||||
Id OpImageQuerySamples(Id result_type, Id image);
|
Id OpImageQuerySamples(Id result_type, Id image);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
struct HashOp {
|
|
||||||
std::size_t operator()(const std::unique_ptr<Op>& op) const noexcept;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct EqualOp {
|
|
||||||
bool operator()(const std::unique_ptr<Op>& lhs, const std::unique_ptr<Op>& rhs) const
|
|
||||||
noexcept;
|
|
||||||
};
|
|
||||||
|
|
||||||
Id AddCode(std::unique_ptr<Op> op);
|
Id AddCode(std::unique_ptr<Op> op);
|
||||||
|
|
||||||
Id AddCode(spv::Op opcode, std::optional<std::uint32_t> id = {});
|
Id AddCode(spv::Op opcode, std::optional<std::uint32_t> id = {});
|
||||||
|
@ -954,7 +945,7 @@ private:
|
||||||
std::vector<std::unique_ptr<Op>> execution_modes;
|
std::vector<std::unique_ptr<Op>> execution_modes;
|
||||||
std::vector<std::unique_ptr<Op>> debug;
|
std::vector<std::unique_ptr<Op>> debug;
|
||||||
std::vector<std::unique_ptr<Op>> annotations;
|
std::vector<std::unique_ptr<Op>> annotations;
|
||||||
std::unordered_set<std::unique_ptr<Op>, HashOp, EqualOp> declarations;
|
std::unordered_set<std::unique_ptr<Op>> declarations;
|
||||||
std::vector<Id> sorted_declarations;
|
std::vector<Id> sorted_declarations;
|
||||||
|
|
||||||
std::vector<Id> global_variables;
|
std::vector<Id> global_variables;
|
||||||
|
|
|
@ -20,15 +20,6 @@ static void WriteSet(Stream& stream, const T& set) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
std::size_t Module::HashOp::operator()(const std::unique_ptr<Op>& op) const noexcept {
|
|
||||||
return op->Hash();
|
|
||||||
}
|
|
||||||
|
|
||||||
bool Module::EqualOp::operator()(const std::unique_ptr<Op>& lhs,
|
|
||||||
const std::unique_ptr<Op>& rhs) const noexcept {
|
|
||||||
return *lhs == *rhs;
|
|
||||||
}
|
|
||||||
|
|
||||||
Module::Module(u32 version) : version(version) {}
|
Module::Module(u32 version) : version(version) {}
|
||||||
|
|
||||||
Module::~Module() = default;
|
Module::~Module() = default;
|
||||||
|
|
Loading…
Reference in a new issue