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

Function AtMostOncePerId

source/val/validate_decorations.cpp:1611–1614  ·  view source on GitHub ↗

Returns true if |decoration| cannot be applied to the same id more than once.

Source from the content-addressed store, hash-verified

1609
1610// Returns true if |decoration| cannot be applied to the same id more than once.
1611bool AtMostOncePerId(spv::Decoration decoration) {
1612 return decoration != spv::Decoration::UserSemantic &&
1613 decoration != spv::Decoration::FuncParamAttr;
1614}
1615
1616// Returns true if |decoration| cannot be applied to the same member more than
1617// once.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected