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

Method declareTex2D

src/OpenColorIO/GpuShaderUtils.cpp:866–883  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

864}
865
866void 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
885void GpuShaderText::declareTex3D(const std::string& textureName,
886 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