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

Method addSubpassSampling

glslang/MachineIndependent/Initialize.cpp:7843–7852  ·  view source on GitHub ↗

Helper function for initialize(), when adding context-independent built-in functions. Add all the subpass access functions for the given type.

Source from the content-addressed store, hash-verified

7841// Add all the subpass access functions for the given type.
7842//
7843void TBuiltIns::addSubpassSampling(TSampler sampler, const TString& typeName, int /*version*/, EProfile /*profile*/)
7844{
7845 stageBuiltins[EShLangFragment].append(prefixes[sampler.type]);
7846 stageBuiltins[EShLangFragment].append("vec4 subpassLoad");
7847 stageBuiltins[EShLangFragment].append("(");
7848 stageBuiltins[EShLangFragment].append(typeName.c_str());
7849 if (sampler.isMultiSample())
7850 stageBuiltins[EShLangFragment].append(", int");
7851 stageBuiltins[EShLangFragment].append(");\n");
7852}
7853
7854//
7855// Helper function for add2ndGenerationSamplingImaging(),

Callers

nothing calls this directly

Calls 3

appendMethod · 0.80
c_strMethod · 0.80
isMultiSampleMethod · 0.80

Tested by

no test coverage detected