MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / IsUniqueType

Method IsUniqueType

source/opt/types.cpp:89–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89bool Type::IsUniqueType() const {
90 switch (kind_) {
91 case kPointer:
92 case kStruct:
93 case kArray:
94 case kRuntimeArray:
95 case kNodePayloadArrayAMDX:
96 return false;
97 default:
98 return true;
99 }
100}
101
102std::unique_ptr<Type> Type::Clone() const {
103 std::unique_ptr<Type> type;

Callers 2

RemoveIdMethod · 0.80
TESTFunction · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64