Vixen
02b45cc4

GrassScatterKeys

class
csharp
public static class GrassScatterKeys

Typed keys for shader GrassScatter.

Read the guide page for this →

Fields and properties (51)

  • public const string ShaderName

    The shader's name, as the effect system asks for it.

  • public static readonly PermutationKey<bool> RandomYaw

    Affects the generated code, so a distinct value is a distinct variant.

  • public static readonly PermutationKey<bool> LayerBound

    Affects the generated code, so a distinct value is a distinct variant.

  • public static readonly PermutationKey<bool> Arguments

    Affects the generated code, so a distinct value is a distinct variant.

  • public static readonly ParameterKey[] UsedPermutationKeys

    The permutation keys that actually change the generated code.

  • public static readonly ParameterKey<TextureViewHandle> HeightMap

    set 2, binding 1.

  • public const int HeightMapSet

    Which descriptor set holds heightMap.

  • public const uint HeightMapBinding

    Which binding within set 2 heightMap occupies.

  • public static readonly ParameterKey<TextureViewHandle> WeightMap

    set 2, binding 2.

  • public const int WeightMapSet

    Which descriptor set holds weightMap.

  • public const uint WeightMapBinding

    Which binding within set 2 weightMap occupies.

  • public static readonly ParameterKey<TextureViewHandle> HoleMap

    set 2, binding 3.

  • public const int HoleMapSet

    Which descriptor set holds holeMap.

  • public const uint HoleMapBinding

    Which binding within set 2 holeMap occupies.

  • public static readonly ParameterKey<SamplerHandle> HeightSampler

    set 2, binding 4.

  • public const int HeightSamplerSet

    Which descriptor set holds heightSampler.

  • public const uint HeightSamplerBinding

    Which binding within set 2 heightSampler occupies.

  • public static readonly ParameterKey<SamplerHandle> WeightSampler

    set 2, binding 5.

  • public const int WeightSamplerSet

    Which descriptor set holds weightSampler.

  • public const uint WeightSamplerBinding

    Which binding within set 2 weightSampler occupies.

  • public static readonly ParameterKey<SamplerHandle> HoleSampler

    set 2, binding 6.

  • public const int HoleSamplerSet

    Which descriptor set holds holeSampler.

  • public const uint HoleSamplerBinding

    Which binding within set 2 holeSampler occupies.

  • public static readonly ParameterKey<BufferHandle> Cells

    set 2, binding 7.

  • public const int CellsSet

    Which descriptor set holds cells.

  • public const uint CellsBinding

    Which binding within set 2 cells occupies.

  • public static readonly ParameterKey<BufferHandle> Instances

    set 2, binding 8, writable.

  • public const int InstancesSet

    Which descriptor set holds instances.

  • public const uint InstancesBinding

    Which binding within set 2 instances occupies.

  • public static readonly ParameterKey<BufferHandle> Counts

    set 2, binding 9, writable.

  • public const int CountsSet

    Which descriptor set holds counts.

  • public const uint CountsBinding

    Which binding within set 2 counts occupies.

  • public static readonly ParameterKey<BufferHandle> Commands

    set 2, binding 10, writable.

  • public const int CommandsSet

    Which descriptor set holds commands.

  • public const uint CommandsBinding

    Which binding within set 2 commands occupies.

  • public static readonly ParameterKey<int> WeightChannel

    weightChannel at byte 0.

  • public static readonly ParameterKey<Vector2> HeightMapSize

    heightMapSize at byte 8.

  • public static readonly ParameterKey<Vector2> HeightRange

    heightRange at byte 16.

  • public static readonly ParameterKey<float> MetresPerQuad

    metresPerQuad at byte 24.

  • public static readonly ParameterKey<Vector3> TerrainOrigin

    terrainOrigin at byte 32.

  • public static readonly ParameterKey<float> CellSize

    cellSize at byte 44.

  • public static readonly ParameterKey<int> GridSide

    gridSide at byte 48.

  • public static readonly ParameterKey<float> Jitter

    jitter at byte 52.

  • public static readonly ParameterKey<Vector2> WeightRange

    weightRange at byte 56.

  • public static readonly ParameterKey<Vector2> ScaleRange

    scaleRange at byte 64.

  • public static readonly ParameterKey<float> AlignToNormal

    alignToNormal at byte 72.

  • public static readonly ParameterKey<float> MaxSlope

    maxSlope at byte 76.

  • public static readonly ParameterKey<float> DensityScale

    densityScale at byte 80.

  • public const int ConstantBufferSize

    The uniform block's size in bytes — what to allocate.

  • public const int ConstantBufferSet

    Which descriptor set holds the uniform block.

  • public const uint ConstantBufferBinding

    Which binding within set 2 the uniform block occupies.

Used by (1)

  • GrassDispatchVixen.Rendering.Terrain