Class MgfxPassInfo
- Namespace
- ShadowDusk.Core
- Assembly
- ShadowDusk.Core.dll
One pass within a technique: its name, FX annotations, the vertex/pixel shader it binds
(by index into the effect's shader list, or -1 when absent), and its render state.
public sealed record MgfxPassInfo : IEquatable<MgfxPassInfo>
- Inheritance
-
MgfxPassInfo
- Implements
- Inherited Members
Constructors
MgfxPassInfo(string, IReadOnlyList<AnnotationInfo>, int, int, RenderStateBlock)
One pass within a technique: its name, FX annotations, the vertex/pixel shader it binds
(by index into the effect's shader list, or -1 when absent), and its render state.
public MgfxPassInfo(string Name, IReadOnlyList<AnnotationInfo> Annotations, int VertexShaderIndex, int PixelShaderIndex, RenderStateBlock RenderState)
Parameters
NamestringThe pass name.
AnnotationsIReadOnlyList<AnnotationInfo>FX annotations attached to the pass.
VertexShaderIndexintIndex of the vertex shader in the effect's shader list, or
-1if none.PixelShaderIndexintIndex of the pixel shader in the effect's shader list, or
-1if none.RenderStateRenderStateBlockThe render states declared in the pass.
Properties
Annotations
FX annotations attached to the pass.
public IReadOnlyList<AnnotationInfo> Annotations { get; init; }
Property Value
Name
The pass name.
public string Name { get; init; }
Property Value
PixelShaderIndex
Index of the pixel shader in the effect's shader list, or -1 if none.
public int PixelShaderIndex { get; init; }
Property Value
RenderState
The render states declared in the pass.
public RenderStateBlock RenderState { get; init; }
Property Value
VertexShaderIndex
Index of the vertex shader in the effect's shader list, or -1 if none.
public int VertexShaderIndex { get; init; }