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
09bf3d5a
Commit
09bf3d5a
authored
Jan 08, 2008
by
Stefan Dösinger
Committed by
Alexandre Julliard
Jan 14, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Keep track of shaders.
parent
c3c6c6f5
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
0 deletions
+6
-0
baseshader.c
dlls/wined3d/baseshader.c
+1
-0
device.c
dlls/wined3d/device.c
+2
-0
directx.c
dlls/wined3d/directx.c
+1
-0
wined3d_private.h
dlls/wined3d/wined3d_private.h
+2
-0
No files found.
dlls/wined3d/baseshader.c
View file @
09bf3d5a
...
...
@@ -1142,6 +1142,7 @@ ULONG WINAPI IWineD3DBaseShaderImpl_Release(IWineD3DBaseShader *iface) {
shader_delete_constant_list
(
&
This
->
baseShader
.
constantsF
);
shader_delete_constant_list
(
&
This
->
baseShader
.
constantsB
);
shader_delete_constant_list
(
&
This
->
baseShader
.
constantsI
);
list_remove
(
&
This
->
baseShader
.
shader_list_entry
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
return
ref
;
...
...
dlls/wined3d/device.c
View file @
09bf3d5a
...
...
@@ -1883,6 +1883,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateVertexShader(IWineD3DDevice *ifac
IWineD3DVertexShader_Release
(
*
ppVertexShader
);
return
WINED3DERR_INVALIDCALL
;
}
list_add_head
(
&
This
->
shaders
,
&
object
->
baseShader
.
shader_list_entry
);
return
WINED3D_OK
;
}
...
...
@@ -1897,6 +1898,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreatePixelShader(IWineD3DDevice *iface
hr
=
IWineD3DPixelShader_SetFunction
(
*
ppPixelShader
,
pFunction
);
if
(
WINED3D_OK
==
hr
)
{
TRACE
(
"(%p) : Created Pixel shader %p
\n
"
,
This
,
*
ppPixelShader
);
list_add_head
(
&
This
->
shaders
,
&
object
->
baseShader
.
shader_list_entry
);
}
else
{
WARN
(
"(%p) : Failed to create pixel shader
\n
"
,
This
);
}
...
...
dlls/wined3d/directx.c
View file @
09bf3d5a
...
...
@@ -2742,6 +2742,7 @@ static HRESULT WINAPI IWineD3DImpl_CreateDevice(IWineD3D *iface, UINT Adapter,
IWineD3D_AddRef
(
object
->
wineD3D
);
object
->
parent
=
parent
;
list_init
(
&
object
->
resources
);
list_init
(
&
object
->
shaders
);
if
(
This
->
dxVersion
==
7
)
{
object
->
surface_alignment
=
8
;
...
...
dlls/wined3d/wined3d_private.h
View file @
09bf3d5a
...
...
@@ -675,6 +675,7 @@ struct IWineD3DDeviceImpl
UINT
NumberOfSwapChains
;
struct
list
resources
;
/* a linked list to track resources created by the device */
struct
list
shaders
;
/* a linked list to track shaders (pixel and vertex) */
/* Render Target Support */
IWineD3DSurface
**
render_targets
;
...
...
@@ -1970,6 +1971,7 @@ typedef struct IWineD3DBaseShaderClass
/* Pointer to the parent device */
IWineD3DDevice
*
device
;
struct
list
shader_list_entry
;
}
IWineD3DBaseShaderClass
;
...
...
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