Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
6ccbccbb
Commit
6ccbccbb
authored
Jul 20, 2012
by
Matteo Bruni
Committed by
Alexandre Julliard
Jul 20, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dcompiler: Stub assignment parsing.
parent
fbb7e20f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
66 additions
and
0 deletions
+66
-0
d3dcompiler_private.h
dlls/d3dcompiler_43/d3dcompiler_private.h
+15
-0
hlsl.y
dlls/d3dcompiler_43/hlsl.y
+51
-0
No files found.
dlls/d3dcompiler_43/d3dcompiler_private.h
View file @
6ccbccbb
...
...
@@ -912,6 +912,21 @@ enum parse_unary_op
UNARY_OP_BITNOT
,
};
enum
parse_assign_op
{
ASSIGN_OP_ASSIGN
,
ASSIGN_OP_ADD
,
ASSIGN_OP_SUB
,
ASSIGN_OP_MUL
,
ASSIGN_OP_DIV
,
ASSIGN_OP_MOD
,
ASSIGN_OP_LSHIFT
,
ASSIGN_OP_RSHIFT
,
ASSIGN_OP_AND
,
ASSIGN_OP_OR
,
ASSIGN_OP_XOR
,
};
struct
hlsl_parse_ctx
{
const
char
**
source_files
;
...
...
dlls/d3dcompiler_43/hlsl.y
View file @
6ccbccbb
...
...
@@ -207,6 +207,7 @@ static unsigned int components_count_expr_list(struct list *list)
struct parse_parameter parameter;
struct parse_variable_def *variable_def;
enum parse_unary_op unary_op;
enum parse_assign_op assign_op;
}
%token KW_BLENDSTATE
...
...
@@ -352,6 +353,7 @@ static unsigned int components_count_expr_list(struct list *list)
%type <instr> assignment_expr
%type <list> expr_statement
%type <unary_op> unary_op
%type <assign_op> assign_op
%type <modifiers> input_mod
%%
...
...
@@ -1209,6 +1211,55 @@ assignment_expr: conditional_expr
{
$$ = $1;
}
| unary_expr assign_op assignment_expr
{
FIXME("Assignment\n");
}
assign_op: '='
{
$$ = ASSIGN_OP_ASSIGN;
}
| OP_ADDASSIGN
{
$$ = ASSIGN_OP_ADD;
}
| OP_SUBASSIGN
{
$$ = ASSIGN_OP_SUB;
}
| OP_MULASSIGN
{
$$ = ASSIGN_OP_MUL;
}
| OP_DIVASSIGN
{
$$ = ASSIGN_OP_DIV;
}
| OP_MODASSIGN
{
$$ = ASSIGN_OP_MOD;
}
| OP_LEFTSHIFTASSIGN
{
$$ = ASSIGN_OP_LSHIFT;
}
| OP_RIGHTSHIFTASSIGN
{
$$ = ASSIGN_OP_RSHIFT;
}
| OP_ANDASSIGN
{
$$ = ASSIGN_OP_AND;
}
| OP_ORASSIGN
{
$$ = ASSIGN_OP_OR;
}
| OP_XORASSIGN
{
$$ = ASSIGN_OP_XOR;
}
expr: assignment_expr
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment