Class GlslCompileOptions
- Namespace
- NeoVeldrid.SPIRV
- Assembly
- NeoVeldrid.SPIRV.dll
Controls the options for compiling from GLSL to SPIR-V.
public class GlslCompileOptions
- Inheritance
-
GlslCompileOptions
- Inherited Members
Constructors
GlslCompileOptions()
Constructs a new GlslCompileOptions with default properties.
public GlslCompileOptions()
GlslCompileOptions(bool, params MacroDefinition[])
Constructs a new GlslCompileOptions.
public GlslCompileOptions(bool debug, params MacroDefinition[] macros)
Parameters
debugboolmacrosMacroDefinition[]
Properties
Debug
Indicates whether the compiled output should preserve debug information. NOTE: If the resulting SPIR-V is intended to be used as the source of an OpenGL-style GLSL shader, then this property should be set to true.
public bool Debug { get; set; }
Property Value
Default
Gets a default GlslCompileOptions.
public static GlslCompileOptions Default { get; }
Property Value
Macros
An array of MacroDefinition which defines the set of preprocessor macros to define when compiling the GLSL source code.
public MacroDefinition[] Macros { get; set; }