]> gitweb.factorcode.org Git - factor.git/blob - basis/windows/directx/d3d11shader/d3d11shader.factor
Fix missing vocab USINGs and mispelled d2dbasetypes
[factor.git] / basis / windows / directx / d3d11shader / d3d11shader.factor
1 USING: alien.syntax alien.c-types classes.struct windows.types
2 windows.directx.d3d10shader windows.directx.d3d10
3 windows.directx.d3d11 windows.com windows.com.syntax
4 windows.directx.d3dcommon ;
5 IN: windows.directx.d3d11shader
6
7 LIBRARY: d3d11
8
9 CONSTANT: D3D11_SHVER_PIXEL_SHADER    0
10 CONSTANT: D3D11_SHVER_VERTEX_SHADER   1
11 CONSTANT: D3D11_SHVER_GEOMETRY_SHADER 2
12 CONSTANT: D3D11_SHVER_HULL_SHADER     3
13 CONSTANT: D3D11_SHVER_DOMAIN_SHADER   4
14 CONSTANT: D3D11_SHVER_COMPUTE_SHADER  5
15 TYPEDEF: int D3D11_SHADER_VERSION_TYPE
16
17 CONSTANT: D3D11_RETURN_TYPE_UNORM     1
18 CONSTANT: D3D11_RETURN_TYPE_SNORM     2
19 CONSTANT: D3D11_RETURN_TYPE_SINT      3
20 CONSTANT: D3D11_RETURN_TYPE_UINT      4
21 CONSTANT: D3D11_RETURN_TYPE_FLOAT     5
22 CONSTANT: D3D11_RETURN_TYPE_MIXED     6
23 CONSTANT: D3D11_RETURN_TYPE_DOUBLE    7
24 CONSTANT: D3D11_RETURN_TYPE_CONTINUED 8
25 TYPEDEF: int D3D11_RESOURCE_RETURN_TYPE
26
27 C-ENUM: D3D11_CT_CBUFFER
28         D3D11_CT_TBUFFER
29         D3D11_CT_INTERFACE_POINTERS
30         D3D11_CT_RESOURCE_BIND_INFO ;
31 TYPEDEF: int D3D11_CBUFFER_TYPE
32 TYPEDEF: D3D11_CBUFFER_TYPE* LPD3D11_CBUFFER_TYPE
33
34 STRUCT: D3D11_SIGNATURE_PARAMETER_DESC
35     { SemanticName    LPCSTR                          }
36     { SemanticIndex   UINT                            }
37     { Register        UINT                            }
38     { SystemValueType D3D10_NAME                      }
39     { ComponentType   D3D10_REGISTER_COMPONENT_TYPE   }
40     { Mask            BYTE                            }
41     { ReadWriteMask   BYTE                            }
42     { Stream          UINT                            } ;
43
44 STRUCT: D3D11_SHADER_BUFFER_DESC
45     { Name            LPCSTR                  }
46     { Type            D3D11_CBUFFER_TYPE      }
47     { Variables       UINT                    }
48     { Size            UINT                    }
49     { uFlags          UINT                    } ;
50
51 STRUCT: D3D11_SHADER_VARIABLE_DESC
52     { Name            LPCSTR         }
53     { StartOffset     UINT           }
54     { Size            UINT           }
55     { uFlags          UINT           }
56     { DefaultValue    LPVOID         }
57     { StartTexture    UINT           }
58     { TextureSize     UINT           }
59     { StartSampler    UINT           }
60     { SamplerSize     UINT           } ;
61
62 STRUCT: D3D11_SHADER_TYPE_DESC
63     { Class           D3D10_SHADER_VARIABLE_CLASS    }
64     { Type            D3D10_SHADER_VARIABLE_TYPE     }
65     { Rows            UINT                           }
66     { Columns         UINT                           }
67     { Elements        UINT                           }
68     { Members         UINT                           }
69     { Offset          UINT                           }
70     { Name            LPCSTR                         } ;
71
72 CONSTANT: D3D11_TESSELLATOR_DOMAIN_UNDEFINED 0
73 CONSTANT: D3D11_TESSELLATOR_DOMAIN_ISOLINE   1
74 CONSTANT: D3D11_TESSELLATOR_DOMAIN_TRI       2
75 CONSTANT: D3D11_TESSELLATOR_DOMAIN_QUAD      3
76 TYPEDEF: int D3D11_TESSELLATOR_DOMAIN
77
78 CONSTANT: D3D11_TESSELLATOR_PARTITIONING_UNDEFINED       0
79 CONSTANT: D3D11_TESSELLATOR_PARTITIONING_INTEGER         1
80 CONSTANT: D3D11_TESSELLATOR_PARTITIONING_POW2            2
81 CONSTANT: D3D11_TESSELLATOR_PARTITIONING_FRACTIONAL_ODD  3
82 CONSTANT: D3D11_TESSELLATOR_PARTITIONING_FRACTIONAL_EVEN 4
83 TYPEDEF: int D3D11_TESSELLATOR_PARTITIONING
84
85 CONSTANT: D3D11_TESSELLATOR_OUTPUT_UNDEFINED    0
86 CONSTANT: D3D11_TESSELLATOR_OUTPUT_POINT        1
87 CONSTANT: D3D11_TESSELLATOR_OUTPUT_LINE         2
88 CONSTANT: D3D11_TESSELLATOR_OUTPUT_TRIANGLE_CW  3
89 CONSTANT: D3D11_TESSELLATOR_OUTPUT_TRIANGLE_CCW 4
90 TYPEDEF: int D3D11_TESSELLATOR_OUTPUT_PRIMITIVE
91
92 STRUCT: D3D11_SHADER_DESC
93     { Version                     UINT                               }
94     { Creator                     LPCSTR                             }
95     { Flags                       UINT                               }
96     { ConstantBuffers             UINT                               }
97     { BoundResources              UINT                               }
98     { InputParameters             UINT                               }
99     { OutputParameters            UINT                               }
100     { InstructionCount            UINT                               }
101     { TempRegisterCount           UINT                               }
102     { TempArrayCount              UINT                               }
103     { DefCount                    UINT                               }
104     { DclCount                    UINT                               }
105     { TextureNormalInstructions   UINT                               }
106     { TextureLoadInstructions     UINT                               }
107     { TextureCompInstructions     UINT                               }
108     { TextureBiasInstructions     UINT                               }
109     { TextureGradientInstructions UINT                               }
110     { FloatInstructionCount       UINT                               }
111     { IntInstructionCount         UINT                               }
112     { UintInstructionCount        UINT                               }
113     { StaticFlowControlCount      UINT                               }
114     { DynamicFlowControlCount     UINT                               }
115     { MacroInstructionCount       UINT                               }
116     { ArrayInstructionCount       UINT                               }
117     { CutInstructionCount         UINT                               }
118     { EmitInstructionCount        UINT                               }
119     { GSOutputTopology            D3D10_PRIMITIVE_TOPOLOGY           }
120     { GSMaxOutputVertexCount      UINT                               }
121     { InputPrimitive              D3D11_PRIMITIVE                    }
122     { PatchConstantParameters     UINT                               }
123     { cGSInstanceCount            UINT                               }
124     { cControlPoints              UINT                               }
125     { HSOutputPrimitive           D3D11_TESSELLATOR_OUTPUT_PRIMITIVE }
126     { HSPartitioning              D3D11_TESSELLATOR_PARTITIONING     }
127     { TessellatorDomain           D3D11_TESSELLATOR_DOMAIN           }
128     { cBarrierInstructions        UINT                               }
129     { cInterlockedInstructions    UINT                               }
130     { cTextureStoreInstructions   UINT                               } ;
131
132 STRUCT: D3D11_SHADER_INPUT_BIND_DESC
133     { Name                        LPCSTR                        }
134     { Type                        D3D10_SHADER_INPUT_TYPE       }
135     { BindPoint                   UINT                          }
136     { BindCount                   UINT                          }
137     { uFlags                      UINT                          }
138     { ReturnType                  D3D11_RESOURCE_RETURN_TYPE    }
139     { Dimension                   D3D10_SRV_DIMENSION           }
140     { NumSamples                  UINT                          } ;
141
142 COM-INTERFACE: ID3D11ShaderReflectionType f {6E6FFA6A-9BAE-4613-A51E-91652D508C21}
143     HRESULT GetDesc ( D3D11_SHADER_TYPE_DESC* pDesc )
144     ID3D11ShaderReflectionType* GetMemberTypeByIndex ( UINT Index )
145     ID3D11ShaderReflectionType* GetMemberTypeByName ( LPCSTR Name )
146     LPCSTR GetMemberTypeName ( UINT Index )
147     HRESULT IsEqual ( ID3D11ShaderReflectionType* pType )
148     ID3D11ShaderReflectionType* GetSubType ( )
149     ID3D11ShaderReflectionType* GetBaseClass ( )
150     UINT GetNumInterfaces ( )
151     ID3D11ShaderReflectionType* GetInterfaceByIndex ( UINT uIndex )
152     HRESULT IsOfType ( ID3D11ShaderReflectionType* pType )
153     HRESULT ImplementsInterface ( ID3D11ShaderReflectionType* pBase ) ;
154
155 COM-INTERFACE: ID3D11ShaderReflectionVariable f {51F23923-F3E5-4BD1-91CB-606177D8DB4C}
156     HRESULT GetDesc ( D3D11_SHADER_VARIABLE_DESC* pDesc )
157     ID3D11ShaderReflectionType* GetType ( )
158     ID3D11ShaderReflectionConstantBuffer* GetBuffer ( )
159     UINT GetInterfaceSlot ( UINT uArrayIndex ) ;
160
161 COM-INTERFACE: ID3D11ShaderReflectionConstantBuffer f {EB62D63D-93DD-4318-8AE8-C6F83AD371B8}
162     HRESULT GetDesc ( D3D11_SHADER_BUFFER_DESC* pDesc )
163     ID3D11ShaderReflectionVariable* GetVariableByIndex ( UINT Index )
164     ID3D11ShaderReflectionVariable* GetVariableByName ( LPCSTR Name ) ;
165
166 COM-INTERFACE: ID3D11ShaderReflection IUnknown {17F27486-A342-4D10-8842-AB0874E7F670}
167     HRESULT GetDesc ( D3D11_SHADER_DESC* pDesc )
168     ID3D11ShaderReflectionConstantBuffer* GetConstantBufferByIndex ( UINT Index )
169     ID3D11ShaderReflectionConstantBuffer* GetConstantBufferByName ( LPCSTR Name )
170     HRESULT GetResourceBindingDesc ( UINT ResourceIndex, D3D11_SHADER_INPUT_BIND_DESC* pDesc )
171     HRESULT GetInputParameterDesc ( UINT ParameterIndex, D3D11_SIGNATURE_PARAMETER_DESC* pDesc )
172     HRESULT GetOutputParameterDesc ( UINT ParameterIndex, D3D11_SIGNATURE_PARAMETER_DESC* pDesc )
173     HRESULT GetPatchConstantParameterDesc ( UINT ParameterIndex, D3D11_SIGNATURE_PARAMETER_DESC* pDesc )
174     ID3D11ShaderReflectionVariable* GetVariableByName ( LPCSTR Name )
175     HRESULT GetResourceBindingDescByName ( LPCSTR Name, D3D11_SHADER_INPUT_BIND_DESC* pDesc )
176     UINT GetMovInstructionCount ( )
177     UINT GetMovcInstructionCount ( )
178     UINT GetConversionInstructionCount ( )
179     UINT GetBitwiseInstructionCount ( )
180     D3D10_PRIMITIVE GetGSInputPrimitive ( )
181     BOOL IsSampleFrequencyShader ( )
182     UINT GetNumInterfaceSlots ( )
183     HRESULT GetMinFeatureLevel ( D3D_FEATURE_LEVEL* pLevel ) ;