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
82245cb5
Commit
82245cb5
authored
Aug 01, 2007
by
H. Verbeet
Committed by
Alexandre Julliard
Aug 02, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Properly load FLOAT16_2 and FLOAT16_4 vertex data.
parent
f11ca610
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
4 deletions
+15
-4
drawprim.c
dlls/wined3d/drawprim.c
+10
-2
wined3d_private.h
dlls/wined3d/wined3d_private.h
+5
-2
No files found.
dlls/wined3d/drawprim.c
View file @
82245cb5
...
@@ -818,10 +818,18 @@ static inline void drawStridedInstanced(IWineD3DDevice *iface, WineDirect3DVerte
...
@@ -818,10 +818,18 @@ static inline void drawStridedInstanced(IWineD3DDevice *iface, WineDirect3DVerte
/* Are those 16 bit floats. C doesn't have a 16 bit float type. I could read the single bits and calculate a 4
/* Are those 16 bit floats. C doesn't have a 16 bit float type. I could read the single bits and calculate a 4
* byte float according to the IEEE standard
* byte float according to the IEEE standard
*/
*/
FIXME
(
"Unsupported WINED3DDECLTYPE_FLOAT16_2
\n
"
);
if
(
GL_SUPPORT
(
NV_HALF_FLOAT
))
{
GL_EXTCALL
(
glVertexAttrib2hvNV
(
instancedData
[
j
],
(
GLhalfNV
*
)
ptr
));
}
else
{
FIXME
(
"Unsupported WINED3DDECLTYPE_FLOAT16_2
\n
"
);
}
break
;
break
;
case
WINED3DDECLTYPE_FLOAT16_4
:
case
WINED3DDECLTYPE_FLOAT16_4
:
FIXME
(
"Unsupported WINED3DDECLTYPE_FLOAT16_4
\n
"
);
if
(
GL_SUPPORT
(
NV_HALF_FLOAT
))
{
GL_EXTCALL
(
glVertexAttrib4hvNV
(
instancedData
[
j
],
(
GLhalfNV
*
)
ptr
));
}
else
{
FIXME
(
"Unsupported WINED3DDECLTYPE_FLOAT16_4
\n
"
);
}
break
;
break
;
case
WINED3DDECLTYPE_UNUSED
:
case
WINED3DDECLTYPE_UNUSED
:
...
...
dlls/wined3d/wined3d_private.h
View file @
82245cb5
...
@@ -139,8 +139,11 @@ static WINED3DGLTYPE const glTypeLookup[WINED3DDECLTYPE_UNUSED] = {
...
@@ -139,8 +139,11 @@ static WINED3DGLTYPE const glTypeLookup[WINED3DDECLTYPE_UNUSED] = {
{
WINED3DDECLTYPE_USHORT4N
,
4
,
GL_UNSIGNED_SHORT
,
GL_TRUE
,
sizeof
(
short
int
)},
{
WINED3DDECLTYPE_USHORT4N
,
4
,
GL_UNSIGNED_SHORT
,
GL_TRUE
,
sizeof
(
short
int
)},
{
WINED3DDECLTYPE_UDEC3
,
3
,
GL_UNSIGNED_SHORT
,
GL_FALSE
,
sizeof
(
short
int
)},
{
WINED3DDECLTYPE_UDEC3
,
3
,
GL_UNSIGNED_SHORT
,
GL_FALSE
,
sizeof
(
short
int
)},
{
WINED3DDECLTYPE_DEC3N
,
3
,
GL_SHORT
,
GL_TRUE
,
sizeof
(
short
int
)},
{
WINED3DDECLTYPE_DEC3N
,
3
,
GL_SHORT
,
GL_TRUE
,
sizeof
(
short
int
)},
{
WINED3DDECLTYPE_FLOAT16_2
,
2
,
GL_FLOAT
,
GL_FALSE
,
sizeof
(
short
int
)},
/* We should do an extension check for NV_HALF_FLOAT. However, without NV_HALF_FLOAT
{
WINED3DDECLTYPE_FLOAT16_4
,
4
,
GL_FLOAT
,
GL_FALSE
,
sizeof
(
short
int
)}};
* we won't be able to load the data at all, so at least for the moment it wouldn't
* gain us much. */
{
WINED3DDECLTYPE_FLOAT16_2
,
2
,
GL_HALF_FLOAT_NV
,
GL_FALSE
,
sizeof
(
GLhalfNV
)},
{
WINED3DDECLTYPE_FLOAT16_4
,
4
,
GL_HALF_FLOAT_NV
,
GL_FALSE
,
sizeof
(
GLhalfNV
)}};
#define WINED3D_ATR_TYPE(type) glTypeLookup[type].d3dType
#define WINED3D_ATR_TYPE(type) glTypeLookup[type].d3dType
#define WINED3D_ATR_SIZE(type) glTypeLookup[type].size
#define WINED3D_ATR_SIZE(type) glTypeLookup[type].size
...
...
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