49 TfToken const& GetMaterialTag()
const;
52 std::string
const& GetFragmentCode()
const;
55 std::string
const& GetVolumeCode()
const;
58 std::string
const& GetDisplacementCode()
const;
64 HdSt_MaterialParamVector
const& GetMaterialParams()
const;
67 struct TextureDescriptor
85 bool useTexturePrimToFindTexture;
90 using TextureDescriptorVector = std::vector<TextureDescriptor>;
93 TextureDescriptorVector
const& GetTextureDescriptors()
const;
97 std::string _fragmentSource;
98 std::string _volumeSource;
99 std::string _displacementSource;
101 HdSt_MaterialParamVector _materialParams;
102 TextureDescriptorVector _textureDescriptors;
103 HioGlslfxSharedPtr _surfaceGfx;
104 size_t _surfaceGfxHash;
105#ifdef PXR_MATERIALX_SUPPORT_ENABLED
106 MaterialX::ShaderPtr _materialXGfx;
HDST_API void ProcessMaterialNetwork(SdfPath const &materialId, HdMaterialNetworkMap const &hdNetworkMap, HdStResourceRegistry *resourceRegistry)
Process a material network topology and extract all the information we need from it.
Class to identify a texture file or a texture within the texture file (e.g., a frame in a movie).