Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
b8cdf2ee
Commit
b8cdf2ee
authored
Jul 10, 2012
by
Matteo Bruni
Committed by
Alexandre Julliard
Jul 10, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dcompiler: Type names have to be allocated on the heap.
parent
0d34c9da
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
hlsl.y
dlls/d3dcompiler_43/hlsl.y
+6
-6
No files found.
dlls/d3dcompiler_43/hlsl.y
View file @
b8cdf2ee
...
...
@@ -473,31 +473,31 @@ type: base_type
base_type: KW_VOID
{
$$ = new_hlsl_type(
"void"
, HLSL_CLASS_SCALAR, HLSL_TYPE_VOID, 1, 1);
$$ = new_hlsl_type(
d3dcompiler_strdup("void")
, HLSL_CLASS_SCALAR, HLSL_TYPE_VOID, 1, 1);
}
| KW_SAMPLER
{
$$ = new_hlsl_type(
"sampler"
, HLSL_CLASS_OBJECT, HLSL_TYPE_SAMPLER, 1, 1);
$$ = new_hlsl_type(
d3dcompiler_strdup("sampler")
, HLSL_CLASS_OBJECT, HLSL_TYPE_SAMPLER, 1, 1);
$$->sampler_dim = HLSL_SAMPLER_DIM_GENERIC;
}
| KW_SAMPLER1D
{
$$ = new_hlsl_type(
"sampler1D"
, HLSL_CLASS_OBJECT, HLSL_TYPE_SAMPLER, 1, 1);
$$ = new_hlsl_type(
d3dcompiler_strdup("sampler1D")
, HLSL_CLASS_OBJECT, HLSL_TYPE_SAMPLER, 1, 1);
$$->sampler_dim = HLSL_SAMPLER_DIM_1D;
}
| KW_SAMPLER2D
{
$$ = new_hlsl_type(
"sampler2D"
, HLSL_CLASS_OBJECT, HLSL_TYPE_SAMPLER, 1, 1);
$$ = new_hlsl_type(
d3dcompiler_strdup("sampler2D")
, HLSL_CLASS_OBJECT, HLSL_TYPE_SAMPLER, 1, 1);
$$->sampler_dim = HLSL_SAMPLER_DIM_2D;
}
| KW_SAMPLER3D
{
$$ = new_hlsl_type(
"sampler3D"
, HLSL_CLASS_OBJECT, HLSL_TYPE_SAMPLER, 1, 1);
$$ = new_hlsl_type(
d3dcompiler_strdup("sampler3D")
, HLSL_CLASS_OBJECT, HLSL_TYPE_SAMPLER, 1, 1);
$$->sampler_dim = HLSL_SAMPLER_DIM_3D;
}
| KW_SAMPLERCUBE
{
$$ = new_hlsl_type(
"samplerCUBE"
, HLSL_CLASS_OBJECT, HLSL_TYPE_SAMPLER, 1, 1);
$$ = new_hlsl_type(
d3dcompiler_strdup("samplerCUBE")
, HLSL_CLASS_OBJECT, HLSL_TYPE_SAMPLER, 1, 1);
$$->sampler_dim = HLSL_SAMPLER_DIM_CUBE;
}
| TYPE_IDENTIFIER
...
...
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