csharp
public readonly record struct EffectPushConstantOne push-constant range the pipeline layout declares.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
The stages are not decoration. A push has to name every stage of every range it overlaps, so a caller that pushed to the vertex stage alone against a range the shader declared for vertex and fragment is refused — which is what a host guessing at them does.
Fields and properties (4)
public ShaderStage StagesWhich stages the range covers.
public int OffsetWhere it starts, in bytes.
public int SizeHow many bytes it is.
public ImmutableArray<EffectPushConstantMemberInfo> MembersThe block's members, so a caller can find one by the name the shader gave it.
Methods (2)
public EffectPushConstant(ShaderStage Stages, int Offset, int Size)One push-constant range the pipeline layout declares.
public int? OffsetOf(string name)Where starts within this range, or null when it has none.
Used by (7)
- CompilesVixen.Rendering.Tests
- EffectVixen.Shaders
- EffectLoaderVixen.Shaders
- MeshRenderFeatureVixen.Rendering
- MotionVectorRenderFeatureVixen.Rendering
- SurfaceCardCaptureDeviceTestsVixen.Graphics.Golden.Tests
- TransformRenderFeatureVixen.Rendering