Files
UnrealEngine/Engine/Source/ThirdParty/MaterialX/MaterialX-1.38.10/source/MaterialXGenGlsl/Nodes/GeomPropValueNodeGlsl.h
2025-05-18 13:04:45 +08:00

40 lines
1.1 KiB
C++

//
// Copyright Contributors to the MaterialX Project
// SPDX-License-Identifier: Apache-2.0
//
#ifndef MATERIALX_GEOMPROPVALUENODEGLSL_H
#define MATERIALX_GEOMPROPVALUENODEGLSL_H
#include <MaterialXGenGlsl/GlslShaderGenerator.h>
MATERIALX_NAMESPACE_BEGIN
/// GeomPropValue node implementation for GLSL
class MX_GENGLSL_API GeomPropValueNodeGlsl : public GlslImplementation
{
public:
static ShaderNodeImplPtr create();
void createVariables(const ShaderNode& node, GenContext& context, Shader& shader) const override;
void emitFunctionCall(const ShaderNode& node, GenContext& context, ShaderStage& stage) const override;
bool isEditable(const ShaderInput& /*input*/) const override { return false; }
};
/// GeomPropValue node non-implementation for GLSL
class MX_GENGLSL_API GeomPropValueNodeGlslAsUniform : public GlslImplementation
{
public:
static ShaderNodeImplPtr create();
void createVariables(const ShaderNode& node, GenContext& context, Shader& shader) const override;
void emitFunctionCall(const ShaderNode& node, GenContext& context, ShaderStage& stage) const override;
};
MATERIALX_NAMESPACE_END
#endif