ShaderNode: Add texture support

This commit is contained in:
Lynix
2020-05-22 15:39:10 +02:00
parent effaa9b88f
commit 33c8fe2562
20 changed files with 493 additions and 260 deletions

View File

@@ -5,7 +5,14 @@ inline QtNodes::FlowScene& ShaderGraph::GetScene()
return m_flowScene;
}
inline auto ShaderGraph::GetTexture(std::size_t textureIndex) const -> const TextureEntry&
{
assert(textureIndex < m_textures.size());
return m_textures[textureIndex];
}
inline auto ShaderGraph::GetTextures() -> const std::vector<TextureEntry>&
{
return m_textures;
}