ShaderNode: Add automatic variables
This commit is contained in:
@@ -6,6 +6,11 @@ inline auto ShaderGraph::GetInput(std::size_t inputIndex) const -> const InputEn
|
||||
return m_inputs[inputIndex];
|
||||
}
|
||||
|
||||
inline std::size_t ShaderGraph::GetInputCount() const
|
||||
{
|
||||
return m_inputs.size();
|
||||
}
|
||||
|
||||
inline auto ShaderGraph::GetInputs() const -> const std::vector<InputEntry>&
|
||||
{
|
||||
return m_inputs;
|
||||
@@ -27,6 +32,11 @@ inline auto ShaderGraph::GetTexture(std::size_t textureIndex) const -> const Tex
|
||||
return m_textures[textureIndex];
|
||||
}
|
||||
|
||||
inline std::size_t ShaderGraph::GetTextureCount() const
|
||||
{
|
||||
return m_textures.size();
|
||||
}
|
||||
|
||||
inline auto ShaderGraph::GetTextures() const -> const std::vector<TextureEntry>&
|
||||
{
|
||||
return m_textures;
|
||||
|
||||
Reference in New Issue
Block a user