Vixen
02b45cc4
csharp
public readonly record struct UiShaders

The four shader modules a user interface is drawn with.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

⚠ Supplied rather than compiled here, and that is the seam. Turning shader source into modules belongs to Vixen.Shaders and to Raven. A caller hands over whatever it has, which is how the golden fixture drives this with hand-written GLSL and how Vixen.Editor.App drives it from Shaders/Ui.rvn. What this must not do is grow a compiler.

Fields and properties (6)

  • public ShaderHandle Vertex

    The one vertex stage all three pipelines share.

  • public ShaderHandle Box

    Rounded rectangles and borders, as a signed distance.

  • public ShaderHandle Text

    Glyphs, as a multi-channel distance field.

  • public ShaderHandle Solid

    Tessellated paths, flat.

  • public ShaderHandle Image

    The stage that samples a texture: an image, a video frame, a viewport.

  • public VertexLocations Locations

    Where the vertex stage reads UiVertex's four attributes: position, texture, colour, then shape.

Methods (1)

Used by (7)

  • UiHostHelloUi
  • UiFrameLifetimeTestsVixen.Graphics.Golden.Tests
  • UiImageTestsVixen.Graphics.Golden.Tests
  • UiRendererVixen.Ui.Renderer
  • VideoInUiTestsVixen.Video.Rendering.Tests
  • EditorHostVixen.Editor.Host
  • EditorPaneVixen.Editor.Host