Files
UnrealEngineUWP/Engine/Shaders/Private/Tools/DrawTexture.usf
zach bethel 3a2b13ceb1 Added draw texture utility to RenderGraphUtils (used for copying with format conversions).
#preflight 624efd042b29ecd3d7516cd2

[CL 19670171 by zach bethel in ue5-main branch]
2022-04-07 11:26:08 -04:00

11 lines
265 B
Plaintext

// Copyright Epic Games, Inc. All Rights Reserved.
#include "../Common.ush"
Texture2D InputTexture;
uint2 InputOffset;
float4 DrawTexturePS(float4 SvPosition : SV_POSITION) : SV_Target0
{
return InputTexture.Load(uint3((uint2)SvPosition.xy + InputOffset, 0));
}