Scripting API

Scripting API

ShaderFiles

Class in Abyss.Core, from Abyss.Core.

A game's shader file, by its extension: .wesl, WESL as Bevy 0.20's own shaders are written and as a new one is made, or .wgsl, which the engine composes as WESL too, WGSL being WESL with no imports or switches.

public static class ShaderFiles

Properties

Extensions

public static IReadOnlyList<string> Extensions { get; }

The extensions a shader file has: ShaderFiles.Extension, then plain WGSL's.

Methods

Is

public static bool Is(string path)

Whether a path names a shader, by its extension.

Parameters

  • path

Constants

Extension

public const string Extension = ".wesl"

The extension a shader is made with.