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
a76ac0a8
Commit
a76ac0a8
authored
Jun 22, 2011
by
Travis Athougies
Committed by
Alexandre Julliard
Jun 23, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9_36: Implemented support for samplers in ID3DXConstantTable.
parent
4eeba431
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
6 deletions
+21
-6
shader.c
dlls/d3dx9_36/shader.c
+21
-6
No files found.
dlls/d3dx9_36/shader.c
View file @
a76ac0a8
...
@@ -748,13 +748,23 @@ static HRESULT WINAPI ID3DXConstantTableImpl_GetConstantDesc(ID3DXConstantTable*
...
@@ -748,13 +748,23 @@ static HRESULT WINAPI ID3DXConstantTableImpl_GetConstantDesc(ID3DXConstantTable*
return
D3D_OK
;
return
D3D_OK
;
}
}
static
UINT
WINAPI
ID3DXConstantTableImpl_GetSamplerIndex
(
LPD3DXCONSTANTTABLE
iface
,
D3DXHANDLE
constant
)
static
UINT
WINAPI
ID3DXConstantTableImpl_GetSamplerIndex
(
ID3DXConstantTable
*
iface
,
D3DXHANDLE
constant
)
{
{
ID3DXConstantTableImpl
*
This
=
impl_from_ID3DXConstantTable
(
iface
);
ID3DXConstantTableImpl
*
This
=
impl_from_ID3DXConstantTable
(
iface
);
D3DXCONSTANT_DESC
desc
;
UINT
count
=
1
;
HRESULT
res
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
constant
);
res
=
ID3DXConstantTable_GetConstantDesc
(
iface
,
constant
,
&
desc
,
&
count
);
if
(
FAILED
(
res
))
return
(
UINT
)
-
1
;
FIXME
(
"(%p)->(%p): stub
\n
"
,
This
,
constant
);
if
(
desc
.
RegisterSet
!=
D3DXRS_SAMPLER
)
return
(
UINT
)
-
1
;
return
(
UINT
)
-
1
;
return
desc
.
RegisterIndex
;
}
}
static
D3DXHANDLE
WINAPI
ID3DXConstantTableImpl_GetConstant
(
ID3DXConstantTable
*
iface
,
D3DXHANDLE
constant
,
UINT
index
)
static
D3DXHANDLE
WINAPI
ID3DXConstantTableImpl_GetConstant
(
ID3DXConstantTable
*
iface
,
D3DXHANDLE
constant
,
UINT
index
)
...
@@ -1225,10 +1235,15 @@ HRESULT WINAPI D3DXGetShaderConstantTableEx(CONST DWORD* byte_code,
...
@@ -1225,10 +1235,15 @@ HRESULT WINAPI D3DXGetShaderConstantTableEx(CONST DWORD* byte_code,
if
(
hr
!=
D3D_OK
)
if
(
hr
!=
D3D_OK
)
goto
error
;
goto
error
;
if
(
constant_info
[
i
].
RegisterSet
!=
D3DXRS_FLOAT4
)
if
(
constant_info
[
i
].
RegisterSet
!=
D3DXRS_FLOAT4
&&
FIXME
(
"Don't know how to calculate Bytes for non D3DXRS_FLOAT4 constants
\n
"
);
constant_info
[
i
].
RegisterSet
!=
D3DXRS_SAMPLER
)
FIXME
(
"Don't know how to calculate Bytes for constants of type %d
\n
"
,
constant_info
[
i
].
RegisterSet
);
/* D3DXRS_FLOAT4 has a base size of 4 (not taking into account dimensions and element count) */
/*
* D3DXRS_FLOAT4 and D3DXRS_SAMPLER have a base size of 4
* (not taking into account dimensions and element count)
*/
object
->
constants
[
i
].
desc
.
Bytes
=
4
;
object
->
constants
[
i
].
desc
.
Bytes
=
4
;
/* Take into account dimensions and elements */
/* Take into account dimensions and elements */
...
...
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