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

Function isPackingScalar

source/opt/struct_packing_pass.cpp:102–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102static bool isPackingScalar(StructPackingPass::PackingRules rules) {
103 switch (rules) {
104 case StructPackingPass::PackingRules::Scalar:
105 case StructPackingPass::PackingRules::ScalarEnhancedLayout:
106 return true;
107 default:
108 return false;
109 }
110}
111
112static bool isPackingHlsl(StructPackingPass::PackingRules rules) {
113 switch (rules) {

Callers 2

getPackedAlignmentMethod · 0.85
getPackedSizeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected