You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#preflight 63b4f63e717a593ee714bfae [CL 23580147 by christopher waters in ue5-main branch]
42 lines
1.2 KiB
C
42 lines
1.2 KiB
C
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "PixelFormat.h"
|
|
#include "RenderGraphFwd.h"
|
|
#include "RHIFwd.h"
|
|
|
|
struct FBuildHZBAsyncComputeParams
|
|
{
|
|
FRDGPassRef Prerequisite = nullptr;
|
|
};
|
|
|
|
static constexpr EPixelFormat BuildHZBDefaultPixelFormat = PF_R16F;
|
|
|
|
void BuildHZB(
|
|
FRDGBuilder& GraphBuilder,
|
|
FRDGTextureRef SceneDepth,
|
|
FRDGTextureRef VisBufferTexture,
|
|
const FIntRect ViewRect,
|
|
ERHIFeatureLevel::Type FeatureLevel,
|
|
EShaderPlatform ShaderPlatform,
|
|
const TCHAR* ClosestHZBName,
|
|
FRDGTextureRef* OutClosestHZBTexture,
|
|
const TCHAR* FurthestHZBName,
|
|
FRDGTextureRef* OutFurthestHZBTexture,
|
|
EPixelFormat Format = BuildHZBDefaultPixelFormat,
|
|
const FBuildHZBAsyncComputeParams* AsyncComputeParams = nullptr);
|
|
|
|
// Build only the furthest HZB
|
|
void BuildHZBFurthest(
|
|
FRDGBuilder& GraphBuilder,
|
|
FRDGTextureRef SceneDepth,
|
|
FRDGTextureRef VisBufferTexture,
|
|
const FIntRect ViewRect,
|
|
ERHIFeatureLevel::Type FeatureLevel,
|
|
EShaderPlatform ShaderPlatform,
|
|
const TCHAR* FurthestHZBName,
|
|
FRDGTextureRef* OutFurthestHZBTexture,
|
|
EPixelFormat Format = BuildHZBDefaultPixelFormat,
|
|
const FBuildHZBAsyncComputeParams* AsyncComputeParams = nullptr);
|