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
6f41e98b
Commit
6f41e98b
authored
Feb 20, 2014
by
Kai Tietz
Committed by
Alexandre Julliard
Feb 22, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9shader.h: Added some missing declarations.
parent
d7c4663d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
0 deletions
+51
-0
d3dx9shader.h
include/d3dx9shader.h
+51
-0
No files found.
include/d3dx9shader.h
View file @
6f41e98b
/*
/*
* Copyright 2008 Luis Busquets
* Copyright 2008 Luis Busquets
* Copyright 2014 Kai Tietz
*
*
* This library is free software; you can redistribute it and/or
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* modify it under the terms of the GNU Lesser General Public
...
@@ -42,7 +43,10 @@
...
@@ -42,7 +43,10 @@
#define D3DXSHADER_USE_LEGACY_D3DX9_31_DLL 0x10000
#define D3DXSHADER_USE_LEGACY_D3DX9_31_DLL 0x10000
#define D3DXCONSTTABLE_LARGEADDRESSAWARE 0x20000
typedef
const
char
*
D3DXHANDLE
;
typedef
const
char
*
D3DXHANDLE
;
typedef
D3DXHANDLE
*
LPD3DXHANDLE
;
typedef
enum
_D3DXREGISTER_SET
typedef
enum
_D3DXREGISTER_SET
{
{
...
@@ -112,7 +116,11 @@ typedef struct _D3DXCONSTANT_DESC
...
@@ -112,7 +116,11 @@ typedef struct _D3DXCONSTANT_DESC
const
void
*
DefaultValue
;
const
void
*
DefaultValue
;
}
D3DXCONSTANT_DESC
,
*
LPD3DXCONSTANT_DESC
;
}
D3DXCONSTANT_DESC
,
*
LPD3DXCONSTANT_DESC
;
#if D3DX_SDK_VERSION < 43
DEFINE_GUID
(
IID_ID3DXConstantTable
,
0x9dca3190
,
0x38b9
,
0x4fc3
,
0x92
,
0xe3
,
0x39
,
0xc6
,
0xdd
,
0xfb
,
0x35
,
0x8b
);
DEFINE_GUID
(
IID_ID3DXConstantTable
,
0x9dca3190
,
0x38b9
,
0x4fc3
,
0x92
,
0xe3
,
0x39
,
0xc6
,
0xdd
,
0xfb
,
0x35
,
0x8b
);
#else
DEFINE_GUID
(
IID_ID3DXConstantTable
,
0xab3c758f
,
0x093e
,
0x4356
,
0xb7
,
0x62
,
0x4d
,
0xb1
,
0x8f
,
0x1b
,
0x3a
,
0x01
);
#endif
#undef INTERFACE
#undef INTERFACE
#define INTERFACE ID3DXConstantTable
#define INTERFACE ID3DXConstantTable
...
@@ -228,6 +236,42 @@ DECLARE_INTERFACE_(ID3DXConstantTable, ID3DXBuffer)
...
@@ -228,6 +236,42 @@ DECLARE_INTERFACE_(ID3DXConstantTable, ID3DXBuffer)
typedef
struct
ID3DXConstantTable
*
LPD3DXCONSTANTTABLE
;
typedef
struct
ID3DXConstantTable
*
LPD3DXCONSTANTTABLE
;
typedef
interface
ID3DXTextureShader
*
LPD3DXTEXTURESHADER
;
DEFINE_GUID
(
IID_ID3DXTextureShader
,
0x3e3d67f8
,
0xaa7a
,
0x405d
,
0xa8
,
0x57
,
0xba
,
0x1
,
0xd4
,
0x75
,
0x84
,
0x26
);
#define INTERFACE ID3DXTextureShader
DECLARE_INTERFACE_
(
ID3DXTextureShader
,
IUnknown
)
{
STDMETHOD
(
QueryInterface
)(
THIS_
REFIID
riid
,
void
**
ppv
)
PURE
;
STDMETHOD_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
STDMETHOD
(
GetFunction
)(
THIS_
struct
ID3DXBuffer
**
ppFunction
)
PURE
;
STDMETHOD
(
GetConstantBuffer
)(
THIS_
struct
ID3DXBuffer
**
ppConstantBuffer
)
PURE
;
STDMETHOD
(
GetDesc
)(
THIS_
D3DXCONSTANTTABLE_DESC
*
pDesc
)
PURE
;
STDMETHOD
(
GetConstantDesc
)(
THIS_
D3DXHANDLE
hConstant
,
D3DXCONSTANT_DESC
*
pConstantDesc
,
UINT
*
pCount
)
PURE
;
STDMETHOD_
(
D3DXHANDLE
,
GetConstant
)(
THIS_
D3DXHANDLE
hConstant
,
UINT
Index
)
PURE
;
STDMETHOD_
(
D3DXHANDLE
,
GetConstantByName
)(
THIS_
D3DXHANDLE
hConstant
,
const
char
*
pName
)
PURE
;
STDMETHOD_
(
D3DXHANDLE
,
GetConstantElement
)(
THIS_
D3DXHANDLE
hConstant
,
UINT
Index
)
PURE
;
STDMETHOD
(
SetDefaults
)(
THIS
)
PURE
;
STDMETHOD
(
SetValue
)(
THIS_
D3DXHANDLE
hConstant
,
const
void
*
pData
,
UINT
Bytes
)
PURE
;
STDMETHOD
(
SetBool
)(
THIS_
D3DXHANDLE
hConstant
,
BOOL
b
)
PURE
;
STDMETHOD
(
SetBoolArray
)(
THIS_
D3DXHANDLE
hConstant
,
const
BOOL
*
pb
,
UINT
Count
)
PURE
;
STDMETHOD
(
SetInt
)(
THIS_
D3DXHANDLE
hConstant
,
INT
n
)
PURE
;
STDMETHOD
(
SetIntArray
)(
THIS_
D3DXHANDLE
hConstant
,
const
INT
*
pn
,
UINT
Count
)
PURE
;
STDMETHOD
(
SetFloat
)(
THIS_
D3DXHANDLE
hConstant
,
FLOAT
f
)
PURE
;
STDMETHOD
(
SetFloatArray
)(
THIS_
D3DXHANDLE
hConstant
,
const
FLOAT
*
pf
,
UINT
Count
)
PURE
;
STDMETHOD
(
SetVector
)(
THIS_
D3DXHANDLE
hConstant
,
const
D3DXVECTOR4
*
pVector
)
PURE
;
STDMETHOD
(
SetVectorArray
)(
THIS_
D3DXHANDLE
hConstant
,
const
D3DXVECTOR4
*
pVector
,
UINT
Count
)
PURE
;
STDMETHOD
(
SetMatrix
)(
THIS_
D3DXHANDLE
hConstant
,
const
D3DXMATRIX
*
pMatrix
)
PURE
;
STDMETHOD
(
SetMatrixArray
)(
THIS_
D3DXHANDLE
hConstant
,
const
D3DXMATRIX
*
pMatrix
,
UINT
Count
)
PURE
;
STDMETHOD
(
SetMatrixPointerArray
)(
THIS_
D3DXHANDLE
hConstant
,
const
D3DXMATRIX
**
ppMatrix
,
UINT
Count
)
PURE
;
STDMETHOD
(
SetMatrixTranspose
)(
THIS_
D3DXHANDLE
hConstant
,
const
D3DXMATRIX
*
pMatrix
)
PURE
;
STDMETHOD
(
SetMatrixTransposeArray
)(
THIS_
D3DXHANDLE
hConstant
,
const
D3DXMATRIX
*
pMatrix
,
UINT
Count
)
PURE
;
STDMETHOD
(
SetMatrixTransposePointerArray
)(
THIS_
D3DXHANDLE
hConstant
,
const
D3DXMATRIX
**
ppMatrix
,
UINT
Count
)
PURE
;
};
#undef INTERFACE
typedef
struct
_D3DXMACRO
typedef
struct
_D3DXMACRO
{
{
const
char
*
Name
;
const
char
*
Name
;
...
@@ -291,6 +335,8 @@ HRESULT WINAPI D3DXCompileShader(const char *src_data, UINT data_len, const D3DX
...
@@ -291,6 +335,8 @@ HRESULT WINAPI D3DXCompileShader(const char *src_data, UINT data_len, const D3DX
ID3DXInclude
*
include
,
const
char
*
function_name
,
const
char
*
profile
,
DWORD
flags
,
ID3DXInclude
*
include
,
const
char
*
function_name
,
const
char
*
profile
,
DWORD
flags
,
ID3DXBuffer
**
shader
,
ID3DXBuffer
**
error_messages
,
ID3DXConstantTable
**
constant_table
);
ID3DXBuffer
**
shader
,
ID3DXBuffer
**
error_messages
,
ID3DXConstantTable
**
constant_table
);
HRESULT
WINAPI
D3DXDisassembleShader
(
const
DWORD
*
pShader
,
BOOL
EnableColorCode
,
const
char
*
pComments
,
struct
ID3DXBuffer
**
ppDisassembly
);
HRESULT
WINAPI
D3DXCompileShaderFromFileA
(
const
char
*
filename
,
const
D3DXMACRO
*
defines
,
HRESULT
WINAPI
D3DXCompileShaderFromFileA
(
const
char
*
filename
,
const
D3DXMACRO
*
defines
,
ID3DXInclude
*
include
,
const
char
*
entrypoint
,
const
char
*
profile
,
DWORD
flags
,
ID3DXInclude
*
include
,
const
char
*
entrypoint
,
const
char
*
profile
,
DWORD
flags
,
ID3DXBuffer
**
shader
,
ID3DXBuffer
**
error_messages
,
ID3DXConstantTable
**
constant_table
);
ID3DXBuffer
**
shader
,
ID3DXBuffer
**
error_messages
,
ID3DXConstantTable
**
constant_table
);
...
@@ -326,6 +372,11 @@ HRESULT WINAPI D3DXGetShaderConstantTableEx(const DWORD *byte_code, DWORD flags,
...
@@ -326,6 +372,11 @@ HRESULT WINAPI D3DXGetShaderConstantTableEx(const DWORD *byte_code, DWORD flags,
HRESULT
WINAPI
D3DXGetShaderConstantTable
(
const
DWORD
*
byte_code
,
ID3DXConstantTable
**
constant_table
);
HRESULT
WINAPI
D3DXGetShaderConstantTable
(
const
DWORD
*
byte_code
,
ID3DXConstantTable
**
constant_table
);
HRESULT
WINAPI
D3DXGetShaderInputSemantics
(
const
DWORD
*
pFunction
,
D3DXSEMANTIC
*
pSemantics
,
UINT
*
pCount
);
HRESULT
WINAPI
D3DXGetShaderOutputSemantics
(
const
DWORD
*
pFunction
,
D3DXSEMANTIC
*
pSemantics
,
UINT
*
pCount
);
HRESULT
WINAPI
D3DXCreateTextureShader
(
const
DWORD
*
pFunction
,
ID3DXTextureShader
**
ppTextureShader
);
#ifdef __cplusplus
#ifdef __cplusplus
}
}
#endif
#endif
...
...
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