FOpenGLDynamicRHI::RHICreateBoundShaderState

FlushType: Thread safe, but varies depending on the RHI.

Windows
MacOS
Linux

Override Hierarchy

FDynamicRHI::RHICreateBoundShaderState()

FOpenGLDynamicRHI::RHICreateBoundShaderState()

References

Module

OpenGLDrv

Header

/Engine/Source/Runtime/OpenGLDrv/Public/OpenGLDrv.h

Include

#include "OpenGLDrv.h"

Syntax

virtual FBoundShaderStateRHIRef RHICreateBoundShaderState
(
    FRHIVertexDeclaration * VertexDeclaration,
    FRHIVertexShader * VertexShader,
    FRHIHullShader * HullShader,
    FRHIDomainShader * DomainShader,
    FRHIPixelShader * PixelShader,
    FRHIGeometryShader * GeometryShader
)

Remarks

Creates a bound shader state instance which encapsulates a decl, vertex shader, hull shader, domain shader and pixel shader 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 thread

Parameters

Parameter

Description

VertexDeclaration

existing vertex decl

VertexShader

existing vertex shader

HullShader

existing hull shader

DomainShader

existing domain shader

GeometryShader

existing geometry shader

PixelShader

existing pixel shader

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