| 845 | } |
| 846 | |
| 847 | void GpuShaderText::declareTex1D(const std::string & textureName, |
| 848 | unsigned descriptorSetIndex, |
| 849 | unsigned textureIndex) |
| 850 | { |
| 851 | std::string textureDecl, samplerDecl; |
| 852 | getTexDecl<1>(m_lang, textureName, getSamplerName(textureName), textureDecl, samplerDecl, |
| 853 | descriptorSetIndex, textureIndex); |
| 854 | |
| 855 | if (!textureDecl.empty()) |
| 856 | { |
| 857 | newLine() << textureDecl; |
| 858 | } |
| 859 | |
| 860 | if (!samplerDecl.empty()) |
| 861 | { |
| 862 | newLine() << samplerDecl; |
| 863 | } |
| 864 | } |
| 865 | |
| 866 | void GpuShaderText::declareTex2D(const std::string & textureName, |
| 867 | unsigned descriptorSetIndex, |
no test coverage detected