MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / declareTex1D

Method declareTex1D

src/OpenColorIO/GpuShaderUtils.cpp:847–864  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

845}
846
847void 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
866void GpuShaderText::declareTex2D(const std::string & textureName,
867 unsigned descriptorSetIndex,

Callers 3

GetLut1DGPUShaderProgramFunction · 0.80
_Add_Reach_tableFunction · 0.80
_Add_Cusp_tableFunction · 0.80

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected