Files
UnrealEngineUWP/Engine/Source/Runtime/RenderCore/Private/RayTracingInstanceCopyShader.cpp
Marc Audy 11f5b21210 Merging //UE5/Release-Engine-Staging @ 13752110 to Main (//UE5/Main)
#rnx

[CL 13753156 by Marc Audy in ue5-main branch]
2020-06-23 18:40:00 -04:00

12 lines
612 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "RayTracingInstanceCopyShader.h"
#include "ShaderParameterUtils.h"
#include "RendererInterface.h"
IMPLEMENT_SHADER_TYPE3(RayTracingInstanceCopyCS, SF_Compute);
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)));
}