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
deb00c94
Commit
deb00c94
authored
Oct 11, 2012
by
Matteo Bruni
Committed by
Alexandre Julliard
Oct 11, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dcompiler: Allow multiple input/output modifiers.
parent
5e665997
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
5 deletions
+17
-5
hlsl.y
dlls/d3dcompiler_43/hlsl.y
+17
-5
No files found.
dlls/d3dcompiler_43/hlsl.y
View file @
deb00c94
...
...
@@ -991,6 +991,7 @@ static BOOL add_typedef(DWORD modifiers, struct hlsl_type *orig_type, struct lis
%type <list> expr_statement
%type <unary_op> unary_op
%type <assign_op> assign_op
%type <modifiers> input_mods
%type <modifiers> input_mod
%%
...
...
@@ -1225,20 +1226,31 @@ param_list: parameter
}
}
parameter: input_mod var_modifiers type any_identifier semantic
parameter: input_mod
s
var_modifiers type any_identifier semantic
{
$$.modifiers = $1;
$$.modifiers = $1
? $1 : HLSL_MODIFIER_IN
;
$$.modifiers |= $2;
$$.type = $3;
$$.name = $4;
$$.semantic = $5;
}
input_mod
:
/* Empty */
input_mod
s:
/* Empty */
{
$$ = HLSL_MODIFIER_IN;
$$ = 0;
}
| input_mods input_mod
{
if ($1 & $2)
{
hlsl_report_message(hlsl_ctx.source_file, @2.first_line, @2.first_column,
HLSL_LEVEL_ERROR, "duplicate input-output modifiers");
return 1;
}
$$ = $1 | $2;
}
| KW_IN
input_mod: KW_IN
{
$$ = HLSL_MODIFIER_IN;
}
...
...
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