FOpenGLDynamicRHI::RHICreateBoundShaderState

Override Hierarchy

FDynamicRHI::RHICreateBoundShaderState()

FOpenGLDynamicRHI::RHICreateBoundShaderState()

Syntax

virtual FBoundShaderStateRHIRef RHICreateBoundShaderState
(
    FVertexDeclarationRHIParamRef VertexDeclaration,
    FVertexShaderRHIParamRef VertexShader,
    FHullShaderRHIParamRef HullShader,
    FDomainShaderRHIParamRef DomainShader,
    FPixelShaderRHIParamRef PixelShader,
    FGeometryShaderRHIParamRef 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

References

Module

OpenGLDrv

Header

Runtime/OpenGLDrv/Public/OpenGLDrv.h