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
88f6c5c6
Commit
88f6c5c6
authored
Feb 26, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Feb 26, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10: Add the ID3D10EffectTechnique interface.
parent
0a9857f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
0 deletions
+54
-0
d3d10effect.h
include/d3d10effect.h
+54
-0
No files found.
include/d3d10effect.h
View file @
88f6c5c6
...
...
@@ -26,6 +26,10 @@
#define D3D10_EFFECT_VARIABLE_ANNOTATION 0x2
#define D3D10_EFFECT_VARIABLE_EXPLICIT_BIND_POINT 0x4
#ifndef D3D10_BYTES_FROM_BITS
#define D3D10_BYTES_FROM_BITS(x) (((x) + 7) >> 3)
#endif
typedef
struct
_D3D10_EFFECT_TYPE_DESC
{
LPCSTR
TypeName
;
...
...
@@ -50,6 +54,41 @@ typedef struct _D3D10_EFFECT_VARIABLE_DESC
UINT
ExplicitBindPoint
;
}
D3D10_EFFECT_VARIABLE_DESC
;
typedef
struct
_D3D10_TECHNIQUE_DESC
{
LPCSTR
Name
;
UINT
Passes
;
UINT
Annotations
;
}
D3D10_TECHNIQUE_DESC
;
typedef
struct
_D3D10_STATE_BLOCK_MASK
{
BYTE
VS
;
BYTE
VSSamplers
[
D3D10_BYTES_FROM_BITS
(
D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT
)];
BYTE
VSShaderResources
[
D3D10_BYTES_FROM_BITS
(
D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT
)];
BYTE
VSConstantBuffers
[
D3D10_BYTES_FROM_BITS
(
D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT
)];
BYTE
GS
;
BYTE
GSSamplers
[
D3D10_BYTES_FROM_BITS
(
D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT
)];
BYTE
GSShaderResources
[
D3D10_BYTES_FROM_BITS
(
D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT
)];
BYTE
GSConstantBuffers
[
D3D10_BYTES_FROM_BITS
(
D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT
)];
BYTE
PS
;
BYTE
PSSamplers
[
D3D10_BYTES_FROM_BITS
(
D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT
)];
BYTE
PSShaderResources
[
D3D10_BYTES_FROM_BITS
(
D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT
)];
BYTE
PSConstantBuffers
[
D3D10_BYTES_FROM_BITS
(
D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT
)];
BYTE
IAVertexBuffers
[
D3D10_BYTES_FROM_BITS
(
D3D10_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT
)];
BYTE
IAIndexBuffer
;
BYTE
IAInputLayout
;
BYTE
IAPrimitiveTopology
;
BYTE
OMRenderTargets
;
BYTE
OMDepthStencilState
;
BYTE
OMBlendState
;
BYTE
RSViewports
;
BYTE
RSScissorRects
;
BYTE
RSRasterizerState
;
BYTE
SOBuffers
;
BYTE
Predication
;
}
D3D10_STATE_BLOCK_MASK
;
DEFINE_GUID
(
IID_ID3D10EffectType
,
0x4e9e1ddc
,
0xcd9d
,
0x4772
,
0xa8
,
0x37
,
0x00
,
0x18
,
0x0b
,
0x9b
,
0x88
,
0xfd
);
#define INTERFACE ID3D10EffectType
...
...
@@ -137,4 +176,19 @@ DECLARE_INTERFACE_(ID3D10EffectConstantBuffer, ID3D10EffectVariable)
};
#undef INTERFACE
DEFINE_GUID
(
IID_ID3D10EffectTechnique
,
0xdb122ce8
,
0xd1c9
,
0x4292
,
0xb2
,
0x37
,
0x24
,
0xed
,
0x3d
,
0xe8
,
0xb1
,
0x75
);
#define INTERFACE ID3D10EffectTechnique
DECLARE_INTERFACE
(
ID3D10EffectTechnique
)
{
STDMETHOD_
(
BOOL
,
IsValid
)(
THIS
)
PURE
;
STDMETHOD
(
GetDesc
)(
THIS_
D3D10_TECHNIQUE_DESC
*
desc
)
PURE
;
STDMETHOD_
(
struct
ID3D10EffectVariable
*
,
GetAnnotationByIndex
)(
THIS_
UINT
index
)
PURE
;
STDMETHOD_
(
struct
ID3D10EffectVariable
*
,
GetAnnotationByName
)(
THIS_
LPCSTR
name
)
PURE
;
STDMETHOD_
(
struct
ID3D10EffectPass
*
,
GetPassByIndex
)(
THIS_
UINT
index
)
PURE
;
STDMETHOD_
(
struct
ID3D10EffectPass
*
,
GetPassByName
)(
THIS_
LPCSTR
name
)
PURE
;
STDMETHOD
(
ComputeStateBlockMask
)(
THIS_
D3D10_STATE_BLOCK_MASK
*
mask
)
PURE
;
};
#undef INTERFACE
#endif
/* __WINE_D3D10EFFECT_H */
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