Skip to content

Commit

Permalink
Solved Compatibility bugs based on User Feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasFratzl committed Mar 1, 2024
1 parent e707a60 commit e0e39eb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
#include "RenderGraphUtils.h"
#include "RenderTargetPool.h"
#include "RHIGPUReadback.h"
#include "RHIDefinitions.h"
#include "TextureRenderTarget2DArrayResource.h"
#include "Animation/AnimationPoseData.h"
#include "AssetRegistry/AssetRegistryModule.h"
#include "Async/Async.h"
#include "Engine/Texture2DArray.h"
#include "Engine/TextureRenderTarget2D.h"
#include "Engine/TextureRenderTarget2DArray.h"
#include "Engine/Private/Rendering/Texture2DArrayResource.h"
#include "GameFramework/Actor.h"
#include "Interfaces/ITargetPlatform.h"
#include "Interfaces/ITargetPlatformManagerModule.h"
Expand Down Expand Up @@ -1329,11 +1329,7 @@ class TURBOSEQUENCE_HELPERMODULE_LF_API FTurboSequence_Helper_Lf
const EPixelFormat& Format, const FStaticShaderPlatform& ShaderPlatform)
{
ETextureCreateFlags TexCreateFlags = TexCreate_ShaderResource | TexCreate_RenderTargetable | TexCreate_UAV;

if (!IsVulkanPlatform(ShaderPlatform))
{
TexCreateFlags |= TexCreate_ReduceMemoryWithTilingMode;
}


// Create the texture description
// here we straight define PF_FloatRGBA to have a float4 value in the shader
Expand Down Expand Up @@ -1507,11 +1503,6 @@ class TURBOSEQUENCE_HELPERMODULE_LF_API FTurboSequence_Helper_Lf

ETextureCreateFlags TexCreateFlags = TexCreate_ShaderResource | TexCreate_RenderTargetable | TexCreate_UAV;

if (!IsVulkanPlatform(ShaderPlatform))
{
TexCreateFlags |= TexCreate_ReduceMemoryWithTilingMode;
}


const FPooledRenderTargetDesc RenderTargetDescription = FPooledRenderTargetDesc::Create2DDesc(
RenderTargetResource->GetSizeXY(),
Expand Down Expand Up @@ -1559,11 +1550,6 @@ class TURBOSEQUENCE_HELPERMODULE_LF_API FTurboSequence_Helper_Lf

ETextureCreateFlags TexCreateFlags = TexCreate_ShaderResource | TexCreate_RenderTargetable | TexCreate_UAV;

if (!IsVulkanPlatform(ShaderPlatform))
{
TexCreateFlags |= TexCreate_ReduceMemoryWithTilingMode;
}


const FPooledRenderTargetDesc RenderTargetDescription = FPooledRenderTargetDesc::Create2DArrayDesc(
RenderTargetResource->GetSizeXY(),
Expand Down Expand Up @@ -1600,11 +1586,6 @@ class TURBOSEQUENCE_HELPERMODULE_LF_API FTurboSequence_Helper_Lf

ETextureCreateFlags TexCreateFlags = TexCreate_ShaderResource | TexCreate_RenderTargetable | TexCreate_UAV;

if (!IsVulkanPlatform(ShaderPlatform))
{
TexCreateFlags |= TexCreate_ReduceMemoryWithTilingMode;
}


const FPooledRenderTargetDesc Desc = FPooledRenderTargetDesc::Create2DArrayDesc(
Texture->GetSizeXY(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ public TurboSequence_HelperModule_Lf(ReadOnlyTargetRules Target) : base(Target)
PrivateDependencyModuleNames.AddRange(
new string[]
{
"CoreUObject"
"CoreUObject",
"RenderCore",
"Renderer",
"RHI",
}
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ public TurboSequence_Shader_Lf(ReadOnlyTargetRules Target) : base(Target)
new string[]
{
"Core", "TurboSequence_HelperModule_Lf",
// "RenderCore"
"Renderer",
"RHI",
"RenderCore",
}
);

Expand Down

0 comments on commit e0e39eb

Please sign in to comment.