Table of Contents

Enum ShaderFormat

Namespace
ShadowDusk.Core
Assembly
ShadowDusk.Core.dll

The source language ShaderFormatDetector recognized a shader as.

public enum ShaderFormat

Fields

FxEffect = 1

An HLSL effect (.fx): source with a technique block.

Glsl = 3

A fragment shader in GLSL: a ShaderToy-style mainImage entry, or a plain-GLSL parameterless void main(). Converted by the separate ShadowDusk.ShaderToy package.

Slang = 2

HLSL-compatible Slang: source with a [shader("...")] entry attribute, or a Slang-only import / module declaration. A file that is valid as both Slang and an .fx effect (it has a technique block) is reported as FxEffect.

Unknown = 0

Not a shader language ShadowDusk reads, or ambiguous (see IsAmbiguous).