ShaderNode: Add inputs
This commit is contained in:
@@ -1,5 +1,16 @@
|
||||
#include <ShaderGraph.hpp>
|
||||
|
||||
inline auto ShaderGraph::GetInput(std::size_t inputIndex) const -> const InputEntry&
|
||||
{
|
||||
assert(inputIndex < m_inputs.size());
|
||||
return m_inputs[inputIndex];
|
||||
}
|
||||
|
||||
inline auto ShaderGraph::GetInputs() const -> const std::vector<InputEntry>&
|
||||
{
|
||||
return m_inputs;
|
||||
}
|
||||
|
||||
inline QtNodes::FlowScene& ShaderGraph::GetScene()
|
||||
{
|
||||
return m_flowScene;
|
||||
@@ -11,7 +22,7 @@ inline auto ShaderGraph::GetTexture(std::size_t textureIndex) const -> const Tex
|
||||
return m_textures[textureIndex];
|
||||
}
|
||||
|
||||
inline auto ShaderGraph::GetTextures() -> const std::vector<TextureEntry>&
|
||||
inline auto ShaderGraph::GetTextures() const -> const std::vector<TextureEntry>&
|
||||
{
|
||||
return m_textures;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user