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

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback