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
6c8c61f4
Commit
6c8c61f4
authored
Oct 02, 2015
by
Józef Kucia
Committed by
Alexandre Julliard
Oct 05, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d11: Rename d3d10_geometry_shader to d3d_geometry_shader.
Signed-off-by:
Józef Kucia
<
jkucia@codeweavers.com
>
parent
67078791
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
21 deletions
+21
-21
d3d11_private.h
dlls/d3d11/d3d11_private.h
+3
-3
device.c
dlls/d3d11/device.c
+4
-4
shader.c
dlls/d3d11/shader.c
+14
-14
No files found.
dlls/d3d11/d3d11_private.h
View file @
6c8c61f4
...
@@ -241,7 +241,7 @@ HRESULT d3d_vertex_shader_create(struct d3d_device *device, const void *byte_cod
...
@@ -241,7 +241,7 @@ HRESULT d3d_vertex_shader_create(struct d3d_device *device, const void *byte_cod
struct
d3d_vertex_shader
*
unsafe_impl_from_ID3D10VertexShader
(
ID3D10VertexShader
*
iface
)
DECLSPEC_HIDDEN
;
struct
d3d_vertex_shader
*
unsafe_impl_from_ID3D10VertexShader
(
ID3D10VertexShader
*
iface
)
DECLSPEC_HIDDEN
;
/* ID3D10GeometryShader */
/* ID3D10GeometryShader */
struct
d3d
10
_geometry_shader
struct
d3d_geometry_shader
{
{
ID3D10GeometryShader
ID3D10GeometryShader_iface
;
ID3D10GeometryShader
ID3D10GeometryShader_iface
;
LONG
refcount
;
LONG
refcount
;
...
@@ -250,9 +250,9 @@ struct d3d10_geometry_shader
...
@@ -250,9 +250,9 @@ struct d3d10_geometry_shader
struct
wined3d_shader
*
wined3d_shader
;
struct
wined3d_shader
*
wined3d_shader
;
};
};
HRESULT
d3d
10_geometry_shader_init
(
struct
d3d10
_geometry_shader
*
shader
,
struct
d3d_device
*
device
,
HRESULT
d3d
_geometry_shader_init
(
struct
d3d
_geometry_shader
*
shader
,
struct
d3d_device
*
device
,
const
void
*
byte_code
,
SIZE_T
byte_code_length
)
DECLSPEC_HIDDEN
;
const
void
*
byte_code
,
SIZE_T
byte_code_length
)
DECLSPEC_HIDDEN
;
struct
d3d
10
_geometry_shader
*
unsafe_impl_from_ID3D10GeometryShader
(
ID3D10GeometryShader
*
iface
)
DECLSPEC_HIDDEN
;
struct
d3d_geometry_shader
*
unsafe_impl_from_ID3D10GeometryShader
(
ID3D10GeometryShader
*
iface
)
DECLSPEC_HIDDEN
;
/* ID3D11PixelShader, ID3D10PixelShader */
/* ID3D11PixelShader, ID3D10PixelShader */
struct
d3d_pixel_shader
struct
d3d_pixel_shader
...
...
dlls/d3d11/device.c
View file @
6c8c61f4
...
@@ -896,7 +896,7 @@ static void STDMETHODCALLTYPE d3d10_device_GSSetConstantBuffers(ID3D10Device1 *i
...
@@ -896,7 +896,7 @@ static void STDMETHODCALLTYPE d3d10_device_GSSetConstantBuffers(ID3D10Device1 *i
static
void
STDMETHODCALLTYPE
d3d10_device_GSSetShader
(
ID3D10Device1
*
iface
,
ID3D10GeometryShader
*
shader
)
static
void
STDMETHODCALLTYPE
d3d10_device_GSSetShader
(
ID3D10Device1
*
iface
,
ID3D10GeometryShader
*
shader
)
{
{
struct
d3d_device
*
device
=
impl_from_ID3D10Device
(
iface
);
struct
d3d_device
*
device
=
impl_from_ID3D10Device
(
iface
);
struct
d3d
10
_geometry_shader
*
gs
=
unsafe_impl_from_ID3D10GeometryShader
(
shader
);
struct
d3d_geometry_shader
*
gs
=
unsafe_impl_from_ID3D10GeometryShader
(
shader
);
TRACE
(
"iface %p, shader %p.
\n
"
,
iface
,
shader
);
TRACE
(
"iface %p, shader %p.
\n
"
,
iface
,
shader
);
...
@@ -1598,7 +1598,7 @@ static void STDMETHODCALLTYPE d3d10_device_GSGetConstantBuffers(ID3D10Device1 *i
...
@@ -1598,7 +1598,7 @@ static void STDMETHODCALLTYPE d3d10_device_GSGetConstantBuffers(ID3D10Device1 *i
static
void
STDMETHODCALLTYPE
d3d10_device_GSGetShader
(
ID3D10Device1
*
iface
,
ID3D10GeometryShader
**
shader
)
static
void
STDMETHODCALLTYPE
d3d10_device_GSGetShader
(
ID3D10Device1
*
iface
,
ID3D10GeometryShader
**
shader
)
{
{
struct
d3d_device
*
device
=
impl_from_ID3D10Device
(
iface
);
struct
d3d_device
*
device
=
impl_from_ID3D10Device
(
iface
);
struct
d3d
10
_geometry_shader
*
shader_impl
;
struct
d3d_geometry_shader
*
shader_impl
;
struct
wined3d_shader
*
wined3d_shader
;
struct
wined3d_shader
*
wined3d_shader
;
TRACE
(
"iface %p, shader %p.
\n
"
,
iface
,
shader
);
TRACE
(
"iface %p, shader %p.
\n
"
,
iface
,
shader
);
...
@@ -2310,7 +2310,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_device_CreateGeometryShader(ID3D10Device1
...
@@ -2310,7 +2310,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_device_CreateGeometryShader(ID3D10Device1
const
void
*
byte_code
,
SIZE_T
byte_code_length
,
ID3D10GeometryShader
**
shader
)
const
void
*
byte_code
,
SIZE_T
byte_code_length
,
ID3D10GeometryShader
**
shader
)
{
{
struct
d3d_device
*
This
=
impl_from_ID3D10Device
(
iface
);
struct
d3d_device
*
This
=
impl_from_ID3D10Device
(
iface
);
struct
d3d
10
_geometry_shader
*
object
;
struct
d3d_geometry_shader
*
object
;
HRESULT
hr
;
HRESULT
hr
;
TRACE
(
"iface %p, byte_code %p, byte_code_length %lu, shader %p.
\n
"
,
TRACE
(
"iface %p, byte_code %p, byte_code_length %lu, shader %p.
\n
"
,
...
@@ -2320,7 +2320,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_device_CreateGeometryShader(ID3D10Device1
...
@@ -2320,7 +2320,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_device_CreateGeometryShader(ID3D10Device1
if
(
!
object
)
if
(
!
object
)
return
E_OUTOFMEMORY
;
return
E_OUTOFMEMORY
;
hr
=
d3d
10
_geometry_shader_init
(
object
,
This
,
byte_code
,
byte_code_length
);
hr
=
d3d_geometry_shader_init
(
object
,
This
,
byte_code
,
byte_code_length
);
if
(
FAILED
(
hr
))
if
(
FAILED
(
hr
))
{
{
WARN
(
"Failed to initialize geometry shader, hr %#x.
\n
"
,
hr
);
WARN
(
"Failed to initialize geometry shader, hr %#x.
\n
"
,
hr
);
...
...
dlls/d3d11/shader.c
View file @
6c8c61f4
...
@@ -439,9 +439,9 @@ struct d3d_vertex_shader *unsafe_impl_from_ID3D10VertexShader(ID3D10VertexShader
...
@@ -439,9 +439,9 @@ struct d3d_vertex_shader *unsafe_impl_from_ID3D10VertexShader(ID3D10VertexShader
return
impl_from_ID3D10VertexShader
(
iface
);
return
impl_from_ID3D10VertexShader
(
iface
);
}
}
static
inline
struct
d3d
10
_geometry_shader
*
impl_from_ID3D10GeometryShader
(
ID3D10GeometryShader
*
iface
)
static
inline
struct
d3d_geometry_shader
*
impl_from_ID3D10GeometryShader
(
ID3D10GeometryShader
*
iface
)
{
{
return
CONTAINING_RECORD
(
iface
,
struct
d3d
10
_geometry_shader
,
ID3D10GeometryShader_iface
);
return
CONTAINING_RECORD
(
iface
,
struct
d3d_geometry_shader
,
ID3D10GeometryShader_iface
);
}
}
/* IUnknown methods */
/* IUnknown methods */
...
@@ -468,7 +468,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_geometry_shader_QueryInterface(ID3D10Geom
...
@@ -468,7 +468,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_geometry_shader_QueryInterface(ID3D10Geom
static
ULONG
STDMETHODCALLTYPE
d3d10_geometry_shader_AddRef
(
ID3D10GeometryShader
*
iface
)
static
ULONG
STDMETHODCALLTYPE
d3d10_geometry_shader_AddRef
(
ID3D10GeometryShader
*
iface
)
{
{
struct
d3d
10
_geometry_shader
*
This
=
impl_from_ID3D10GeometryShader
(
iface
);
struct
d3d_geometry_shader
*
This
=
impl_from_ID3D10GeometryShader
(
iface
);
ULONG
refcount
=
InterlockedIncrement
(
&
This
->
refcount
);
ULONG
refcount
=
InterlockedIncrement
(
&
This
->
refcount
);
TRACE
(
"%p increasing refcount to %u
\n
"
,
This
,
refcount
);
TRACE
(
"%p increasing refcount to %u
\n
"
,
This
,
refcount
);
...
@@ -478,7 +478,7 @@ static ULONG STDMETHODCALLTYPE d3d10_geometry_shader_AddRef(ID3D10GeometryShader
...
@@ -478,7 +478,7 @@ static ULONG STDMETHODCALLTYPE d3d10_geometry_shader_AddRef(ID3D10GeometryShader
static
ULONG
STDMETHODCALLTYPE
d3d10_geometry_shader_Release
(
ID3D10GeometryShader
*
iface
)
static
ULONG
STDMETHODCALLTYPE
d3d10_geometry_shader_Release
(
ID3D10GeometryShader
*
iface
)
{
{
struct
d3d
10
_geometry_shader
*
This
=
impl_from_ID3D10GeometryShader
(
iface
);
struct
d3d_geometry_shader
*
This
=
impl_from_ID3D10GeometryShader
(
iface
);
ULONG
refcount
=
InterlockedDecrement
(
&
This
->
refcount
);
ULONG
refcount
=
InterlockedDecrement
(
&
This
->
refcount
);
TRACE
(
"%p decreasing refcount to %u
\n
"
,
This
,
refcount
);
TRACE
(
"%p decreasing refcount to %u
\n
"
,
This
,
refcount
);
...
@@ -503,7 +503,7 @@ static void STDMETHODCALLTYPE d3d10_geometry_shader_GetDevice(ID3D10GeometryShad
...
@@ -503,7 +503,7 @@ static void STDMETHODCALLTYPE d3d10_geometry_shader_GetDevice(ID3D10GeometryShad
static
HRESULT
STDMETHODCALLTYPE
d3d10_geometry_shader_GetPrivateData
(
ID3D10GeometryShader
*
iface
,
static
HRESULT
STDMETHODCALLTYPE
d3d10_geometry_shader_GetPrivateData
(
ID3D10GeometryShader
*
iface
,
REFGUID
guid
,
UINT
*
data_size
,
void
*
data
)
REFGUID
guid
,
UINT
*
data_size
,
void
*
data
)
{
{
struct
d3d
10
_geometry_shader
*
shader
=
impl_from_ID3D10GeometryShader
(
iface
);
struct
d3d_geometry_shader
*
shader
=
impl_from_ID3D10GeometryShader
(
iface
);
TRACE
(
"iface %p, guid %s, data_size %p, data %p.
\n
"
,
TRACE
(
"iface %p, guid %s, data_size %p, data %p.
\n
"
,
iface
,
debugstr_guid
(
guid
),
data_size
,
data
);
iface
,
debugstr_guid
(
guid
),
data_size
,
data
);
...
@@ -514,7 +514,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_geometry_shader_GetPrivateData(ID3D10Geom
...
@@ -514,7 +514,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_geometry_shader_GetPrivateData(ID3D10Geom
static
HRESULT
STDMETHODCALLTYPE
d3d10_geometry_shader_SetPrivateData
(
ID3D10GeometryShader
*
iface
,
static
HRESULT
STDMETHODCALLTYPE
d3d10_geometry_shader_SetPrivateData
(
ID3D10GeometryShader
*
iface
,
REFGUID
guid
,
UINT
data_size
,
const
void
*
data
)
REFGUID
guid
,
UINT
data_size
,
const
void
*
data
)
{
{
struct
d3d
10
_geometry_shader
*
shader
=
impl_from_ID3D10GeometryShader
(
iface
);
struct
d3d_geometry_shader
*
shader
=
impl_from_ID3D10GeometryShader
(
iface
);
TRACE
(
"iface %p, guid %s, data_size %u, data %p.
\n
"
,
TRACE
(
"iface %p, guid %s, data_size %u, data %p.
\n
"
,
iface
,
debugstr_guid
(
guid
),
data_size
,
data
);
iface
,
debugstr_guid
(
guid
),
data_size
,
data
);
...
@@ -525,7 +525,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_geometry_shader_SetPrivateData(ID3D10Geom
...
@@ -525,7 +525,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_geometry_shader_SetPrivateData(ID3D10Geom
static
HRESULT
STDMETHODCALLTYPE
d3d10_geometry_shader_SetPrivateDataInterface
(
ID3D10GeometryShader
*
iface
,
static
HRESULT
STDMETHODCALLTYPE
d3d10_geometry_shader_SetPrivateDataInterface
(
ID3D10GeometryShader
*
iface
,
REFGUID
guid
,
const
IUnknown
*
data
)
REFGUID
guid
,
const
IUnknown
*
data
)
{
{
struct
d3d
10
_geometry_shader
*
shader
=
impl_from_ID3D10GeometryShader
(
iface
);
struct
d3d_geometry_shader
*
shader
=
impl_from_ID3D10GeometryShader
(
iface
);
TRACE
(
"iface %p, guid %s, data %p.
\n
"
,
iface
,
debugstr_guid
(
guid
),
data
);
TRACE
(
"iface %p, guid %s, data %p.
\n
"
,
iface
,
debugstr_guid
(
guid
),
data
);
...
@@ -545,20 +545,20 @@ static const struct ID3D10GeometryShaderVtbl d3d10_geometry_shader_vtbl =
...
@@ -545,20 +545,20 @@ static const struct ID3D10GeometryShaderVtbl d3d10_geometry_shader_vtbl =
d3d10_geometry_shader_SetPrivateDataInterface
,
d3d10_geometry_shader_SetPrivateDataInterface
,
};
};
static
void
STDMETHODCALLTYPE
d3d
10
_geometry_shader_wined3d_object_destroyed
(
void
*
parent
)
static
void
STDMETHODCALLTYPE
d3d_geometry_shader_wined3d_object_destroyed
(
void
*
parent
)
{
{
struct
d3d
10
_geometry_shader
*
shader
=
parent
;
struct
d3d_geometry_shader
*
shader
=
parent
;
wined3d_private_store_cleanup
(
&
shader
->
private_store
);
wined3d_private_store_cleanup
(
&
shader
->
private_store
);
HeapFree
(
GetProcessHeap
(),
0
,
parent
);
HeapFree
(
GetProcessHeap
(),
0
,
parent
);
}
}
static
const
struct
wined3d_parent_ops
d3d
10
_geometry_shader_wined3d_parent_ops
=
static
const
struct
wined3d_parent_ops
d3d_geometry_shader_wined3d_parent_ops
=
{
{
d3d
10
_geometry_shader_wined3d_object_destroyed
,
d3d_geometry_shader_wined3d_object_destroyed
,
};
};
HRESULT
d3d
10_geometry_shader_init
(
struct
d3d10
_geometry_shader
*
shader
,
struct
d3d_device
*
device
,
HRESULT
d3d
_geometry_shader_init
(
struct
d3d
_geometry_shader
*
shader
,
struct
d3d_device
*
device
,
const
void
*
byte_code
,
SIZE_T
byte_code_length
)
const
void
*
byte_code
,
SIZE_T
byte_code_length
)
{
{
struct
wined3d_shader_signature
output_signature
;
struct
wined3d_shader_signature
output_signature
;
...
@@ -588,7 +588,7 @@ HRESULT d3d10_geometry_shader_init(struct d3d10_geometry_shader *shader, struct
...
@@ -588,7 +588,7 @@ HRESULT d3d10_geometry_shader_init(struct d3d10_geometry_shader *shader, struct
desc
.
max_version
=
4
;
desc
.
max_version
=
4
;
hr
=
wined3d_shader_create_gs
(
device
->
wined3d_device
,
&
desc
,
shader
,
hr
=
wined3d_shader_create_gs
(
device
->
wined3d_device
,
&
desc
,
shader
,
&
d3d
10
_geometry_shader_wined3d_parent_ops
,
&
shader
->
wined3d_shader
);
&
d3d_geometry_shader_wined3d_parent_ops
,
&
shader
->
wined3d_shader
);
shader_free_signature
(
&
input_signature
);
shader_free_signature
(
&
input_signature
);
shader_free_signature
(
&
output_signature
);
shader_free_signature
(
&
output_signature
);
if
(
FAILED
(
hr
))
if
(
FAILED
(
hr
))
...
@@ -603,7 +603,7 @@ HRESULT d3d10_geometry_shader_init(struct d3d10_geometry_shader *shader, struct
...
@@ -603,7 +603,7 @@ HRESULT d3d10_geometry_shader_init(struct d3d10_geometry_shader *shader, struct
return
S_OK
;
return
S_OK
;
}
}
struct
d3d
10
_geometry_shader
*
unsafe_impl_from_ID3D10GeometryShader
(
ID3D10GeometryShader
*
iface
)
struct
d3d_geometry_shader
*
unsafe_impl_from_ID3D10GeometryShader
(
ID3D10GeometryShader
*
iface
)
{
{
if
(
!
iface
)
if
(
!
iface
)
return
NULL
;
return
NULL
;
...
...
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