annotate win32/directx/d3d10effect.d @ 1:4a9dcbd9e54f

-files of 0.13 beta -fixes so that it now compiles with the current dmd version
author marton@basel.hu
date Tue, 05 Apr 2011 20:44:01 +0200
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
1 /***********************************************************************\
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
2 * d3d10effect.d *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
3 * *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
4 * Windows API header module *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
5 * *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
6 * Placed into public domain *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
7 \***********************************************************************/
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
8 module win32.directx.d3d10effect;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
9
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
10 private import win32.windows;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
11 private import win32.directx.d3d10;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
12
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
13 // some forward references...
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
14 enum D3D10_SHADER_VARIABLE_CLASS;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
15 enum D3D10_SHADER_VARIABLE_TYPE;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
16
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
17 enum D3D10_DEVICE_STATE_TYPES {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
18 D3D10_DST_SO_BUFFERS = 1,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
19 D3D10_DST_OM_RENDER_TARGETS,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
20 D3D10_DST_OM_DEPTH_STENCIL_STATE,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
21 D3D10_DST_OM_BLEND_STATE,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
22 D3D10_DST_VS,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
23 D3D10_DST_VS_SAMPLERS,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
24 D3D10_DST_VS_SHADER_RESOURCES,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
25 D3D10_DST_VS_CONSTANT_BUFFERS,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
26 D3D10_DST_GS,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
27 D3D10_DST_GS_SAMPLERS,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
28 D3D10_DST_GS_SHADER_RESOURCES,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
29 D3D10_DST_GS_CONSTANT_BUFFERS,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
30 D3D10_DST_PS,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
31 D3D10_DST_PS_SAMPLERS,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
32 D3D10_DST_PS_SHADER_RESOURCES,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
33 D3D10_DST_PS_CONSTANT_BUFFERS,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
34 D3D10_DST_IA_VERTEX_BUFFERS,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
35 D3D10_DST_IA_INDEX_BUFFER,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
36 D3D10_DST_IA_INPUT_LAYOUT,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
37 D3D10_DST_IA_PRIMITIVE_TOPOLOGY,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
38 D3D10_DST_RS_VIEWPORTS,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
39 D3D10_DST_RS_SCISSOR_RECTS,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
40 D3D10_DST_RS_RASTERIZER_STATE,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
41 D3D10_DST_PREDICATION
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
42 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
43
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
44 struct D3D10_STATE_BLOCK_MASK {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
45 BYTE VS;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
46 BYTE[2] VSSamplers;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
47 BYTE[16] VSShaderResources;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
48 BYTE[2] VSConstantBuffers;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
49 BYTE GS;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
50 BYTE[2] GSSamplers;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
51 BYTE[16] GSShaderResources;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
52 BYTE[2] GSConstantBuffers;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
53 BYTE PS;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
54 BYTE[2] PSSamplers;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
55 BYTE[16] PSShaderResources;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
56 BYTE[2] PSConstantBuffers;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
57 BYTE[2] IAVertexBuffers;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
58 BYTE IAIndexBuffer;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
59 BYTE IAInputLayout;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
60 BYTE IAPrimitiveTopology;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
61 BYTE OMRenderTargets;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
62 BYTE OMDepthStencilState;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
63 BYTE OMBlendState;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
64 BYTE RSViewports;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
65 BYTE RSScissorRects;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
66 BYTE RSRasterizerState;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
67 BYTE SOBuffers;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
68 BYTE Predication;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
69 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
70
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
71 extern (C) const GUID IID_ID3D10StateBlock = {0x803425a, 0x57f5, 0x4dd6, [0x94, 0x65, 0xa8, 0x75, 0x70, 0x83, 0x4a, 0x08]};
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
72
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
73 interface ID3D10StateBlock : IUnknown {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
74 extern(Windows) :
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
75 HRESULT Capture();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
76 HRESULT Apply();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
77 HRESULT ReleaseAllDeviceObjects();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
78 HRESULT GetDevice(ID3D10Device ppDevice);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
79 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
80
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
81 HRESULT D3D10StateBlockMaskUnion(D3D10_STATE_BLOCK_MASK* pA, D3D10_STATE_BLOCK_MASK* pB, D3D10_STATE_BLOCK_MASK* pResult);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
82 HRESULT D3D10StateBlockMaskIntersect(D3D10_STATE_BLOCK_MASK* pA, D3D10_STATE_BLOCK_MASK* pB, D3D10_STATE_BLOCK_MASK* pResult);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
83 HRESULT D3D10StateBlockMaskDifference(D3D10_STATE_BLOCK_MASK* pA, D3D10_STATE_BLOCK_MASK* pB, D3D10_STATE_BLOCK_MASK* pResult);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
84 HRESULT D3D10StateBlockMaskEnableCapture(D3D10_STATE_BLOCK_MASK* pMask, D3D10_DEVICE_STATE_TYPES StateType, UINT RangeStart, UINT RangeLength);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
85 HRESULT D3D10StateBlockMaskDisableCapture(D3D10_STATE_BLOCK_MASK* pMask, D3D10_DEVICE_STATE_TYPES StateType, UINT RangeStart, UINT RangeLength);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
86 HRESULT D3D10StateBlockMaskEnableAll(D3D10_STATE_BLOCK_MASK* pMask);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
87 HRESULT D3D10StateBlockMaskDisableAll(D3D10_STATE_BLOCK_MASK* pMask);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
88 BOOL D3D10StateBlockMaskGetSetting(D3D10_STATE_BLOCK_MASK* pMask, D3D10_DEVICE_STATE_TYPES StateType, UINT Entry);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
89 HRESULT D3D10CreateStateBlock(ID3D10Device pDevice, D3D10_STATE_BLOCK_MASK* pStateBlockMask, ID3D10StateBlock ppStateBlock);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
90
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
91 const D3D10_EFFECT_COMPILE_CHILD_EFFECT = 1 << 0;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
92 const D3D10_EFFECT_COMPILE_ALLOW_SLOW_OPS = 1 << 1;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
93 const D3D10_EFFECT_SINGLE_THREADED = 1 << 3;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
94 const D3D10_EFFECT_VARIABLE_POOLED = 1 << 0;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
95 const D3D10_EFFECT_VARIABLE_ANNOTATION = 1 << 1;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
96 const D3D10_EFFECT_VARIABLE_EXPLICIT_BIND_POINT = 1 << 2;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
97
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
98 struct D3D10_EFFECT_TYPE_DESC {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
99 LPCSTR TypeName;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
100 D3D10_SHADER_VARIABLE_CLASS Class;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
101 D3D10_SHADER_VARIABLE_TYPE Type;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
102 UINT Elements;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
103 UINT Members;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
104 UINT Rows;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
105 UINT Columns;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
106 UINT PackedSize;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
107 UINT UnpackedSize;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
108 UINT Stride;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
109 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
110
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
111 extern (C) const GUID IID_ID3D10EffectType = {0x4e9e1ddc, 0xcd9d, 0x4772, [0xa8, 0x37, 0x0, 0x18, 0x0b, 0x9b, 0x88, 0xfd]};
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
112
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
113 interface ID3D10EffectType {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
114 /* TODO: fix vtbl[0] bug
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
115 extern(Windows) :
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
116 BOOL IsValid();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
117 HRESULT GetDesc(D3D10_EFFECT_TYPE_DESC* pDesc);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
118 ID3D10EffectType GetMemberTypeByIndex(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
119 ID3D10EffectType GetMemberTypeByName(LPCSTR Name);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
120 ID3D10EffectType GetMemberTypeBySemantic(LPCSTR Semantic);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
121 LPCSTR GetMemberName(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
122 LPCSTR GetMemberSemantic(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
123 */
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
124 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
125
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
126 struct D3D10_EFFECT_VARIABLE_DESC {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
127 LPCSTR Name;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
128 LPCSTR Semantic;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
129 UINT Flags;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
130 UINT Annotations;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
131 UINT BufferOffset;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
132 UINT ExplicitBindPoint;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
133 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
134
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
135 extern (C) const GUID IID_ID3D10EffectVariable = {0xae897105, 0x00e6, 0x45bf, [0xbb, 0x8e, 0x28, 0x1d, 0xd6, 0xdb, 0x8e, 0x1b]};
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
136
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
137 interface ID3D10EffectVariable {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
138 /* TODO: fix vtbl[0] bug
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
139 extern(Windows) :
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
140 BOOL IsValid();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
141 ID3D10EffectType GetType();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
142 HRESULT GetDesc(D3D10_EFFECT_VARIABLE_DESC* pDesc);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
143 ID3D10EffectVariable GetAnnotationByIndex(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
144 ID3D10EffectVariable GetAnnotationByName(LPCSTR Name);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
145 ID3D10EffectVariable GetMemberByIndex(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
146 ID3D10EffectVariable GetMemberByName(LPCSTR Name);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
147 ID3D10EffectVariable GetMemberBySemantic(LPCSTR Semantic);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
148 ID3D10EffectVariable GetElement(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
149 ID3D10EffectConstantBuffer GetParentConstantBuffer();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
150 ID3D10EffectScalarVariable AsScalar();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
151 ID3D10EffectVectorVariable AsVector();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
152 ID3D10EffectMatrixVariable AsMatrix();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
153 ID3D10EffectStringVariable AsString();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
154 ID3D10EffectShaderResourceVariable AsShaderResource();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
155 ID3D10EffectRenderTargetViewVariable AsRenderTargetView();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
156 ID3D10EffectDepthStencilViewVariable AsDepthStencilView();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
157 ID3D10EffectConstantBuffer AsConstantBuffer();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
158 ID3D10EffectShaderVariable AsShader();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
159 ID3D10EffectBlendVariable AsBlend();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
160 ID3D10EffectDepthStencilVariable AsDepthStencil();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
161 ID3D10EffectRasterizerVariable AsRasterizer();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
162 ID3D10EffectSamplerVariable AsSampler();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
163 HRESULT SetRawValue(void* pData, UINT Offset, UINT Count);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
164 HRESULT GetRawValue(void* pData, UINT Offset, UINT Count);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
165 */
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
166 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
167
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
168 extern (C) const GUID IID_ID3D10EffectScalarVariable = {0xe48f7b, 0xd2c8, 0x49e8, [0xa8, 0x6c, 0x2, 0x2d, 0xee, 0x53, 0x43, 0x1f]};
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
169
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
170 interface ID3D10EffectScalarVariable : ID3D10EffectVariable {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
171 /* TODO: fix vtbl[0] bug
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
172 extern(Windows) :
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
173 BOOL IsValid();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
174 ID3D10EffectType GetType();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
175 HRESULT GetDesc(D3D10_EFFECT_VARIABLE_DESC* pDesc);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
176 ID3D10EffectVariable GetAnnotationByIndex(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
177 ID3D10EffectVariable GetAnnotationByName(LPCSTR Name);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
178 ID3D10EffectVariable GetMemberByIndex(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
179 ID3D10EffectVariable GetMemberByName(LPCSTR Name);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
180 ID3D10EffectVariable GetMemberBySemantic(LPCSTR Semantic);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
181 ID3D10EffectVariable GetElement(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
182 ID3D10EffectConstantBuffer GetParentConstantBuffer();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
183 ID3D10EffectScalarVariable AsScalar();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
184 ID3D10EffectVectorVariable AsVector();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
185 ID3D10EffectMatrixVariable AsMatrix();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
186 ID3D10EffectStringVariable AsString();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
187 ID3D10EffectShaderResourceVariable AsShaderResource();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
188 ID3D10EffectRenderTargetViewVariable AsRenderTargetView();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
189 ID3D10EffectDepthStencilViewVariable AsDepthStencilView();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
190 ID3D10EffectConstantBuffer AsConstantBuffer();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
191 ID3D10EffectShaderVariable AsShader();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
192 ID3D10EffectBlendVariable AsBlend();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
193 ID3D10EffectDepthStencilVariable AsDepthStencil();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
194 ID3D10EffectRasterizerVariable AsRasterizer();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
195 ID3D10EffectSamplerVariable AsSampler();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
196 HRESULT SetRawValue(void* pData, UINT ByteOffset, UINT ByteCount);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
197 HRESULT GetRawValue(void* pData, UINT ByteOffset, UINT ByteCount);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
198 HRESULT SetFloat(float Value);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
199 HRESULT GetFloat(float* pValue);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
200 HRESULT SetFloatArray(float* pData, UINT Offset, UINT Count);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
201 HRESULT GetFloatArray(float* pData, UINT Offset, UINT Count);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
202 HRESULT SetInt(int Value);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
203 HRESULT GetInt(int* pValue);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
204 HRESULT SetIntArray(int* pData, UINT Offset, UINT Count);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
205 HRESULT GetIntArray(int* pData, UINT Offset, UINT Count);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
206 HRESULT SetBool(BOOL Value);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
207 HRESULT GetBool(BOOL* pValue);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
208 HRESULT SetBoolArray(BOOL* pData, UINT Offset, UINT Count);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
209 HRESULT GetBoolArray(BOOL* pData, UINT Offset, UINT Count);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
210 */
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
211 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
212
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
213 extern (C) const GUID IID_ID3D10EffectVectorVariable = {0x62b98c44, 0x1f82, 0x4c67, [0xbc, 0xd0, 0x72, 0xcf, 0x8f, 0x21, 0x7e, 0x81]};
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
214
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
215 interface ID3D10EffectVectorVariable : ID3D10EffectVariable {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
216 /* TODO: fix vtbl[0] bug
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
217 extern(Windows) :
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
218 BOOL IsValid();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
219 ID3D10EffectType GetType();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
220 HRESULT GetDesc(D3D10_EFFECT_VARIABLE_DESC* pDesc);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
221 ID3D10EffectVariable GetAnnotationByIndex(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
222 ID3D10EffectVariable GetAnnotationByName(LPCSTR Name);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
223 ID3D10EffectVariable GetMemberByIndex(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
224 ID3D10EffectVariable GetMemberByName(LPCSTR Name);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
225 ID3D10EffectVariable GetMemberBySemantic(LPCSTR Semantic);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
226 ID3D10EffectVariable GetElement(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
227 ID3D10EffectConstantBuffer GetParentConstantBuffer();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
228 ID3D10EffectScalarVariable AsScalar();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
229 ID3D10EffectVectorVariable AsVector();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
230 ID3D10EffectMatrixVariable AsMatrix();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
231 ID3D10EffectStringVariable AsString();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
232 ID3D10EffectShaderResourceVariable AsShaderResource();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
233 ID3D10EffectRenderTargetViewVariable AsRenderTargetView();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
234 ID3D10EffectDepthStencilViewVariable AsDepthStencilView();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
235 ID3D10EffectConstantBuffer AsConstantBuffer();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
236 ID3D10EffectShaderVariable AsShader();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
237 ID3D10EffectBlendVariable AsBlend();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
238 ID3D10EffectDepthStencilVariable AsDepthStencil();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
239 ID3D10EffectRasterizerVariable AsRasterizer();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
240 ID3D10EffectSamplerVariable AsSampler();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
241 HRESULT SetRawValue(void* pData, UINT ByteOffset, UINT ByteCount);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
242 HRESULT GetRawValue(void* pData, UINT ByteOffset, UINT ByteCount);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
243 HRESULT SetBoolVector (BOOL* pData);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
244 HRESULT SetIntVector (int* pData);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
245 HRESULT SetFloatVector(float* pData);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
246 HRESULT GetBoolVector (BOOL* pData);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
247 HRESULT GetIntVector (int* pData);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
248 HRESULT GetFloatVector(float* pData);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
249 HRESULT SetBoolVectorArray (BOOL* pData, UINT Offset, UINT Count);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
250 HRESULT SetIntVectorArray (int* pData, UINT Offset, UINT Count);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
251 HRESULT SetFloatVectorArray(float* pData, UINT Offset, UINT Count);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
252 HRESULT GetBoolVectorArray (BOOL* pData, UINT Offset, UINT Count);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
253 HRESULT GetIntVectorArray (int* pData, UINT Offset, UINT Count);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
254 HRESULT GetFloatVectorArray(float* pData, UINT Offset, UINT Count);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
255 */
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
256 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
257
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
258 extern (C) const GUID IID_ID3D10EffectMatrixVariable = {0x50666c24, 0xb82f, 0x4eed, [0xa1, 0x72, 0x5b, 0x6e, 0x7e, 0x85, 0x22, 0xe0]};
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
259
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
260 interface ID3D10EffectMatrixVariable : ID3D10EffectVariable {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
261 /* TODO: fix vtbl[0] bug
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
262 extern(Windows) :
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
263 BOOL IsValid();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
264 ID3D10EffectType GetType();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
265 HRESULT GetDesc(D3D10_EFFECT_VARIABLE_DESC* pDesc);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
266 ID3D10EffectVariable GetAnnotationByIndex(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
267 ID3D10EffectVariable GetAnnotationByName(LPCSTR Name);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
268 ID3D10EffectVariable GetMemberByIndex(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
269 ID3D10EffectVariable GetMemberByName(LPCSTR Name);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
270 ID3D10EffectVariable GetMemberBySemantic(LPCSTR Semantic);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
271 ID3D10EffectVariable GetElement(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
272 ID3D10EffectConstantBuffer GetParentConstantBuffer();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
273 ID3D10EffectScalarVariable AsScalar();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
274 ID3D10EffectVectorVariable AsVector();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
275 ID3D10EffectMatrixVariable AsMatrix();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
276 ID3D10EffectStringVariable AsString();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
277 ID3D10EffectShaderResourceVariable AsShaderResource();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
278 ID3D10EffectRenderTargetViewVariable AsRenderTargetView();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
279 ID3D10EffectDepthStencilViewVariable AsDepthStencilView();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
280 ID3D10EffectConstantBuffer AsConstantBuffer();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
281 ID3D10EffectShaderVariable AsShader();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
282 ID3D10EffectBlendVariable AsBlend();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
283 ID3D10EffectDepthStencilVariable AsDepthStencil();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
284 ID3D10EffectRasterizerVariable AsRasterizer();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
285 ID3D10EffectSamplerVariable AsSampler();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
286 HRESULT SetRawValue(void* pData, UINT ByteOffset, UINT ByteCount);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
287 HRESULT GetRawValue(void* pData, UINT ByteOffset, UINT ByteCount);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
288 HRESULT SetMatrix(float* pData);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
289 HRESULT GetMatrix(float* pData);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
290 HRESULT SetMatrixArray(float* pData, UINT Offset, UINT Count);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
291 HRESULT GetMatrixArray(float* pData, UINT Offset, UINT Count);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
292 HRESULT SetMatrixTranspose(float* pData);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
293 HRESULT GetMatrixTranspose(float* pData);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
294 HRESULT SetMatrixTransposeArray(float* pData, UINT Offset, UINT Count);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
295 HRESULT GetMatrixTransposeArray(float* pData, UINT Offset, UINT Count);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
296 */
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
297 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
298
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
299 extern (C) const GUID IID_ID3D10EffectStringVariable = {0x71417501, 0x8df9, 0x4e0a, [0xa7, 0x8a, 0x25, 0x5f, 0x97, 0x56, 0xba, 0xff]};
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
300
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
301 interface ID3D10EffectStringVariable : ID3D10EffectVariable {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
302 /* TODO: fix vtbl[0] bug
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
303 extern(Windows) :
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
304 BOOL IsValid();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
305 ID3D10EffectType GetType();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
306 HRESULT GetDesc(D3D10_EFFECT_VARIABLE_DESC* pDesc);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
307 ID3D10EffectVariable GetAnnotationByIndex(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
308 ID3D10EffectVariable GetAnnotationByName(LPCSTR Name);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
309 ID3D10EffectVariable GetMemberByIndex(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
310 ID3D10EffectVariable GetMemberByName(LPCSTR Name);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
311 ID3D10EffectVariable GetMemberBySemantic(LPCSTR Semantic);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
312 ID3D10EffectVariable GetElement(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
313 ID3D10EffectConstantBuffer GetParentConstantBuffer();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
314 ID3D10EffectScalarVariable AsScalar();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
315 ID3D10EffectVectorVariable AsVector();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
316 ID3D10EffectMatrixVariable AsMatrix();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
317 ID3D10EffectStringVariable AsString();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
318 ID3D10EffectShaderResourceVariable AsShaderResource();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
319 ID3D10EffectRenderTargetViewVariable AsRenderTargetView();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
320 ID3D10EffectDepthStencilViewVariable AsDepthStencilView();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
321 ID3D10EffectConstantBuffer AsConstantBuffer();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
322 ID3D10EffectShaderVariable AsShader();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
323 ID3D10EffectBlendVariable AsBlend();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
324 ID3D10EffectDepthStencilVariable AsDepthStencil();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
325 ID3D10EffectRasterizerVariable AsRasterizer();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
326 ID3D10EffectSamplerVariable AsSampler();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
327 HRESULT SetRawValue(void* pData, UINT Offset, UINT Count);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
328 HRESULT GetRawValue(void* pData, UINT Offset, UINT Count);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
329 HRESULT GetString(LPCSTR* ppString);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
330 HRESULT GetStringArray(LPCSTR* ppStrings, UINT Offset, UINT Count);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
331 */
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
332 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
333
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
334 extern (C) const GUID IID_ID3D10EffectShaderResourceVariable = {0xc0a7157b, 0xd872, 0x4b1d, [0x80, 0x73, 0xef, 0xc2, 0xac, 0xd4, 0xb1, 0xfc]};
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
335
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
336 interface ID3D10EffectShaderResourceVariable : ID3D10EffectVariable {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
337 /* TODO: fix vtbl[0] bug
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
338 extern(Windows) :
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
339 BOOL IsValid();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
340 ID3D10EffectType GetType();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
341 HRESULT GetDesc(D3D10_EFFECT_VARIABLE_DESC* pDesc);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
342 ID3D10EffectVariable GetAnnotationByIndex(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
343 ID3D10EffectVariable GetAnnotationByName(LPCSTR Name);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
344 ID3D10EffectVariable GetMemberByIndex(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
345 ID3D10EffectVariable GetMemberByName(LPCSTR Name);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
346 ID3D10EffectVariable GetMemberBySemantic(LPCSTR Semantic);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
347 ID3D10EffectVariable GetElement(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
348 ID3D10EffectConstantBuffer GetParentConstantBuffer();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
349 ID3D10EffectScalarVariable AsScalar();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
350 ID3D10EffectVectorVariable AsVector();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
351 ID3D10EffectMatrixVariable AsMatrix();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
352 ID3D10EffectStringVariable AsString();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
353 ID3D10EffectShaderResourceVariable AsShaderResource();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
354 ID3D10EffectRenderTargetViewVariable AsRenderTargetView();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
355 ID3D10EffectDepthStencilViewVariable AsDepthStencilView();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
356 ID3D10EffectConstantBuffer AsConstantBuffer();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
357 ID3D10EffectShaderVariable AsShader();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
358 ID3D10EffectBlendVariable AsBlend();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
359 ID3D10EffectDepthStencilVariable AsDepthStencil();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
360 ID3D10EffectRasterizerVariable AsRasterizer();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
361 ID3D10EffectSamplerVariable AsSampler();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
362 HRESULT SetRawValue(void* pData, UINT Offset, UINT Count);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
363 HRESULT GetRawValue(void* pData, UINT Offset, UINT Count);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
364 HRESULT SetResource(ID3D10ShaderResourceView pResource);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
365 HRESULT GetResource(ID3D10ShaderResourceView* ppResource);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
366 HRESULT SetResourceArray(ID3D10ShaderResourceView* ppResources, UINT Offset, UINT Count);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
367 HRESULT GetResourceArray(ID3D10ShaderResourceView* ppResources, UINT Offset, UINT Count);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
368 */
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
369 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
370
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
371 extern (C) const GUID IID_ID3D10EffectRenderTargetViewVariable = {0x28ca0cc3, 0xc2c9, 0x40bb, [0xb5, 0x7f, 0x67, 0xb7, 0x37, 0x12, 0x2b, 0x17]};
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
372
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
373 interface ID3D10EffectRenderTargetViewVariable : ID3D10EffectVariable {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
374 /* TODO: fix vtbl[0] bug
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
375 extern(Windows) :
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
376 BOOL IsValid();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
377 ID3D10EffectType GetType();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
378 HRESULT GetDesc(D3D10_EFFECT_VARIABLE_DESC* pDesc);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
379 ID3D10EffectVariable GetAnnotationByIndex(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
380 ID3D10EffectVariable GetAnnotationByName(LPCSTR Name);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
381 ID3D10EffectVariable GetMemberByIndex(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
382 ID3D10EffectVariable GetMemberByName(LPCSTR Name);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
383 ID3D10EffectVariable GetMemberBySemantic(LPCSTR Semantic);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
384 ID3D10EffectVariable GetElement(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
385 ID3D10EffectConstantBuffer GetParentConstantBuffer();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
386 ID3D10EffectScalarVariable AsScalar();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
387 ID3D10EffectVectorVariable AsVector();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
388 ID3D10EffectMatrixVariable AsMatrix();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
389 ID3D10EffectStringVariable AsString();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
390 ID3D10EffectShaderResourceVariable AsShaderResource();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
391 ID3D10EffectRenderTargetViewVariable AsRenderTargetView();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
392 ID3D10EffectDepthStencilViewVariable AsDepthStencilView();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
393 ID3D10EffectConstantBuffer AsConstantBuffer();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
394 ID3D10EffectShaderVariable AsShader();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
395 ID3D10EffectBlendVariable AsBlend();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
396 ID3D10EffectDepthStencilVariable AsDepthStencil();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
397 ID3D10EffectRasterizerVariable AsRasterizer();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
398 ID3D10EffectSamplerVariable AsSampler();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
399 HRESULT SetRawValue(void* pData, UINT Offset, UINT Count);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
400 HRESULT GetRawValue(void* pData, UINT Offset, UINT Count);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
401 HRESULT SetRenderTarget(ID3D10RenderTargetView pResource);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
402 HRESULT GetRenderTarget(ID3D10RenderTargetView* ppResource);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
403 HRESULT SetRenderTargetArray(ID3D10RenderTargetView* ppResources, UINT Offset, UINT Count);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
404 HRESULT GetRenderTargetArray(ID3D10RenderTargetView* ppResources, UINT Offset, UINT Count);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
405 */
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
406 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
407
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
408 extern (C) const GUID IID_ID3D10EffectDepthStencilViewVariable = {0x3e02c918, 0xcc79, 0x4985, [0xb6, 0x22, 0x2d, 0x92, 0xad, 0x70, 0x16, 0x23]};
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
409
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
410 interface ID3D10EffectDepthStencilViewVariable : ID3D10EffectVariable {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
411 /* TODO: fix vtbl[0] bug
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
412 extern(Windows) :
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
413 BOOL IsValid();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
414 ID3D10EffectType GetType();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
415 HRESULT GetDesc(D3D10_EFFECT_VARIABLE_DESC* pDesc);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
416 ID3D10EffectVariable GetAnnotationByIndex(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
417 ID3D10EffectVariable GetAnnotationByName(LPCSTR Name);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
418 ID3D10EffectVariable GetMemberByIndex(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
419 ID3D10EffectVariable GetMemberByName(LPCSTR Name);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
420 ID3D10EffectVariable GetMemberBySemantic(LPCSTR Semantic);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
421 ID3D10EffectVariable GetElement(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
422 ID3D10EffectConstantBuffer GetParentConstantBuffer();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
423 ID3D10EffectScalarVariable AsScalar();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
424 ID3D10EffectVectorVariable AsVector();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
425 ID3D10EffectMatrixVariable AsMatrix();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
426 ID3D10EffectStringVariable AsString();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
427 ID3D10EffectShaderResourceVariable AsShaderResource();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
428 ID3D10EffectRenderTargetViewVariable AsRenderTargetView();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
429 ID3D10EffectDepthStencilViewVariable AsDepthStencilView();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
430 ID3D10EffectConstantBuffer AsConstantBuffer();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
431 ID3D10EffectShaderVariable AsShader();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
432 ID3D10EffectBlendVariable AsBlend();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
433 ID3D10EffectDepthStencilVariable AsDepthStencil();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
434 ID3D10EffectRasterizerVariable AsRasterizer();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
435 ID3D10EffectSamplerVariable AsSampler();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
436 HRESULT SetRawValue(void* pData, UINT Offset, UINT Count);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
437 HRESULT GetRawValue(void* pData, UINT Offset, UINT Count);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
438 HRESULT SetDepthStencil(ID3D10DepthStencilView pResource);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
439 HRESULT GetDepthStencil(ID3D10DepthStencilView* ppResource);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
440 HRESULT SetDepthStencilArray(ID3D10DepthStencilView* ppResources, UINT Offset, UINT Count);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
441 HRESULT GetDepthStencilArray(ID3D10DepthStencilView* ppResources, UINT Offset, UINT Count);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
442 */
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
443 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
444
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
445 extern (C) const GUID IID_ID3D10EffectConstantBuffer = {0x56648f4d, 0xcc8b, 0x4444, [0xa5, 0xad, 0xb5, 0xa3, 0xd7, 0x6e, 0x91, 0xb3]};
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
446
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
447 interface ID3D10EffectConstantBuffer : ID3D10EffectVariable {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
448 /* TODO: fix vtbl[0] bug
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
449 extern(Windows) :
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
450 ID3D10EffectType GetType();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
451 HRESULT GetDesc(D3D10_EFFECT_VARIABLE_DESC* pDesc);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
452 ID3D10EffectVariable GetAnnotationByIndex(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
453 ID3D10EffectVariable GetAnnotationByName(LPCSTR Name);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
454 ID3D10EffectVariable GetMemberByIndex(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
455 ID3D10EffectVariable GetMemberByName(LPCSTR Name);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
456 ID3D10EffectVariable GetMemberBySemantic(LPCSTR Semantic);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
457 ID3D10EffectVariable GetElement(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
458 ID3D10EffectConstantBuffer GetParentConstantBuffer();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
459 ID3D10EffectScalarVariable AsScalar();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
460 ID3D10EffectVectorVariable AsVector();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
461 ID3D10EffectMatrixVariable AsMatrix();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
462 ID3D10EffectStringVariable AsString();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
463 ID3D10EffectShaderResourceVariable AsShaderResource();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
464 ID3D10EffectRenderTargetViewVariable AsRenderTargetView();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
465 ID3D10EffectDepthStencilViewVariable AsDepthStencilView();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
466 ID3D10EffectConstantBuffer AsConstantBuffer();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
467 ID3D10EffectShaderVariable AsShader();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
468 ID3D10EffectBlendVariable AsBlend();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
469 ID3D10EffectDepthStencilVariable AsDepthStencil();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
470 ID3D10EffectRasterizerVariable AsRasterizer();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
471 ID3D10EffectSamplerVariable AsSampler();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
472 HRESULT SetRawValue(void* pData, UINT Offset, UINT Count);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
473 HRESULT GetRawValue(void* pData, UINT Offset, UINT Count);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
474 HRESULT SetConstantBuffer(ID3D10Buffer pConstantBuffer);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
475 HRESULT GetConstantBuffer(ID3D10Buffer* ppConstantBuffer);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
476 HRESULT SetTextureBuffer(ID3D10ShaderResourceView pTextureBuffer);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
477 HRESULT GetTextureBuffer(ID3D10ShaderResourceView* ppTextureBuffer);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
478 */
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
479 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
480
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
481 struct D3D10_EFFECT_SHADER_DESC {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
482 BYTE* pInputSignature;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
483 BOOL IsInline;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
484 BYTE* pBytecode;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
485 UINT BytecodeLength;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
486 LPCSTR SODecl;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
487 UINT NumInputSignatureEntries;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
488 UINT NumOutputSignatureEntries;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
489 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
490
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
491 extern (C) const GUID IID_ID3D10EffectShaderVariable = {0x80849279, 0xc799, 0x4797, [0x8c, 0x33, 0x4, 0x7, 0xa0, 0x7d, 0x9e, 0x6]};
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
492
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
493 interface ID3D10EffectShaderVariable : ID3D10EffectVariable {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
494 /* TODO: fix vtbl[0] bug
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
495 extern(Windows) :
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
496 ID3D10EffectType GetType();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
497 HRESULT GetDesc(D3D10_EFFECT_VARIABLE_DESC* pDesc);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
498 ID3D10EffectVariable GetAnnotationByIndex(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
499 ID3D10EffectVariable GetAnnotationByName(LPCSTR Name);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
500 ID3D10EffectVariable GetMemberByIndex(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
501 ID3D10EffectVariable GetMemberByName(LPCSTR Name);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
502 ID3D10EffectVariable GetMemberBySemantic(LPCSTR Semantic);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
503 ID3D10EffectVariable GetElement(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
504 ID3D10EffectConstantBuffer GetParentConstantBuffer();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
505 ID3D10EffectScalarVariable AsScalar();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
506 ID3D10EffectVectorVariable AsVector();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
507 ID3D10EffectMatrixVariable AsMatrix();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
508 ID3D10EffectStringVariable AsString();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
509 ID3D10EffectShaderResourceVariable AsShaderResource();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
510 ID3D10EffectRenderTargetViewVariable AsRenderTargetView();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
511 ID3D10EffectDepthStencilViewVariable AsDepthStencilView();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
512 ID3D10EffectConstantBuffer AsConstantBuffer();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
513 ID3D10EffectShaderVariable AsShader();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
514 ID3D10EffectBlendVariable AsBlend();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
515 ID3D10EffectDepthStencilVariable AsDepthStencil();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
516 ID3D10EffectRasterizerVariable AsRasterizer();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
517 ID3D10EffectSamplerVariable AsSampler();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
518 HRESULT SetRawValue(void* pData, UINT Offset, UINT Count);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
519 HRESULT GetRawValue(void* pData, UINT Offset, UINT Count);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
520 HRESULT GetShaderDesc(UINT ShaderIndex, D3D10_EFFECT_SHADER_DESC* pDesc);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
521 HRESULT GetVertexShader(UINT ShaderIndex, ID3D10VertexShader* ppVS);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
522 HRESULT GetGeometryShader(UINT ShaderIndex, ID3D10GeometryShader* ppGS);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
523 HRESULT GetPixelShader(UINT ShaderIndex, ID3D10PixelShader* ppPS);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
524 HRESULT GetInputSignatureElementDesc(UINT ShaderIndex, UINT Element, D3D10_SIGNATURE_PARAMETER_DESC* pDesc);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
525 HRESULT GetOutputSignatureElementDesc(UINT ShaderIndex, UINT Element, D3D10_SIGNATURE_PARAMETER_DESC* pDesc);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
526 */
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
527 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
528
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
529 extern (C) const GUID IID_ID3D10EffectBlendVariable = {0x1fcd2294, 0xdf6d, 0x4eae, [0x86, 0xb3, 0xe, 0x91, 0x60, 0xcf, 0xb0, 0x7b]};
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
530
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
531 interface ID3D10EffectBlendVariable : ID3D10EffectVariable {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
532 /* TODO: fix vtbl[0] bug
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
533 extern(Windows) :
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
534 ID3D10EffectType GetType();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
535 HRESULT GetDesc(D3D10_EFFECT_VARIABLE_DESC* pDesc);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
536 ID3D10EffectVariable GetAnnotationByIndex(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
537 ID3D10EffectVariable GetAnnotationByName(LPCSTR Name);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
538 ID3D10EffectVariable GetMemberByIndex(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
539 ID3D10EffectVariable GetMemberByName(LPCSTR Name);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
540 ID3D10EffectVariable GetMemberBySemantic(LPCSTR Semantic);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
541 ID3D10EffectVariable GetElement(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
542 ID3D10EffectConstantBuffer GetParentConstantBuffer();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
543 ID3D10EffectScalarVariable AsScalar();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
544 ID3D10EffectVectorVariable AsVector();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
545 ID3D10EffectMatrixVariable AsMatrix();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
546 ID3D10EffectStringVariable AsString();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
547 ID3D10EffectShaderResourceVariable AsShaderResource();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
548 ID3D10EffectRenderTargetViewVariable AsRenderTargetView();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
549 ID3D10EffectDepthStencilViewVariable AsDepthStencilView();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
550 ID3D10EffectConstantBuffer AsConstantBuffer();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
551 ID3D10EffectShaderVariable AsShader();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
552 ID3D10EffectBlendVariable AsBlend();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
553 ID3D10EffectDepthStencilVariable AsDepthStencil();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
554 ID3D10EffectRasterizerVariable AsRasterizer();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
555 ID3D10EffectSamplerVariable AsSampler();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
556 HRESULT SetRawValue(void* pData, UINT Offset, UINT Count);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
557 HRESULT GetRawValue(void* pData, UINT Offset, UINT Count);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
558 HRESULT GetBlendState(UINT Index, ID3D10BlendState* ppBlendState);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
559 HRESULT GetBackingStore(UINT Index, D3D10_BLEND_DESC* pBlendDesc);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
560 */
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
561 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
562
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
563 extern (C) const GUID IID_ID3D10EffectDepthStencilVariable = {0xaf482368, 0x330a, 0x46a5, [0x9a, 0x5c, 0x1, 0xc7, 0x1a, 0xf2, 0x4c, 0x8d]};
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
564
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
565 interface ID3D10EffectDepthStencilVariable : ID3D10EffectVariable {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
566 /* TODO: fix vtbl[0] bug
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
567 extern(Windows) :
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
568 ID3D10EffectType GetType();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
569 HRESULT GetDesc(D3D10_EFFECT_VARIABLE_DESC* pDesc);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
570 ID3D10EffectVariable GetAnnotationByIndex(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
571 ID3D10EffectVariable GetAnnotationByName(LPCSTR Name);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
572 ID3D10EffectVariable GetMemberByIndex(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
573 ID3D10EffectVariable GetMemberByName(LPCSTR Name);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
574 ID3D10EffectVariable GetMemberBySemantic(LPCSTR Semantic);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
575 ID3D10EffectVariable GetElement(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
576 ID3D10EffectConstantBuffer GetParentConstantBuffer();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
577 ID3D10EffectScalarVariable AsScalar();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
578 ID3D10EffectVectorVariable AsVector();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
579 ID3D10EffectMatrixVariable AsMatrix();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
580 ID3D10EffectStringVariable AsString();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
581 ID3D10EffectShaderResourceVariable AsShaderResource();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
582 ID3D10EffectRenderTargetViewVariable AsRenderTargetView();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
583 ID3D10EffectDepthStencilViewVariable AsDepthStencilView();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
584 ID3D10EffectConstantBuffer AsConstantBuffer();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
585 ID3D10EffectShaderVariable AsShader();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
586 ID3D10EffectBlendVariable AsBlend();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
587 ID3D10EffectDepthStencilVariable AsDepthStencil();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
588 ID3D10EffectRasterizerVariable AsRasterizer();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
589 ID3D10EffectSamplerVariable AsSampler();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
590 HRESULT SetRawValue(void* pData, UINT Offset, UINT Count);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
591 HRESULT GetRawValue(void* pData, UINT Offset, UINT Count);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
592 HRESULT GetDepthStencilState(UINT Index, ID3D10DepthStencilState* ppDepthStencilState);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
593 HRESULT GetBackingStore(UINT Index, D3D10_DEPTH_STENCIL_DESC* pDepthStencilDesc);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
594 */
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
595 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
596
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
597 extern (C) const GUID IID_ID3D10EffectRasterizerVariable = {0x21af9f0e, 0x4d94, 0x4ea9, [0x97, 0x85, 0x2c, 0xb7, 0x6b, 0x8c, 0xb, 0x34]};
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
598
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
599 interface ID3D10EffectRasterizerVariable : ID3D10EffectVariable {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
600 /* TODO: fix vtbl[0] bug
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
601 extern(Windows) :
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
602 ID3D10EffectType GetType();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
603 HRESULT GetDesc(D3D10_EFFECT_VARIABLE_DESC* pDesc);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
604 ID3D10EffectVariable GetAnnotationByIndex(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
605 ID3D10EffectVariable GetAnnotationByName(LPCSTR Name);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
606 ID3D10EffectVariable GetMemberByIndex(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
607 ID3D10EffectVariable GetMemberByName(LPCSTR Name);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
608 ID3D10EffectVariable GetMemberBySemantic(LPCSTR Semantic);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
609 ID3D10EffectVariable GetElement(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
610 ID3D10EffectConstantBuffer GetParentConstantBuffer();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
611 ID3D10EffectScalarVariable AsScalar();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
612 ID3D10EffectVectorVariable AsVector();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
613 ID3D10EffectMatrixVariable AsMatrix();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
614 ID3D10EffectStringVariable AsString();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
615 ID3D10EffectShaderResourceVariable AsShaderResource();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
616 ID3D10EffectRenderTargetViewVariable AsRenderTargetView();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
617 ID3D10EffectDepthStencilViewVariable AsDepthStencilView();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
618 ID3D10EffectConstantBuffer AsConstantBuffer();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
619 ID3D10EffectShaderVariable AsShader();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
620 ID3D10EffectBlendVariable AsBlend();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
621 ID3D10EffectDepthStencilVariable AsDepthStencil();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
622 ID3D10EffectRasterizerVariable AsRasterizer();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
623 ID3D10EffectSamplerVariable AsSampler();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
624 HRESULT SetRawValue(void* pData, UINT Offset, UINT Count);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
625 HRESULT GetRawValue(void* pData, UINT Offset, UINT Count);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
626 HRESULT GetRasterizerState(UINT Index, ID3D10RasterizerState* ppRasterizerState);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
627 HRESULT GetBackingStore(UINT Index, D3D10_RASTERIZER_DESC* pRasterizerDesc);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
628 */
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
629 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
630
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
631 extern (C) const GUID IID_ID3D10EffectSamplerVariable = {0x6530d5c7, 0x07e9, 0x4271, [0xa4, 0x18, 0xe7, 0xce, 0x4b, 0xd1, 0xe4, 0x80]};
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
632
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
633 interface ID3D10EffectSamplerVariable : ID3D10EffectVariable {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
634 /* TODO: fix vtbl[0] bug
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
635 extern(Windows) :
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
636 ID3D10EffectType GetType();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
637 HRESULT GetDesc(D3D10_EFFECT_VARIABLE_DESC* pDesc);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
638 ID3D10EffectVariable GetAnnotationByIndex(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
639 ID3D10EffectVariable GetAnnotationByName(LPCSTR Name);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
640 ID3D10EffectVariable GetMemberByIndex(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
641 ID3D10EffectVariable GetMemberByName(LPCSTR Name);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
642 ID3D10EffectVariable GetMemberBySemantic(LPCSTR Semantic);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
643 ID3D10EffectVariable GetElement(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
644 ID3D10EffectConstantBuffer GetParentConstantBuffer();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
645 ID3D10EffectScalarVariable AsScalar();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
646 ID3D10EffectVectorVariable AsVector();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
647 ID3D10EffectMatrixVariable AsMatrix();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
648 ID3D10EffectStringVariable AsString();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
649 ID3D10EffectShaderResourceVariable AsShaderResource();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
650 ID3D10EffectRenderTargetViewVariable AsRenderTargetView();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
651 ID3D10EffectDepthStencilViewVariable AsDepthStencilView();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
652 ID3D10EffectConstantBuffer AsConstantBuffer();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
653 ID3D10EffectShaderVariable AsShader();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
654 ID3D10EffectBlendVariable AsBlend();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
655 ID3D10EffectDepthStencilVariable AsDepthStencil();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
656 ID3D10EffectRasterizerVariable AsRasterizer();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
657 ID3D10EffectSamplerVariable AsSampler();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
658 HRESULT SetRawValue(void* pData, UINT Offset, UINT Count);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
659 HRESULT GetRawValue(void* pData, UINT Offset, UINT Count);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
660 HRESULT GetSampler(UINT Index, ID3D10SamplerState* ppSampler);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
661 HRESULT GetBackingStore(UINT Index, D3D10_SAMPLER_DESC* pSamplerDesc);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
662 */
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
663 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
664
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
665 struct D3D10_PASS_DESC {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
666 LPCSTR Name;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
667 UINT Annotations;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
668 BYTE* pIAInputSignature;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
669 SIZE_T IAInputSignatureSize;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
670 UINT StencilRef;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
671 UINT SampleMask;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
672 FLOAT[4] BlendFactor;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
673 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
674
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
675 struct D3D10_PASS_SHADER_DESC {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
676 ID3D10EffectShaderVariable pShaderVariable;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
677 UINT ShaderIndex;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
678 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
679
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
680 extern (C) const GUID IID_ID3D10EffectPass = {0x5cfbeb89, 0x1a06, 0x46e0, [0xb2, 0x82, 0xe3, 0xf9, 0xbf, 0xa3, 0x6a, 0x54]};
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
681
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
682 /+interface ID3D10EffectPass {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
683 /* TODO: fix vtbl[0] bug
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
684 extern(Windows) :
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
685 BOOL IsValid();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
686 HRESULT GetDesc(D3D10_PASS_DESC* pDesc);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
687 HRESULT GetVertexShaderDesc(D3D10_PASS_SHADER_DESC* pDesc);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
688 HRESULT GetGeometryShaderDesc(D3D10_PASS_SHADER_DESC* pDesc);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
689 HRESULT GetPixelShaderDesc(D3D10_PASS_SHADER_DESC* pDesc);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
690 ID3D10EffectVariable GetAnnotationByIndex(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
691 ID3D10EffectVariable GetAnnotationByName(LPCSTR Name);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
692 HRESULT Apply(UINT Flags);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
693 HRESULT ComputeStateBlockMask(D3D10_STATE_BLOCK_MASK* pStateBlockMask);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
694 */
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
695 }+/
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
696 /**
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
697 * HACK to FIX vtbl[0] bug:
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
698 * This is an example HACK how to fix all interfaces which are NOT derived from
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
699 * IUnknown. They need the first entry in their vtbl[] point to the first
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
700 * virtual function.
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
701 * See:
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
702 * http://www.digitalmars.com/d/cpp_interface.html
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
703 * http://d.puremagic.com/issues/show_bug.cgi?id=1687
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
704 */
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
705 struct ID3D10EffectPassVtbl {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
706 extern(Windows) :
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
707 BOOL function(ID3D10EffectPass) IsValid;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
708 HRESULT function(ID3D10EffectPass, D3D10_PASS_DESC* pDesc) GetDesc;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
709 HRESULT function(ID3D10EffectPass, D3D10_PASS_SHADER_DESC* pDesc) GetVertexShaderDesc;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
710 HRESULT function(ID3D10EffectPass, D3D10_PASS_SHADER_DESC* pDesc) GetGeometryShaderDesc;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
711 HRESULT function(ID3D10EffectPass, D3D10_PASS_SHADER_DESC* pDesc) GetPixelShaderDesc;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
712 ID3D10EffectVariable function(ID3D10EffectPass, UINT Index) GetAnnotationByIndex;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
713 ID3D10EffectVariable function(ID3D10EffectPass, LPCSTR Name) GetAnnotationByName;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
714 HRESULT function(ID3D10EffectPass, UINT Flags) Apply;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
715 HRESULT function(ID3D10EffectPass, D3D10_STATE_BLOCK_MASK* pStateBlockMask) ComputeStateBlockMask;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
716 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
717 alias ID3D10EffectPassVtbl** ID3D10EffectPass;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
718
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
719 struct D3D10_TECHNIQUE_DESC {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
720 LPCSTR Name;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
721 UINT Passes;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
722 UINT Annotations;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
723 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
724
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
725 extern (C) const GUID IID_ID3D10EffectTechnique = {0xdb122ce8, 0xd1c9, 0x4292, [0xb2, 0x37, 0x24, 0xed, 0x3d, 0xe8, 0xb1, 0x75]};
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
726
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
727 /+interface ID3D10EffectTechnique {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
728 /* TODO: fix vtbl[0] bug
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
729 extern(Windows) :
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
730 BOOL IsValid();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
731 HRESULT GetDesc(D3D10_TECHNIQUE_DESC* pDesc);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
732 ID3D10EffectVariable GetAnnotationByIndex(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
733 ID3D10EffectVariable GetAnnotationByName(LPCSTR Name);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
734 ID3D10EffectPass GetPassByIndex(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
735 ID3D10EffectPass GetPassByName(LPCSTR Name);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
736 HRESULT ComputeStateBlockMask(D3D10_STATE_BLOCK_MASK* pStateBlockMask);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
737 */
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
738 }+/
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
739 /**
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
740 * HACK to FIX vtbl[0] bug:
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
741 * This is an example HACK how to fix all interfaces which are NOT derived from
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
742 * IUnknown. They need the first entry in their vtbl[] point to the first
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
743 * virtual function.
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
744 * See:
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
745 * http://www.digitalmars.com/d/cpp_interface.html
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
746 * http://d.puremagic.com/issues/show_bug.cgi?id=1687
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
747 */
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
748 struct ID3D10EffectTechniqueVtbl {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
749 extern(Windows) :
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
750 BOOL function(ID3D10EffectTechnique) IsValid;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
751 HRESULT function(ID3D10EffectTechnique, D3D10_TECHNIQUE_DESC* pDesc) GetDesc;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
752 ID3D10EffectVariable function(ID3D10EffectTechnique, UINT Index) GetAnnotationByIndex;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
753 ID3D10EffectVariable function(ID3D10EffectTechnique, LPCSTR Name) GetAnnotationByName;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
754 ID3D10EffectPass function(ID3D10EffectTechnique, UINT Index) GetPassByIndex;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
755 ID3D10EffectPass function(ID3D10EffectTechnique, LPCSTR Name) GetPassByName;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
756 HRESULT function(ID3D10EffectTechnique, D3D10_STATE_BLOCK_MASK* pStateBlockMask) ComputeStateBlockMask;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
757 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
758 alias ID3D10EffectTechniqueVtbl** ID3D10EffectTechnique;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
759
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
760 struct D3D10_EFFECT_DESC {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
761 BOOL IsChildEffect;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
762 UINT ConstantBuffers;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
763 UINT SharedConstantBuffers;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
764 UINT GlobalVariables;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
765 UINT SharedGlobalVariables;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
766 UINT Techniques;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
767 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
768
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
769 extern (C) const GUID IID_ID3D10Effect = {0x51b0ca8b, 0xec0b, 0x4519, [0x87, 0xd, 0x8e, 0xe1, 0xcb, 0x50, 0x17, 0xc7]};
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
770
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
771 interface ID3D10Effect : IUnknown {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
772 extern(Windows) :
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
773 BOOL IsValid();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
774 BOOL IsPool();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
775 HRESULT GetDevice(ID3D10Device* ppDevice);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
776 HRESULT GetDesc(D3D10_EFFECT_DESC* pDesc);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
777 ID3D10EffectConstantBuffer GetConstantBufferByIndex(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
778 ID3D10EffectConstantBuffer GetConstantBufferByName(LPCSTR Name);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
779 ID3D10EffectVariable GetVariableByIndex(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
780 ID3D10EffectVariable GetVariableByName(LPCSTR Name);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
781 ID3D10EffectVariable GetVariableBySemantic(LPCSTR Semantic);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
782 ID3D10EffectTechnique GetTechniqueByIndex(UINT Index);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
783 ID3D10EffectTechnique GetTechniqueByName(LPCSTR Name);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
784 HRESULT Optimize();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
785 BOOL IsOptimized();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
786 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
787
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
788 extern (C) const GUID IID_ID3D10EffectPool = {0x9537ab04, 0x3250, 0x412e, [0x82, 0x13, 0xfc, 0xd2, 0xf8, 0x67, 0x79, 0x33]};
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
789
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
790 interface ID3D10EffectPool : IUnknown {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
791 extern(Windows) :
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
792 ID3D10Effect AsEffect();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
793 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
794
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
795 HRESULT D3D10CompileEffectFromMemory(void* pData, SIZE_T DataLength, LPCSTR pSrcFileName, D3D10_SHADER_MACRO* pDefines, ID3D10Include pInclude, UINT HLSLFlags, UINT FXFlags, ID3D10Blob* ppCompiledEffect, ID3D10Blob* ppErrors);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
796 HRESULT D3D10CreateEffectFromMemory(void* pData, SIZE_T DataLength, UINT FXFlags, ID3D10Device pDevice, ID3D10EffectPool pEffectPool, ID3D10Effect* ppEffect);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
797 HRESULT D3D10CreateEffectPoolFromMemory(void* pData, SIZE_T DataLength, UINT FXFlags, ID3D10Device pDevice, ID3D10EffectPool* ppEffectPool);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
798 HRESULT D3D10DisassembleEffect(ID3D10Effect pEffect, BOOL EnableColorCode, ID3D10Blob* ppDisassembly);