Vixen
02b45cc4

ImpostorKeys

class
csharp
public static class ImpostorKeys

Typed keys for shader Impostor.

Read the guide page for this →

Fields and properties (27)

  • public const string ShaderName

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

  • public static readonly PermutationKey<bool> BlendViews

    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> AlbedoAtlas

    set 2, binding 1.

  • public const int AlbedoAtlasSet

    Which descriptor set holds albedoAtlas.

  • public const uint AlbedoAtlasBinding

    Which binding within set 2 albedoAtlas occupies.

  • public static readonly ParameterKey<TextureViewHandle> NormalAtlas

    set 2, binding 2.

  • public const int NormalAtlasSet

    Which descriptor set holds normalAtlas.

  • public const uint NormalAtlasBinding

    Which binding within set 2 normalAtlas occupies.

  • public static readonly ParameterKey<SamplerHandle> AtlasSampler

    set 2, binding 3.

  • public const int AtlasSamplerSet

    Which descriptor set holds atlasSampler.

  • public const uint AtlasSamplerBinding

    Which binding within set 2 atlasSampler occupies.

  • public static readonly ParameterKey<BufferHandle> Instances

    set 2, binding 4.

  • public const int InstancesSet

    Which descriptor set holds instances.

  • public const uint InstancesBinding

    Which binding within set 2 instances occupies.

  • public static readonly ParameterKey<Matrix4x4> ViewProjection

    viewProjection at byte 0.

  • public static readonly ParameterKey<Vector3> ViewPosition

    viewPosition at byte 64.

  • public static readonly ParameterKey<Vector3> WorldUp

    worldUp at byte 80.

  • public static readonly ParameterKey<float> AtlasSide

    atlas.side at byte 96.

  • public static readonly ParameterKey<float> AtlasCellSize

    atlas.cellSize at byte 100.

  • public static readonly ParameterKey<float> AtlasPadding

    atlas.padding at byte 104.

  • public static readonly ParameterKey<float> AtlasResolution

    atlas.resolution at byte 108.

  • public static readonly ParameterKey<float> Radius

    radius at byte 112.

  • public static readonly ParameterKey<float> Cutoff

    cutoff at byte 116.

  • 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.