Files
UnrealEngine/Engine/Source/ThirdParty/MaterialX/MaterialX-1.39.3/source/MaterialXGenShader/Nodes/ClosureCompoundNode.h
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

30 lines
799 B
C++

//
// Copyright Contributors to the MaterialX Project
// SPDX-License-Identifier: Apache-2.0
//
#ifndef MATERIALX_CLOSURECOMPOUNDNODE_H
#define MATERIALX_CLOSURECOMPOUNDNODE_H
#include <MaterialXGenShader/Nodes/CompoundNode.h>
#include <MaterialXGenShader/GenContext.h>
MATERIALX_NAMESPACE_BEGIN
/// Extending the CompoundNode with requirements for closures.
class MX_GENSHADER_API ClosureCompoundNode : public CompoundNode
{
public:
static ShaderNodeImplPtr create();
void addClassification(ShaderNode& node) const override;
void emitFunctionDefinition(const ShaderNode& node, GenContext& context, ShaderStage& stage) const override;
void emitFunctionCall(const ShaderNode& node, GenContext& context, ShaderStage& stage) const override;
};
MATERIALX_NAMESPACE_END
#endif