Vixen
02b45cc4

EffectPushConstant

struct Core/Vixen.Shaders/Effect.cs:287
csharp
public readonly record struct EffectPushConstant

One 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 Stages

    Which stages the range covers.

  • public int Offset

    Where it starts, in bytes.

  • public int Size

    How many bytes it is.

  • public ImmutableArray<EffectPushConstantMemberInfo> Members

    The 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