Files
UnrealEngineUWP/Engine/Source/Runtime/RenderCore/Private/RayTracingInstanceCopyShader.cpp
Marc Audy bc88b73a29 Merge Release-Engine-Staging to Main @ CL# 15151250
Represents UE4/Main @ 15133763

[CL 15158774 by Marc Audy in ue5-main branch]
2021-01-21 16:22:06 -04:00

14 lines
655 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "RayTracingInstanceCopyShader.h"
#include "ShaderParameterUtils.h"
#include "RendererInterface.h"
#if RHI_RAYTRACING
IMPLEMENT_SHADER_TYPE3(RayTracingInstanceCopyCS, SF_Compute);
#endif //RHI_RAYTRACING
bool RayTracingInstanceCopyCS::ShouldCompilePermutation(const FGlobalShaderPermutationParameters& Parameters)
{
return (ShouldCompileRayTracingShadersForProject(Parameters.Platform) && RHISupportsComputeShaders(Parameters.Platform) && !(Parameters.Platform == EShaderPlatform::SP_METAL || Parameters.Platform == EShaderPlatform::SP_METAL_TVOS || IsMobilePlatform(Parameters.Platform)));
}