Files
2025-05-18 13:04:45 +08:00

19 lines
683 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "NNEHlslShadersSoftmaxCS.h"
#include "NNE.h"
namespace UE::NNEHlslShaders::Internal
{
void TSoftmaxCS::ModifyCompilationEnvironment(const FGlobalShaderPermutationParameters& InParameters, FShaderCompilerEnvironment& OutEnvironment)
{
FGlobalShader::ModifyCompilationEnvironment(InParameters, OutEnvironment);
OutEnvironment.SetDefine(TEXT("THREADGROUP_SIZE_X"), FSoftmaxConstants::NUM_GROUP_THREADS);
FPermutationDomain PermutationVector(InParameters.PermutationId);
}
IMPLEMENT_GLOBAL_SHADER(TSoftmaxCS, "/NNEHlslShaders/NNEHlslShadersSoftmax.usf", "Softmax", SF_Compute);
} // UE::NNEHlslShaders::Internal