| FDynamicRHI::RHICreateBoundShaderState()
|
Module |
|
Header |
/Engine/Source/Runtime/RHI/Public/DynamicRHI.h |
Include |
#include "DynamicRHI.h" |
FBoundShaderStateRHIRef RHICreateBoundShaderState
(
FRHIVertexDeclaration * VertexDeclaration,
FRHIVertexShader * VertexShader,
FRHIHullShader * HullShader,
FRHIDomainShader * DomainShader,
FRHIPixelShader * PixelShader,
FRHIGeometryShader * GeometryShader
)
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
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 |