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
b4a90b0f
Commit
b4a90b0f
authored
Nov 08, 2010
by
Matteo Bruni
Committed by
Alexandre Julliard
Nov 09, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Implement D3DXCreateVolumeTexture.
parent
c1843c87
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
1 deletion
+32
-1
d3dx9_36.spec
dlls/d3dx9_36/d3dx9_36.spec
+1
-1
texture.c
dlls/d3dx9_36/texture.c
+31
-0
No files found.
dlls/d3dx9_36/d3dx9_36.spec
View file @
b4a90b0f
...
...
@@ -106,7 +106,7 @@
@ stub D3DXCreateTextureGutterHelper
@ stub D3DXCreateTextureShader
@ stub D3DXCreateTorus
@ st
ub D3DXCreateVolumeTexture
@ st
dcall D3DXCreateVolumeTexture(ptr long long long long long long long ptr)
@ stub D3DXCreateVolumeTextureFromFileA
@ stub D3DXCreateVolumeTextureFromFileExA
@ stub D3DXCreateVolumeTextureFromFileExW
...
...
dlls/d3dx9_36/texture.c
View file @
b4a90b0f
...
...
@@ -905,3 +905,34 @@ HRESULT WINAPI D3DXCreateCubeTexture(LPDIRECT3DDEVICE9 device,
return
IDirect3DDevice9_CreateCubeTexture
(
device
,
size
,
miplevels
,
usage
,
format
,
pool
,
texture
,
NULL
);
}
HRESULT
WINAPI
D3DXCreateVolumeTexture
(
LPDIRECT3DDEVICE9
device
,
UINT
width
,
UINT
height
,
UINT
depth
,
UINT
miplevels
,
DWORD
usage
,
D3DFORMAT
format
,
D3DPOOL
pool
,
LPDIRECT3DVOLUMETEXTURE9
*
texture
)
{
HRESULT
hr
;
TRACE
(
"(%p, %u, %u, %u, %u, %#x, %#x, %#x, %p)
\n
"
,
device
,
width
,
height
,
depth
,
miplevels
,
usage
,
format
,
pool
,
texture
);
if
(
!
device
||
!
texture
)
return
D3DERR_INVALIDCALL
;
hr
=
D3DXCheckVolumeTextureRequirements
(
device
,
&
width
,
&
height
,
&
depth
,
&
miplevels
,
usage
,
&
format
,
pool
);
if
(
FAILED
(
hr
))
{
TRACE
(
"D3DXCheckVolumeTextureRequirements failed
\n
"
);
return
hr
;
}
return
IDirect3DDevice9_CreateVolumeTexture
(
device
,
width
,
height
,
depth
,
miplevels
,
usage
,
format
,
pool
,
texture
,
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