Home -> IShaderProgram -> LoadStateBufferLayoutFromShader
Description
The LoadStateBufferLayoutFromShader method attempts to load the layout of the specified state buffer into an IStateBufferLayout.
Usage
SuccessToken LoadStateBufferLayoutFromShader(StateBufferId stateBufferId, IStateBufferLayout* stateBufferLayout) const;
Argument list
- stateBufferId [StateBufferId]
- The ID of the shader state buffer to inspect.
- stateBufferLayout [IStateBufferLayout*]
- The layout object that receives the shader-derived state buffer layout.
Return value
- [SuccessToken]
- True if the operation succeeded, false otherwise. An assertion will be raised in debug builds if the result is not tested.