Graph-ify camera stage render passes
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include "RHI/RHICommandList.h"
|
||||
#include "Rendering/FrameData/RendererListUtils.h"
|
||||
#include "Rendering/Internal/RenderSurfacePipelineUtils.h"
|
||||
#include "Rendering/Internal/RenderPassGraphUtils.h"
|
||||
#include "Rendering/Extraction/RenderSceneExtractor.h"
|
||||
#include "Rendering/RenderSurface.h"
|
||||
#include "Resources/Mesh/Mesh.h"
|
||||
@@ -57,6 +58,22 @@ bool BuiltinObjectIdPass::Initialize(const RenderContext& context) {
|
||||
return context.IsValid();
|
||||
}
|
||||
|
||||
bool BuiltinObjectIdPass::SupportsRenderGraph() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
bool BuiltinObjectIdPass::RecordRenderGraph(
|
||||
const RenderPassRenderGraphContext& context) {
|
||||
return Internal::RecordRasterRenderPass(
|
||||
*this,
|
||||
context,
|
||||
{
|
||||
false,
|
||||
true,
|
||||
true
|
||||
});
|
||||
}
|
||||
|
||||
bool BuiltinObjectIdPass::Execute(const RenderPassContext& context) {
|
||||
if (!context.renderContext.IsValid()) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user