Helper function for initialize(), when adding context-independent built-in functions. Add all the subpass access functions for the given type.
| 7841 | // Add all the subpass access functions for the given type. |
| 7842 | // |
| 7843 | void 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(), |
nothing calls this directly
no test coverage detected