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
0da0fa7e
Commit
0da0fa7e
authored
Oct 25, 2009
by
Rico Schüller
Committed by
Alexandre Julliard
Oct 26, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10: Improve d3d10_variable_type().
parent
0c72464a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
10 deletions
+42
-10
effect.c
dlls/d3d10/effect.c
+42
-10
No files found.
dlls/d3d10/effect.c
View file @
0da0fa7e
...
...
@@ -299,17 +299,49 @@ static D3D10_SHADER_VARIABLE_CLASS d3d10_variable_class(DWORD c)
}
}
static
D3D10_SHADER_VARIABLE_TYPE
d3d10_variable_type
(
DWORD
t
)
static
D3D10_SHADER_VARIABLE_TYPE
d3d10_variable_type
(
DWORD
t
,
BOOL
is_object
)
{
switch
(
t
)
if
(
is_objec
t
)
{
case
1
:
return
D3D10_SVT_FLOAT
;
case
2
:
return
D3D10_SVT_INT
;
case
3
:
return
D3D10_SVT_UINT
;
case
4
:
return
D3D10_SVT_BOOL
;
default:
FIXME
(
"Unknown variable type %#x.
\n
"
,
t
);
return
0
;
switch
(
t
)
{
case
1
:
return
D3D10_SVT_STRING
;
case
2
:
return
D3D10_SVT_BLEND
;
case
3
:
return
D3D10_SVT_DEPTHSTENCIL
;
case
4
:
return
D3D10_SVT_RASTERIZER
;
case
5
:
return
D3D10_SVT_PIXELSHADER
;
case
6
:
return
D3D10_SVT_VERTEXSHADER
;
case
7
:
return
D3D10_SVT_GEOMETRYSHADER
;
case
10
:
return
D3D10_SVT_TEXTURE1D
;
case
11
:
return
D3D10_SVT_TEXTURE1DARRAY
;
case
12
:
return
D3D10_SVT_TEXTURE2D
;
case
13
:
return
D3D10_SVT_TEXTURE2DARRAY
;
case
14
:
return
D3D10_SVT_TEXTURE2DMS
;
case
15
:
return
D3D10_SVT_TEXTURE2DMSARRAY
;
case
16
:
return
D3D10_SVT_TEXTURE3D
;
case
17
:
return
D3D10_SVT_TEXTURECUBE
;
case
19
:
return
D3D10_SVT_RENDERTARGETVIEW
;
case
20
:
return
D3D10_SVT_DEPTHSTENCILVIEW
;
case
21
:
return
D3D10_SVT_SAMPLER
;
default:
FIXME
(
"Unknown variable type %#x.
\n
"
,
t
);
return
0
;
}
}
else
{
switch
(
t
)
{
case
1
:
return
D3D10_SVT_FLOAT
;
case
2
:
return
D3D10_SVT_INT
;
case
3
:
return
D3D10_SVT_UINT
;
case
4
:
return
D3D10_SVT_BOOL
;
default:
FIXME
(
"Unknown variable type %#x.
\n
"
,
t
);
return
0
;
}
}
}
...
...
@@ -352,7 +384,7 @@ static HRESULT parse_fx10_type(struct d3d10_effect_type *t, const char *ptr, con
read_dword
(
&
ptr
,
&
tmp
);
t
->
column_count
=
(
tmp
&
D3D10_FX10_TYPE_COLUMN_MASK
)
>>
D3D10_FX10_TYPE_COLUMN_SHIFT
;
t
->
row_count
=
(
tmp
&
D3D10_FX10_TYPE_ROW_MASK
)
>>
D3D10_FX10_TYPE_ROW_SHIFT
;
t
->
basetype
=
d3d10_variable_type
((
tmp
&
D3D10_FX10_TYPE_BASETYPE_MASK
)
>>
D3D10_FX10_TYPE_BASETYPE_SHIFT
);
t
->
basetype
=
d3d10_variable_type
((
tmp
&
D3D10_FX10_TYPE_BASETYPE_MASK
)
>>
D3D10_FX10_TYPE_BASETYPE_SHIFT
,
FALSE
);
t
->
type_class
=
d3d10_variable_class
((
tmp
&
D3D10_FX10_TYPE_CLASS_MASK
)
>>
D3D10_FX10_TYPE_CLASS_SHIFT
);
TRACE
(
"Type description: %#x.
\n
"
,
tmp
);
...
...
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