FYCbCrConvertPS

Inheritance Hierarchy

Syntax

class FYCbCrConvertPS : public FGlobalShader

Remarks

Pixel shader to convert a PS4 YCbCr texture to RGBA.

This shader expects a separate chroma and luma plane stored in two textures in PF_B8G8R8A8 format. The full-size luma plane contains the Y-components. The half-size chroma plane contains the UV components in the following memory layout: [U0, V0][U1, V1]

Constructors

Name Description

Public function

FYCbCrConvertPS()

Public function

FYCbCrConvertPS

(
    const ShaderMetaType::CompiledShade ...
)

Functions

Name Description

Public function Static

FShader *...

 

ConstructCompiledInstance

(
    const ShaderMetaType::CompiledShade ...
)

Public function Static

FShader *...

 

ConstructSerializedInstance()

Public function

void

 

SetParameters

(
    FRHICommandList & RHICmdList,
    TRefCountPtr < FRHITexture2D > LumaT...,
    TRefCountPtr < FRHITexture2D > CbCrT...,
    const FMatrix & ColorTransform,
    const FVector & YUVOffset,
    bool SrgbToLinear
)

Public function Static

bool

 

ShouldCompilePermutation

(
    const FGlobalShaderPermutationParam ...
)

Overridden from FShader

Name Description

Public function Virtual Const

uint32

 

GetTypeSize()

Returns the size of the concrete type of this shader.

Public function Virtual

bool

 

Serialize

(
    FArchive & Ar
)

Typedefs

Constants

Name

Description

StaticType

References

Module

UtilityShaders

Header

Runtime/UtilityShaders/Public/MediaShaders.h