Files
UnrealEngine/Engine/Plugins/Media/PixelCapture/Source/PixelCaptureShaders/Public/RGBToYUVShader.h
2025-05-18 13:04:45 +08:00

27 lines
593 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "RHI.h"
#include "RHIResources.h"
#include "RHICommandList.h"
#include "RHIStaticStates.h"
struct FRGBToYUVShaderParameters
{
FTextureRHIRef SourceTexture;
FIntPoint DestPlaneYDimensions;
FIntPoint DestPlaneUVDimensions;
FUnorderedAccessViewRHIRef DestPlaneY;
FUnorderedAccessViewRHIRef DestPlaneU;
FUnorderedAccessViewRHIRef DestPlaneV;
};
class PIXELCAPTURESHADERS_API FRGBToYUVShader
{
public:
static void Dispatch(FRHICommandListImmediate& RHICmdList, const FRGBToYUVShaderParameters& InParameters);
};