LLGL 0.05 Beta
Loading...
Searching...
No Matches
LLGL::ShaderMacro Struct Reference

Shader macro structure with name and optional body definition. More...

#include <ShaderFlags.h>

Public Member Functions

 ShaderMacro ()=default
 ShaderMacro (const char *name, const char *definition=nullptr)
 Constructor to initialize the shader macro with a name and an optional body definition.

Public Attributes

const char * name = nullptr
 Specifies the name of the macro. This must not be null.
const char * definition = nullptr
 Specifies the macro definition. If this is null, the macro has no body definition.

Detailed Description

Shader macro structure with name and optional body definition.

See also
ShaderDescriptor::defines

Constructor & Destructor Documentation

◆ ShaderMacro() [1/2]

LLGL::ShaderMacro::ShaderMacro ( )
default

◆ ShaderMacro() [2/2]

LLGL::ShaderMacro::ShaderMacro ( const char * name,
const char * definition = nullptr )
inline

Constructor to initialize the shader macro with a name and an optional body definition.

Member Data Documentation

◆ definition

const char* LLGL::ShaderMacro::definition = nullptr

Specifies the macro definition. If this is null, the macro has no body definition.

◆ name

const char* LLGL::ShaderMacro::name = nullptr

Specifies the name of the macro. This must not be null.


The documentation for this struct was generated from the following file: