Skip to content

Commit

Permalink
~ Fix enum usage when compiling in C
Browse files Browse the repository at this point in the history
  • Loading branch information
REMqb authored and SirLynix committed Apr 30, 2024
1 parent a85cceb commit 97dfc07
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/CNZSL/DebugLevel.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#ifndef CNZSL_DEBUGLEVEL_H
#define CNZSL_DEBUGLEVEL_H

enum nzslDebugLevel
typedef enum
{
NZSL_DEBUG_NONE,

Expand All @@ -18,6 +18,6 @@ enum nzslDebugLevel
NZSL_DEBUG_REGULAR,

NZSL_DEBUG_MAX_ENUM = 0x7FFFFFFF
};
} nzslDebugLevel;

#endif /* CNZSL_DEBUGLEVEL_H */
4 changes: 2 additions & 2 deletions include/CNZSL/ShaderStageType.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
#ifndef CNZSL_SHADERSTAGETYPE_H
#define CNZSL_SHADERSTAGETYPE_H

enum nzslShaderStageType
typedef enum
{
NZSL_STAGE_COMPUTE,
NZSL_STAGE_FRAGMENT,
NZSL_STAGE_VERTEX,

NZSL_STAGE_MAX_ENUM = 0x7FFFFFFF
};
} nzslShaderStageType;

#endif /* CNZSL_SHADERSTAGETYPE_H */

0 comments on commit 97dfc07

Please sign in to comment.