Navigation
Unreal Engine C++ API Reference > Runtime > RHI > FDynamicRHI
- FDynamicRHI::RHICreateBoundShaderState()
- FNullDynamicRHI::RHICreateBoundShaderState()
- FVulkanDynamicRHI::RHICreateBoundShaderState()
- FOpenGLDynamicRHI::RHICreateBoundShaderState()
References
Module | RHI |
Header | /Engine/Source/Runtime/RHI/Public/DynamicRHI.h |
Include | #include "DynamicRHI.h" |
FBoundShaderStateRHIRef RHICreateBoundShaderState
&40;
FRHIVertexDeclaration &42; VertexDeclaration,
FRHIVertexShader &42; VertexShader,
FRHIPixelShader &42; PixelShader,
FRHIGeometryShader &42; GeometryShader
&41;
Remarks
Creates a bound shader state instance which encapsulates a decl, vertex 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
Name | Description |
---|---|
VertexDeclaration | existing vertex decl |
VertexShader | existing vertex shader |
GeometryShader | existing geometry shader |
PixelShader | existing pixel shader |