2020-02-12 13:27:19 -05:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
|
|
#include "RayTracingInstanceCopyShader.h"
|
|
|
|
|
#include "ShaderParameterUtils.h"
|
|
|
|
|
#include "RendererInterface.h"
|
|
|
|
|
|
2021-01-21 16:22:06 -04:00
|
|
|
#if RHI_RAYTRACING
|
2020-02-12 13:27:19 -05:00
|
|
|
IMPLEMENT_SHADER_TYPE3(RayTracingInstanceCopyCS, SF_Compute);
|
2021-01-21 16:22:06 -04:00
|
|
|
#endif //RHI_RAYTRACING
|
2020-06-23 18:40:00 -04:00
|
|
|
|
|
|
|
|
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)));
|
|
|
|
|
}
|