Files
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05: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