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

Function isPackingHlsl

source/opt/struct_packing_pass.cpp:112–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112static bool isPackingHlsl(StructPackingPass::PackingRules rules) {
113 switch (rules) {
114 case StructPackingPass::PackingRules::HlslCbuffer:
115 case StructPackingPass::PackingRules::HlslCbufferPackOffset:
116 return true;
117 default:
118 return false;
119 }
120}
121
122static uint32_t getPackedBaseSize(const analysis::Type& type) {
123 switch (type.kind()) {

Callers 2

getPackedSizeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected