FDynamicRHI::RHICreateGraphicsPipelineState

Creates a graphics pipeline state object (PSO) that represents a complete gpu pipeline for rendering.

Windows
MacOS
Linux

Override Hierarchy

FDynamicRHI::RHICreateGraphicsPipelineState()

FVulkanDynamicRHI::RHICreateGraphicsPipelineState()

References

Module

RHI

Header

/Engine/Source/Runtime/RHI/Public/DynamicRHI.h

Include

#include "DynamicRHI.h"

Syntax

virtual FGraphicsPipelineStateRHIRef RHICreateGraphicsPipelineState
(
    const FGraphicsPipelineStateInitializer & Initializer
)

Remarks

Creates a graphics pipeline state object (PSO) that represents a complete gpu pipeline for rendering. This function should be considered expensive to call at runtime and may cause hitches as pipelines are compiled.

Returns

FGraphicsPipelineStateRHIRef that can be bound for rendering; nullptr if the compilation fails. CAUTION: On certain RHI implementations (eg, ones that do not support runtime compilation) a compilation failure is a Fatal error and this function will not return. CAUTION: Even though this is marked as threadsafe, it is only valid to call from the render thread or the RHI thread. It need not be threadsafe unless the RHI support parallel translation. CAUTION: Platforms that support RHIThread but don't actually have a threadsafe implementation must flush internally with FScopedRHIThreadStaller StallRHIThread(FRHICommandListExecutor::GetImmediateCommandList()); when the call is from the render threadFlushType: Thread safe TODO: [PSO API] Make pure virtual

Parameters

Parameter

Description

Initializer

Descriptor object defining all the information needed to create the PSO, as well as behavior hints to the RHI.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss