| 864 | } |
| 865 | |
| 866 | void GpuShaderText::declareTex2D(const std::string & textureName, |
| 867 | unsigned descriptorSetIndex, |
| 868 | unsigned textureIndex) |
| 869 | { |
| 870 | std::string textureDecl, samplerDecl; |
| 871 | getTexDecl<2>(m_lang, textureName, getSamplerName(textureName), textureDecl, samplerDecl, |
| 872 | descriptorSetIndex, textureIndex); |
| 873 | |
| 874 | if (!textureDecl.empty()) |
| 875 | { |
| 876 | newLine() << textureDecl; |
| 877 | } |
| 878 | |
| 879 | if (!samplerDecl.empty()) |
| 880 | { |
| 881 | newLine() << samplerDecl; |
| 882 | } |
| 883 | } |
| 884 | |
| 885 | void GpuShaderText::declareTex3D(const std::string& textureName, |
| 886 | unsigned descriptorSetIndex, |
no test coverage detected