Get RAPTOR

RaptorShaderResolution

One slot's resolved shader and where it came from.

NamespaceAssemblyKindStability
Raptor.EditorToolsRaptor.Editorstructpreview, since 0.1.0
public readonly struct RaptorShaderResolution

Constructors

RaptorShaderResolution

public RaptorShaderResolution(RaptorShaderSlot slot, Shader shader, RaptorShaderSource source)

Creates a resolution.

ParameterTypeDescription
slotRaptorShaderSlotThe slot asked for.
shaderShaderThe shader, or null.
sourceRaptorShaderSourceThe step that found it.

Fields

Shader

public readonly Shader Shader;

The shader to use, or null when Source is RaptorShaderSource.None.

Slot

public readonly RaptorShaderSlot Slot;

The slot asked for.

Source

public readonly RaptorShaderSource Source;

The step that found Shader.

Properties

AlphaClip

public bool AlphaClip { get; }

Whether the slot is alpha-tested (Cutout).

IsFallback

public bool IsFallback { get; }

Whether the slot fell back to URP/Lit. When true, the caller must set the surface state the slot needs (Transparent, AlphaClip) on the material.

Transparent

public bool Transparent { get; }

Whether the slot is alpha-blended (Glass).