mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader: Partially implement #define.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
committed by
Alexandre Julliard
parent
6b75fb7b9c
commit
9a1317ff0f
@@ -22,6 +22,7 @@
|
||||
#define __VKD3D_SHADER_PREPROC_H
|
||||
|
||||
#include "vkd3d_shader_private.h"
|
||||
#include "rbtree.h"
|
||||
|
||||
struct preproc_if_state
|
||||
{
|
||||
@@ -33,6 +34,12 @@ struct preproc_if_state
|
||||
bool seen_else;
|
||||
};
|
||||
|
||||
struct preproc_macro
|
||||
{
|
||||
struct rb_entry entry;
|
||||
char *name;
|
||||
};
|
||||
|
||||
struct preproc_ctx
|
||||
{
|
||||
void *scanner;
|
||||
@@ -44,6 +51,8 @@ struct preproc_ctx
|
||||
struct preproc_if_state *if_stack;
|
||||
size_t if_count, if_stack_size;
|
||||
|
||||
struct rb_tree macros;
|
||||
|
||||
int current_directive;
|
||||
|
||||
bool last_was_newline;
|
||||
@@ -52,6 +61,7 @@ struct preproc_ctx
|
||||
bool error;
|
||||
};
|
||||
|
||||
void preproc_free_macro(struct preproc_macro *macro) DECLSPEC_HIDDEN;
|
||||
void preproc_warning(struct preproc_ctx *ctx, const struct vkd3d_shader_location *loc,
|
||||
enum vkd3d_shader_error error, const char *format, ...) VKD3D_PRINTF_FUNC(4, 5) DECLSPEC_HIDDEN;
|
||||
|
||||
|
Reference in New Issue
Block a user