Table of Contents

Class GlobalInitializers

Namespace
ShadowDusk.HLSL
Assembly
ShadowDusk.HLSL.dll
public sealed record GlobalInitializers : IEquatable<GlobalInitializers>
Inheritance
GlobalInitializers
Implements
Inherited Members

Constructors

GlobalInitializers(IReadOnlyDictionary<string, GlobalInitializerDefault>, IReadOnlyList<GlobalInitializerFailure>, string?)

public GlobalInitializers(IReadOnlyDictionary<string, GlobalInitializerDefault> Defaults, IReadOnlyList<GlobalInitializerFailure> Failures, string? CompilerPredefinedMacro = null)

Parameters

Defaults IReadOnlyDictionary<string, GlobalInitializerDefault>

Name -> default, for every initializer that was evaluated (last declaration wins).

Failures IReadOnlyList<GlobalInitializerFailure>

Every initializer on a possible uniform that could not be evaluated.

CompilerPredefinedMacro string

The first conditional that tested a macro only the compiler defines (__HLSL_VERSION ...), or null. The managed preprocessor evaluated it as undefined, so the branch it picked may not be the one DXC compiled and every default read from it is unverified.

Properties

CompilerPredefinedMacro

The first conditional that tested a macro only the compiler defines (__HLSL_VERSION ...), or null. The managed preprocessor evaluated it as undefined, so the branch it picked may not be the one DXC compiled and every default read from it is unverified.

public string? CompilerPredefinedMacro { get; init; }

Property Value

string

Defaults

Name -> default, for every initializer that was evaluated (last declaration wins).

public IReadOnlyDictionary<string, GlobalInitializerDefault> Defaults { get; init; }

Property Value

IReadOnlyDictionary<string, GlobalInitializerDefault>

Failures

Every initializer on a possible uniform that could not be evaluated.

public IReadOnlyList<GlobalInitializerFailure> Failures { get; init; }

Property Value

IReadOnlyList<GlobalInitializerFailure>