UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
CapsuleShadowRendering.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3/*=============================================================================
4 CapsuleShadowRendering.h
5=============================================================================*/
6
7#pragma once
8
9#include "CoreMinimal.h"
11#include "RenderUtils.h"
12
16
18{
19 return GCapsuleShadows && (!IsMobilePlatform(ShaderPlatform) || IsMobileCapsuleShadowsEnabled(ShaderPlatform));
20}
21
23{
24 return GCapsuleDirectShadows && IsCapsuleShadowsEnabled(ShaderPlatform) && (!IsMobilePlatform(ShaderPlatform) || IsMobileCapsuleDirectShadowsEnabled(ShaderPlatform));
25}
26
28{
29 return GCapsuleIndirectShadows && IsCapsuleShadowsEnabled(ShaderPlatform) && !IsMobilePlatform(ShaderPlatform);
30}
bool IsCapsuleDirectShadowsEnabled(FStaticShaderPlatform ShaderPlatform)
Definition CapsuleShadowRendering.h:22
int32 GCapsuleShadows
Definition CapsuleShadowRendering.cpp:36
int32 GCapsuleIndirectShadows
Definition CapsuleShadowRendering.cpp:52
bool IsCapsuleShadowsEnabled(FStaticShaderPlatform ShaderPlatform)
Definition CapsuleShadowRendering.h:17
bool SupportsCapsuleIndirectShadows(FStaticShaderPlatform ShaderPlatform)
Definition CapsuleShadowRendering.h:27
int32 GCapsuleDirectShadows
Definition CapsuleShadowRendering.cpp:44
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
bool IsMobilePlatform(const FStaticShaderPlatform Platform)
Definition DataDrivenShaderPlatformInfo.h:928
RENDERCORE_API bool IsMobileCapsuleDirectShadowsEnabled(const FStaticShaderPlatform Platform)
Definition RenderUtils.cpp:574
RENDERCORE_API bool IsMobileCapsuleShadowsEnabled(const FStaticShaderPlatform Platform)
Definition RenderUtils.cpp:568
Definition AndroidStaticShaderPlatform.inl:18