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

Method getArrayLength

source/opt/struct_packing_pass.cpp:312–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

310}
311
312uint32_t StructPackingPass::getArrayLength(
313 const analysis::Array& arrayType) const {
314 return getConstantInt(arrayType.LengthId());
315}
316
317uint32_t StructPackingPass::getConstantInt(spv::Id id) const {
318 auto it = constantsMap_.find(id);

Callers

nothing calls this directly

Calls 1

LengthIdMethod · 0.80

Tested by

no test coverage detected