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
9ea2ee5f
Commit
9ea2ee5f
authored
Mar 29, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 30, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of IWineD3DGeometryShader.
parent
49725ba5
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
26 deletions
+14
-26
d3d10core_private.h
dlls/d3d10core/d3d10core_private.h
+1
-1
shader.c
dlls/d3d10core/shader.c
+1
-3
device.c
dlls/wined3d/device.c
+2
-2
shader.c
dlls/wined3d/shader.c
+8
-9
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-1
wined3d.idl
include/wine/wined3d.idl
+1
-10
No files found.
dlls/d3d10core/d3d10core_private.h
View file @
9ea2ee5f
...
...
@@ -182,7 +182,7 @@ struct d3d10_geometry_shader
const
struct
ID3D10GeometryShaderVtbl
*
vtbl
;
LONG
refcount
;
IWineD3D
Geometry
Shader
*
wined3d_shader
;
IWineD3D
Base
Shader
*
wined3d_shader
;
struct
wined3d_shader_signature
output_signature
;
};
...
...
dlls/d3d10core/shader.c
View file @
9ea2ee5f
...
...
@@ -307,9 +307,7 @@ static ULONG STDMETHODCALLTYPE d3d10_geometry_shader_Release(ID3D10GeometryShade
TRACE
(
"%p decreasing refcount to %u
\n
"
,
This
,
refcount
);
if
(
!
refcount
)
{
IWineD3DGeometryShader_Release
(
This
->
wined3d_shader
);
}
IWineD3DBaseShader_Release
(
This
->
wined3d_shader
);
return
refcount
;
}
...
...
dlls/wined3d/device.c
View file @
9ea2ee5f
...
...
@@ -1546,7 +1546,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateVertexShader(IWineD3DDevice *ifac
static
HRESULT
WINAPI
IWineD3DDeviceImpl_CreateGeometryShader
(
IWineD3DDevice
*
iface
,
const
DWORD
*
byte_code
,
const
struct
wined3d_shader_signature
*
output_signature
,
void
*
parent
,
const
struct
wined3d_parent_ops
*
parent_ops
,
IWineD3D
Geometry
Shader
**
shader
)
IWineD3D
Base
Shader
**
shader
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
struct
wined3d_geometryshader
*
object
;
...
...
@@ -1568,7 +1568,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateGeometryShader(IWineD3DDevice *if
}
TRACE
(
"Created geometry shader %p.
\n
"
,
object
);
*
shader
=
(
IWineD3D
Geometry
Shader
*
)
object
;
*
shader
=
(
IWineD3D
Base
Shader
*
)
object
;
return
WINED3D_OK
;
}
...
...
dlls/wined3d/shader.c
View file @
9ea2ee5f
...
...
@@ -1892,13 +1892,12 @@ HRESULT vertexshader_init(IWineD3DVertexShaderImpl *shader, IWineD3DDeviceImpl *
return
WINED3D_OK
;
}
static
HRESULT
STDMETHODCALLTYPE
geometryshader_QueryInterface
(
IWineD3D
Geometry
Shader
*
iface
,
static
HRESULT
STDMETHODCALLTYPE
geometryshader_QueryInterface
(
IWineD3D
Base
Shader
*
iface
,
REFIID
riid
,
void
**
object
)
{
TRACE
(
"iface %p, riid %s, object %p.
\n
"
,
iface
,
debugstr_guid
(
riid
),
object
);
if
(
IsEqualGUID
(
riid
,
&
IID_IWineD3DGeometryShader
)
||
IsEqualGUID
(
riid
,
&
IID_IWineD3DBaseShader
)
if
(
IsEqualGUID
(
riid
,
&
IID_IWineD3DBaseShader
)
||
IsEqualGUID
(
riid
,
&
IID_IWineD3DBase
)
||
IsEqualGUID
(
riid
,
&
IID_IUnknown
))
{
...
...
@@ -1913,7 +1912,7 @@ static HRESULT STDMETHODCALLTYPE geometryshader_QueryInterface(IWineD3DGeometryS
return
E_NOINTERFACE
;
}
static
ULONG
STDMETHODCALLTYPE
geometryshader_AddRef
(
IWineD3D
Geometry
Shader
*
iface
)
static
ULONG
STDMETHODCALLTYPE
geometryshader_AddRef
(
IWineD3D
Base
Shader
*
iface
)
{
struct
wined3d_geometryshader
*
shader
=
(
struct
wined3d_geometryshader
*
)
iface
;
ULONG
refcount
=
InterlockedIncrement
(
&
shader
->
base_shader
.
ref
);
...
...
@@ -1924,7 +1923,7 @@ static ULONG STDMETHODCALLTYPE geometryshader_AddRef(IWineD3DGeometryShader *ifa
}
/* Do not call while under the GL lock. */
static
ULONG
STDMETHODCALLTYPE
geometryshader_Release
(
IWineD3D
Geometry
Shader
*
iface
)
static
ULONG
STDMETHODCALLTYPE
geometryshader_Release
(
IWineD3D
Base
Shader
*
iface
)
{
struct
wined3d_geometryshader
*
shader
=
(
struct
wined3d_geometryshader
*
)
iface
;
ULONG
refcount
=
InterlockedDecrement
(
&
shader
->
base_shader
.
ref
);
...
...
@@ -1941,21 +1940,21 @@ static ULONG STDMETHODCALLTYPE geometryshader_Release(IWineD3DGeometryShader *if
return
refcount
;
}
static
void
*
STDMETHODCALLTYPE
geometryshader_GetParent
(
IWineD3D
Geometry
Shader
*
iface
)
static
void
*
STDMETHODCALLTYPE
geometryshader_GetParent
(
IWineD3D
Base
Shader
*
iface
)
{
TRACE
(
"iface %p.
\n
"
,
iface
);
return
((
IWineD3DBaseShaderImpl
*
)
iface
)
->
baseShader
.
parent
;
}
static
HRESULT
STDMETHODCALLTYPE
geometryshader_GetFunction
(
IWineD3D
Geometry
Shader
*
iface
,
void
*
data
,
UINT
*
data_size
)
static
HRESULT
STDMETHODCALLTYPE
geometryshader_GetFunction
(
IWineD3D
Base
Shader
*
iface
,
void
*
data
,
UINT
*
data_size
)
{
TRACE
(
"iface %p, data %p, data_size %p.
\n
"
,
iface
,
data
,
data_size
);
return
shader_get_function
((
IWineD3DBaseShaderImpl
*
)
iface
,
data
,
data_size
);
}
static
HRESULT
STDMETHODCALLTYPE
geometryshader_SetLocalConstantsF
(
IWineD3D
Geometry
Shader
*
iface
,
static
HRESULT
STDMETHODCALLTYPE
geometryshader_SetLocalConstantsF
(
IWineD3D
Base
Shader
*
iface
,
UINT
start_idx
,
const
float
*
src_data
,
UINT
count
)
{
TRACE
(
"iface %p, start_idx %u, src_data %p, count %u.
\n
"
,
iface
,
start_idx
,
src_data
,
count
);
...
...
@@ -1964,7 +1963,7 @@ static HRESULT STDMETHODCALLTYPE geometryshader_SetLocalConstantsF(IWineD3DGeome
start_idx
,
src_data
,
count
);
}
static
const
IWineD3D
Geometry
ShaderVtbl
wined3d_geometryshader_vtbl
=
static
const
IWineD3D
Base
ShaderVtbl
wined3d_geometryshader_vtbl
=
{
/* IUnknown methods */
geometryshader_QueryInterface
,
...
...
dlls/wined3d/wined3d_private.h
View file @
9ea2ee5f
...
...
@@ -2832,7 +2832,7 @@ HRESULT vertexshader_init(IWineD3DVertexShaderImpl *shader, IWineD3DDeviceImpl *
struct
wined3d_geometryshader
{
const
struct
IWineD3D
Geometry
ShaderVtbl
*
vtbl
;
const
struct
IWineD3D
Base
ShaderVtbl
*
vtbl
;
IWineD3DBaseShaderClass
base_shader
;
};
...
...
include/wine/wined3d.idl
View file @
9ea2ee5f
...
...
@@ -2405,15 +2405,6 @@ interface IWineD3DBaseShader : IWineD3DBase
[
object
,
local
,
uuid
(
8276
c113
-
388b
-
49
d1
-
ad8b
-
c9dd8bcbabcd
)
]
interface
IWineD3DGeometryShader
:
IWineD3DBaseShader
{
}
[
object
,
local
,
uuid
(
818503
da
-
6
f30
-
11
d9
-
c687
-
00046142
c14f
)
]
interface
IWineD3DPixelShader
:
IWineD3DBaseShader
...
...
@@ -2554,7 +2545,7 @@ interface IWineD3DDevice : IUnknown
[
in
]
const
struct
wined3d_shader_signature
*
output_signature
,
[
in
]
void
*
parent
,
[
in
]
const
struct
wined3d_parent_ops
*
parent_ops
,
[
out
]
IWineD3D
Geometry
Shader
**
shader
[
out
]
IWineD3D
Base
Shader
**
shader
)
;
HRESULT
CreatePixelShader
(
[
in
]
const
DWORD
*
function
,
...
...
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