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
46c9897b
Commit
46c9897b
authored
Jul 30, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Sep 27, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Factor out d3d9_texture_init().
parent
a2c03e23
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
9 deletions
+10
-9
d3d9_private.h
dlls/d3d9/d3d9_private.h
+7
-6
device.c
dlls/d3d9/device.c
+3
-3
texture.c
dlls/d3d9/texture.c
+0
-0
No files found.
dlls/d3d9/d3d9_private.h
View file @
46c9897b
...
...
@@ -228,12 +228,13 @@ struct d3d9_texture
D3DTEXTUREFILTERTYPE
autogen_filter_type
;
};
HRESULT
cubetexture_init
(
struct
d3d9_texture
*
texture
,
struct
d3d9_device
*
device
,
UINT
edge_length
,
UINT
levels
,
DWORD
usage
,
D3DFORMAT
format
,
D3DPOOL
pool
)
DECLSPEC_HIDDEN
;
HRESULT
texture_init
(
struct
d3d9_texture
*
texture
,
struct
d3d9_device
*
device
,
UINT
width
,
UINT
height
,
UINT
levels
,
DWORD
usage
,
D3DFORMAT
format
,
D3DPOOL
pool
)
DECLSPEC_HIDDEN
;
HRESULT
volumetexture_init
(
struct
d3d9_texture
*
texture
,
struct
d3d9_device
*
device
,
UINT
width
,
UINT
height
,
UINT
depth
,
UINT
levels
,
DWORD
usage
,
D3DFORMAT
format
,
D3DPOOL
pool
)
DECLSPEC_HIDDEN
;
HRESULT
d3d9_texture_2d_init
(
struct
d3d9_texture
*
texture
,
struct
d3d9_device
*
device
,
unsigned
int
width
,
unsigned
int
height
,
unsigned
int
level_count
,
DWORD
usage
,
D3DFORMAT
format
,
D3DPOOL
pool
);
HRESULT
d3d9_texture_3d_init
(
struct
d3d9_texture
*
texture
,
struct
d3d9_device
*
device
,
unsigned
int
width
,
unsigned
int
height
,
unsigned
int
depth
,
unsigned
int
level_count
,
DWORD
usage
,
D3DFORMAT
format
,
D3DPOOL
pool
);
HRESULT
d3d9_texture_cube_init
(
struct
d3d9_texture
*
texture
,
struct
d3d9_device
*
device
,
unsigned
int
edge_length
,
unsigned
int
level_count
,
DWORD
usage
,
D3DFORMAT
format
,
D3DPOOL
pool
);
struct
d3d9_texture
*
unsafe_impl_from_IDirect3DBaseTexture9
(
IDirect3DBaseTexture9
*
iface
)
DECLSPEC_HIDDEN
;
void
d3d9_texture_flag_auto_gen_mipmap
(
struct
d3d9_texture
*
texture
)
DECLSPEC_HIDDEN
;
void
d3d9_texture_gen_auto_mipmap
(
struct
d3d9_texture
*
texture
)
DECLSPEC_HIDDEN
;
...
...
dlls/d3d9/device.c
View file @
46c9897b
...
...
@@ -1323,7 +1323,7 @@ static HRESULT WINAPI d3d9_device_CreateTexture(IDirect3DDevice9Ex *iface,
if
(
!
(
object
=
heap_alloc_zero
(
sizeof
(
*
object
))))
return
D3DERR_OUTOFVIDEOMEMORY
;
hr
=
texture
_init
(
object
,
device
,
width
,
height
,
levels
,
usage
,
format
,
pool
);
hr
=
d3d9_texture_2d
_init
(
object
,
device
,
width
,
height
,
levels
,
usage
,
format
,
pool
);
if
(
FAILED
(
hr
))
{
WARN
(
"Failed to initialize texture, hr %#x.
\n
"
,
hr
);
...
...
@@ -1379,7 +1379,7 @@ static HRESULT WINAPI d3d9_device_CreateVolumeTexture(IDirect3DDevice9Ex *iface,
if
(
!
(
object
=
heap_alloc_zero
(
sizeof
(
*
object
))))
return
D3DERR_OUTOFVIDEOMEMORY
;
hr
=
volumetexture
_init
(
object
,
device
,
width
,
height
,
depth
,
levels
,
usage
,
format
,
pool
);
hr
=
d3d9_texture_3d
_init
(
object
,
device
,
width
,
height
,
depth
,
levels
,
usage
,
format
,
pool
);
if
(
FAILED
(
hr
))
{
WARN
(
"Failed to initialize volume texture, hr %#x.
\n
"
,
hr
);
...
...
@@ -1424,7 +1424,7 @@ static HRESULT WINAPI d3d9_device_CreateCubeTexture(IDirect3DDevice9Ex *iface,
if
(
!
(
object
=
heap_alloc_zero
(
sizeof
(
*
object
))))
return
D3DERR_OUTOFVIDEOMEMORY
;
hr
=
cubetextur
e_init
(
object
,
device
,
edge_length
,
levels
,
usage
,
format
,
pool
);
hr
=
d3d9_texture_cub
e_init
(
object
,
device
,
edge_length
,
levels
,
usage
,
format
,
pool
);
if
(
FAILED
(
hr
))
{
WARN
(
"Failed to initialize cube texture, hr %#x.
\n
"
,
hr
);
...
...
dlls/d3d9/texture.c
View file @
46c9897b
This diff is collapsed.
Click to expand it.
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