MCPcopy Create free account
hub / github.com/KhronosGroup/glslang / buildAttributeReflection

Method buildAttributeReflection

glslang/MachineIndependent/reflection.cpp:1137–1146  ·  view source on GitHub ↗

Track any required attribute reflection, such as compute shader numthreads.

Source from the content-addressed store, hash-verified

1135// Track any required attribute reflection, such as compute shader numthreads.
1136//
1137void TReflection::buildAttributeReflection(EShLanguage stage, const TIntermediate& intermediate)
1138{
1139 if (stage == EShLangCompute) {
1140 // Remember thread dimensions
1141 for (int dim=0; dim<3; ++dim) {
1142 localSize[dim] = intermediate.getLocalSize(dim);
1143 tileShadingRateQCOM[dim] = intermediate.getTileShadingRateQCOM(dim);
1144 }
1145 }
1146}
1147
1148// build counter block index associations for buffers
1149void TReflection::buildCounterIndices(const TIntermediate& intermediate)

Callers

nothing calls this directly

Calls 2

getLocalSizeMethod · 0.45

Tested by

no test coverage detected