Table of Contents

Class BoolKeyword

Namespace
Gamelogic.Fx
Assembly
Gamelogic.Fx.dll

A serialized bool that drives a single shader_feature keyword when true. Subclass and override Keyword to name the keyword - the identity is code, not serialized data, so it can never drift from a renamed shader keyword.

[Serializable]
public abstract class BoolKeyword : IShaderFeatureKeyword
Inheritance
BoolKeyword
Implements
Derived
Inherited Members

Properties

ActiveKeywords

The shader_feature keywords currently active, given this field's current value.

public IEnumerable<string> ActiveKeywords { get; }

Property Value

IEnumerable<string>

Keyword

The shader_feature keyword this drives.

public abstract string Keyword { get; }

Property Value

string

Value

The current bool value.

public bool Value { get; set; }

Property Value

bool

Operators

implicit operator bool(BoolKeyword)

public static implicit operator bool(BoolKeyword boolKeyword)

Parameters

boolKeyword BoolKeyword

Returns

bool