<genxml name="SNB" gen="6">
- <struct name="MEMORY_OBJECT_CONTROL_STATE" length="1">
- <field name="Graphics Data Type (GFDT)" start="2" end="2" type="uint"/>
- <field name="Cacheability Control" start="0" end="1" type="uint"/>
- </struct>
-
- <struct name="VERTEX_BUFFER_STATE" length="4">
- <field name="Vertex Buffer Index" start="26" end="31" type="uint"/>
- <field name="Buffer Access Type" start="20" end="20" type="uint">
- <value name="VERTEXDATA" value="0"/>
- <value name="INSTANCEDATA" value="1"/>
- </field>
- <field name="Vertex Buffer Memory Object Control State" start="16" end="19" type="MEMORY_OBJECT_CONTROL_STATE"/>
- <field name="Vertex Buffer MOCS" start="16" end="19" type="uint"/>
- <field name="Null Vertex Buffer" start="13" end="13" type="bool"/>
- <field name="Vertex Fetch Invalidate" start="12" end="12" type="bool" default="0"/>
- <field name="Buffer Pitch" start="0" end="11" type="uint"/>
- <field name="Buffer Starting Address" start="32" end="63" type="address"/>
- <field name="End Address" start="64" end="95" type="address"/>
- <field name="Instance Data Step Rate" start="96" end="127" type="uint"/>
- </struct>
-
- <struct name="VERTEX_ELEMENT_STATE" length="2">
- <field name="Vertex Buffer Index" start="26" end="31" type="uint"/>
- <field name="Valid" start="25" end="25" type="bool"/>
- <field name="Source Element Format" start="16" end="24" type="uint"/>
- <field name="Edge Flag Enable" start="15" end="15" type="bool"/>
- <field name="Source Element Offset" start="0" end="11" type="uint"/>
- <field name="Component 0 Control" start="60" end="62" type="uint"/>
- <field name="Component 1 Control" start="56" end="58" type="uint"/>
- <field name="Component 2 Control" start="52" end="54" type="uint"/>
- <field name="Component 3 Control" start="48" end="50" type="uint"/>
- </struct>
-
- <struct name="SF_OUTPUT_ATTRIBUTE_DETAIL" length="1">
- <field name="Component Override W" start="15" end="15" type="bool"/>
- <field name="Component Override Z" start="14" end="14" type="bool"/>
- <field name="Component Override Y" start="13" end="13" type="bool"/>
- <field name="Component Override X" start="12" end="12" type="bool"/>
- <field name="Swizzle Control Mode" start="11" end="11" type="uint"/>
- <field name="Constant Source" start="9" end="10" type="uint">
- <value name="CONST_0000" value="0"/>
- <value name="CONST_0001_FLOAT" value="1"/>
- <value name="CONST_1111_FLOAT" value="2"/>
- <value name="PRIM_ID" value="3"/>
- </field>
- <field name="Swizzle Select" start="6" end="7" type="uint">
- <value name="INPUTATTR" value="0"/>
- <value name="INPUTATTR_FACING" value="1"/>
- <value name="INPUTATTR_W" value="2"/>
- <value name="INPUTATTR_FACING_W" value="3"/>
- </field>
- <field name="Source Attribute" start="0" end="4" type="uint"/>
- </struct>
-
- <struct name="CLIP_VIEWPORT" length="4">
- <field name="XMin Clip Guardband" start="0" end="31" type="uint"/>
- <field name="XMax Clip Guardband" start="32" end="63" type="uint"/>
- <field name="YMin Clip Guardband" start="64" end="95" type="uint"/>
- <field name="YMax Clip Guardband" start="96" end="127" type="uint"/>
- </struct>
-
- <struct name="SCISSOR_RECT" length="2">
- <field name="Scissor Rectangle Y Min" start="16" end="31" type="uint"/>
- <field name="Scissor Rectangle X Min" start="0" end="15" type="uint"/>
- <field name="Scissor Rectangle Y Max" start="48" end="63" type="uint"/>
- <field name="Scissor Rectangle X Max" start="32" end="47" type="uint"/>
- </struct>
-
- <struct name="SF_VIEWPORT" length="8">
- <field name="Viewport Matrix Element m00" start="0" end="31" type="float"/>
- <field name="Viewport Matrix Element m11" start="32" end="63" type="float"/>
- <field name="Viewport Matrix Element m22" start="64" end="95" type="float">
- <value name="Excludes DWord (0,1)" value="0"/>
- </field>
- <field name="Viewport Matrix Element m30" start="96" end="127" type="float"/>
- <field name="Viewport Matrix Element m31" start="128" end="159" type="float"/>
- <field name="Viewport Matrix Element m32" start="160" end="191" type="float"/>
- <group count="2" start="192" size="32">
- </group>
- </struct>
-
- <struct name="BLEND_STATE_ENTRY" length="2">
- <field name="Color Buffer Blend Enable" start="31" end="31" type="bool"/>
- <field name="Independent Alpha Blend Enable" start="30" end="30" type="bool"/>
- <field name="Alpha Blend Function" start="26" end="28" type="uint">
- <value name="BLENDFUNCTION_ADD" value="0"/>
- <value name="BLENDFUNCTION_SUBTRACT" value="1"/>
- <value name="BLENDFUNCTION_REVERSE_SUBTRACT" value="2"/>
- <value name="BLENDFUNCTION_MIN" value="3"/>
- <value name="BLENDFUNCTION_MAX" value="4"/>
- </field>
- <field name="Source Alpha Blend Factor" start="20" end="24" type="uint">
- <value name="BLENDFACTOR_ONE" value="1"/>
- <value name="BLENDFACTOR_SRC_COLOR" value="2"/>
- <value name="BLENDFACTOR_SRC_ALPHA" value="3"/>
- <value name="BLENDFACTOR_DST_ALPHA" value="4"/>
- <value name="BLENDFACTOR_DST_COLOR" value="5"/>
- <value name="BLENDFACTOR_SRC_ALPHA_SATURATE" value="6"/>
- <value name="BLENDFACTOR_CONST_COLOR" value="7"/>
- <value name="BLENDFACTOR_CONST_ALPHA" value="8"/>
- <value name="BLENDFACTOR_SRC1_COLOR" value="9"/>
- <value name="BLENDFACTOR_SRC1_ALPHA" value="10"/>
- <value name="BLENDFACTOR_ZERO" value="17"/>
- <value name="BLENDFACTOR_INV_SRC_COLOR" value="18"/>
- <value name="BLENDFACTOR_INV_SRC_ALPHA" value="19"/>
- <value name="BLENDFACTOR_INV_DST_ALPHA" value="20"/>
- <value name="BLENDFACTOR_INV_DST_COLOR" value="21"/>
- <value name="BLENDFACTOR_INV_CONST_COLOR" value="23"/>
- <value name="BLENDFACTOR_INV_CONST_ALPHA" value="24"/>
- <value name="BLENDFACTOR_INV_SRC1_COLOR" value="25"/>
- <value name="BLENDFACTOR_INV_SRC1_ALPHA" value="26"/>
- </field>
- <field name="Destination Alpha Blend Factor" start="15" end="19" type="uint"/>
- <field name="Color Blend Function" start="11" end="13" type="uint">
- <value name="BLENDFUNCTION_ADD" value="0"/>
- <value name="BLENDFUNCTION_SUBTRACT" value="1"/>
- <value name="BLENDFUNCTION_REVERSE_SUBTRACT" value="2"/>
- <value name="BLENDFUNCTION_MIN " value="3"/>
- <value name="BLENDFUNCTION_MAX" value="4"/>
- </field>
- <field name="Source Blend Factor" start="5" end="9" type="uint"/>
- <field name="Destination Blend Factor" start="0" end="4" type="uint"/>
- <field name="AlphaToCoverage Enable" start="63" end="63" type="bool"/>
- <field name="AlphaToOne Enable" start="62" end="62" type="bool"/>
- <field name="AlphaToCoverage Dither Enable" start="61" end="61" type="bool"/>
- <field name="Write Disable Alpha" start="59" end="59" type="bool"/>
- <field name="Write Disable Red" start="58" end="58" type="bool"/>
- <field name="Write Disable Green" start="57" end="57" type="bool"/>
- <field name="Write Disable Blue" start="56" end="56" type="bool"/>
- <field name="Logic Op Enable" start="54" end="54" type="bool"/>
- <field name="Logic Op Function" start="50" end="53" type="uint">
- <value name="LOGICOP_CLEAR" value="0"/>
- <value name="LOGICOP_NOR" value="1"/>
- <value name="LOGICOP_AND_INVERTED" value="2"/>
- <value name="LOGICOP_COPY_INVERTED" value="3"/>
- <value name="LOGICOP_AND_REVERSE" value="4"/>
- <value name="LOGICOP_INVERT" value="5"/>
- <value name="LOGICOP_XOR" value="6"/>
- <value name="LOGICOP_NAND" value="7"/>
- <value name="LOGICOP_AND" value="8"/>
- <value name="LOGICOP_EQUIV" value="9"/>
- <value name="LOGICOP_NOOP" value="10"/>
- <value name="LOGICOP_OR_INVERTED" value="11"/>
- <value name="LOGICOP_COPY" value="12"/>
- <value name="LOGICOP_OR_REVERSE" value="13"/>
- <value name="LOGICOP_OR" value="14"/>
- <value name="LOGICOP_SET" value="15"/>
- </field>
- <field name="Alpha Test Enable" start="48" end="48" type="bool"/>
- <field name="Alpha Test Function" start="45" end="47" type="uint">
- <value name="COMPAREFUNCTION_ALWAYS" value="0"/>
- <value name="COMPAREFUNCTION_NEVER" value="1"/>
- <value name="COMPAREFUNCTION_LESS" value="2"/>
- <value name="COMPAREFUNCTION_EQUAL" value="3"/>
- <value name="COMPAREFUNCTION_LEQUAL" value="4"/>
- <value name="COMPAREFUNCTION_GREATER" value="5"/>
- <value name="COMPAREFUNCTION_NOTEQUAL" value="6"/>
- <value name="COMPAREFUNCTION_GEQUAL" value="7"/>
- </field>
- <field name="Color Dither Enable" start="44" end="44" type="bool"/>
- <field name="X Dither Offset" start="42" end="43" type="uint"/>
- <field name="Y Dither Offset" start="40" end="41" type="uint"/>
- <field name="Color Clamp Range" start="34" end="35" type="uint">
- <value name="COLORCLAMP_UNORM" value="0"/>
- <value name="COLORCLAMP_SNORM" value="1"/>
- <value name="COLORCLAMP_RTFORMAT" value="2"/>
- </field>
- <field name="Pre-Blend Color Clamp Enable" start="33" end="33" type="bool"/>
- <field name="Post-Blend Color Clamp Enable" start="32" end="32" type="bool"/>
- </struct>
-
- <struct name="BLEND_STATE" length="16">
- <group count="8" start="0" size="64">
- <field name="Entry" start="0" end="63" type="BLEND_STATE_ENTRY"/>
- </group>
- </struct>
+ <enum name="3D_Prim_Topo_Type" prefix="3DPRIM">
+ <value name="POINTLIST" value="1"/>
+ <value name="LINELIST" value="2"/>
+ <value name="LINESTRIP" value="3"/>
+ <value name="TRILIST" value="4"/>
+ <value name="TRISTRIP" value="5"/>
+ <value name="TRIFAN" value="6"/>
+ <value name="QUADLIST" value="7"/>
+ <value name="QUADSTRIP" value="8"/>
+ <value name="LINELIST_ADJ" value="9"/>
+ <value name="LINESTRIP_ADJ" value="10"/>
+ <value name="TRILIST_ADJ" value="11"/>
+ <value name="TRISTRIP_ADJ" value="12"/>
+ <value name="TRISTRIP_REVERSE" value="13"/>
+ <value name="POLYGON" value="14"/>
+ <value name="RECTLIST" value="15"/>
+ <value name="LINELOOP" value="16"/>
+ <value name="POINTLIST _BF" value="17"/>
+ <value name="LINESTRIP_CONT" value="18"/>
+ <value name="LINESTRIP_BF" value="19"/>
+ <value name="LINESTRIP_CONT_BF" value="20"/>
+ <value name="TRIFAN_NOSTIPPLE" value="22"/>
+ </enum>
- <struct name="CC_VIEWPORT" length="2">
- <field name="Minimum Depth" start="0" end="31" type="float"/>
- <field name="Maximum Depth" start="32" end="63" type="float"/>
- </struct>
+ <enum name="3D_Vertex_Component_Control" prefix="VFCOMP">
+ <value name="NOSTORE" value="0"/>
+ <value name="STORE_SRC" value="1"/>
+ <value name="STORE_0" value="2"/>
+ <value name="STORE_1_FP" value="3"/>
+ <value name="STORE_1_INT" value="4"/>
+ <value name="STORE_VID" value="5"/>
+ <value name="STORE_IID" value="6"/>
+ <value name="STORE_PID" value="7"/>
+ </enum>
- <struct name="COLOR_CALC_STATE" length="6">
- <field name="Stencil Reference Value" start="24" end="31" type="uint"/>
- <field name="Backface Stencil Reference Value" start="16" end="23" type="uint"/>
- <field name="Round Disable Function Disable" start="15" end="15" type="bool"/>
- <field name="Alpha Test Format" start="0" end="0" type="uint">
- <value name="ALPHATEST_UNORM8" value="0"/>
- <value name="ALPHATEST_FLOAT32" value="1"/>
- </field>
- <field name="Alpha Reference Value As UNORM8" start="32" end="63" type="uint"/>
- <field name="Alpha Reference Value As FLOAT32" start="32" end="63" type="float"/>
- <field name="Blend Constant Color Red" start="64" end="95" type="float"/>
- <field name="Blend Constant Color Green" start="96" end="127" type="float"/>
- <field name="Blend Constant Color Blue" start="128" end="159" type="float"/>
- <field name="Blend Constant Color Alpha" start="160" end="191" type="float"/>
- </struct>
-
- <struct name="DEPTH_STENCIL_STATE" length="3">
- <field name="Stencil Test Enable" start="31" end="31" type="bool"/>
- <field name="Stencil Test Function" start="28" end="30" type="uint">
- <value name="COMPAREFUNCTION_ALWAYS" value="0"/>
- <value name="COMPAREFUNCTION_NEVER" value="1"/>
- <value name="COMPAREFUNCTION_LESS" value="2"/>
- <value name="COMPAREFUNCTION_EQUAL" value="3"/>
- <value name="COMPAREFUNCTION_LEQUAL" value="4"/>
- <value name="COMPAREFUNCTION_GREATER" value="5"/>
- <value name="COMPAREFUNCTION_NOTEQUAL" value="6"/>
- <value name="COMPAREFUNCTION_GEQUAL" value="7"/>
- </field>
- <field name="Stencil Fail Op" start="25" end="27" type="uint">
- <value name="STENCILOP_KEEP" value="0"/>
- <value name="STENCILOP_ZERO" value="1"/>
- <value name="STENCILOP_REPLACE" value="2"/>
- <value name="STENCILOP_INCRSAT" value="3"/>
- <value name="STENCILOP_DECRSAT" value="4"/>
- <value name="STENCILOP_INCR" value="5"/>
- <value name="STENCILOP_DECR" value="6"/>
- <value name="STENCILOP_INVERT" value="7"/>
- </field>
- <field name="Stencil Pass Depth Fail Op" start="22" end="24" type="uint"/>
- <field name="Stencil Pass Depth Pass Op" start="19" end="21" type="uint"/>
- <field name="Stencil Buffer Write Enable" start="18" end="18" type="bool"/>
- <field name="Double Sided Stencil Enable" start="15" end="15" type="bool"/>
- <field name="Backface Stencil Test Function" start="12" end="14" type="uint">
- <value name="COMPAREFUNCTION_ALWAYS" value="0"/>
- <value name="COMPAREFUNCTION_NEVER" value="1"/>
- <value name="COMPAREFUNCTION_LESS" value="2"/>
- <value name="COMPAREFUNCTION_EQUAL" value="3"/>
- <value name="COMPAREFUNCTION_LEQUAL" value="4"/>
- <value name="COMPAREFUNCTION_GREATER" value="5"/>
- <value name="COMPAREFUNCTION_NOTEQUAL" value="6"/>
- <value name="COMPAREFUNCTION_GEQUAL" value="7"/>
- </field>
- <field name="Backface Stencil Fail Op" start="9" end="11" type="uint">
- <value name="STENCILOP_KEEP" value="0"/>
- <value name="STENCILOP_ZERO" value="1"/>
- <value name="STENCILOP_REPLACE" value="2"/>
- <value name="STENCILOP_INCRSAT" value="3"/>
- <value name="STENCILOP_DECRSAT" value="4"/>
- <value name="STENCILOP_INCR" value="5"/>
- <value name="STENCILOP_DECR" value="6"/>
- <value name="STENCILOP_INVERT" value="7"/>
- </field>
- <field name="Backface Stencil Pass Depth Fail Op" start="6" end="8" type="uint"/>
- <field name="Backface Stencil Pass Depth Pass Op" start="3" end="5" type="uint"/>
- <field name="Stencil Test Mask" start="56" end="63" type="uint"/>
- <field name="Stencil Write Mask" start="48" end="55" type="uint"/>
- <field name="Backface Stencil Test Mask" start="40" end="47" type="uint"/>
- <field name="Backface Stencil Write Mask" start="32" end="39" type="uint"/>
- <field name="Depth Test Enable" start="95" end="95" type="bool"/>
- <field name="Depth Test Function" start="91" end="93" type="uint">
- <value name="COMPAREFUNCTION_ALWAYS" value="0"/>
- <value name="COMPAREFUNCTION_NEVER" value="1"/>
- <value name="COMPAREFUNCTION_LESS" value="2"/>
- <value name="COMPAREFUNCTION_EQUAL" value="3"/>
- <value name="COMPAREFUNCTION_LEQUAL" value="4"/>
- <value name="COMPAREFUNCTION_GREATER" value="5"/>
- <value name="COMPAREFUNCTION_NOTEQUAL" value="6"/>
- <value name="COMPAREFUNCTION_GEQUAL" value="7"/>
- </field>
- <field name="Depth Buffer Write Enable" start="90" end="90" type="bool"/>
- </struct>
-
- <struct name="INTERFACE_DESCRIPTOR_DATA" length="8">
- <field name="Kernel Start Pointer" start="6" end="31" type="offset"/>
- <field name="Single Program Flow" start="50" end="50" type="bool"/>
- <field name="Thread Priority" start="49" end="49" type="uint">
- <value name="Normal Priority" value="0"/>
- <value name="High Priority" value="1"/>
- </field>
- <field name="Floating Point Mode" start="48" end="48" type="uint">
- <value name="IEEE-754" value="0"/>
- <value name="Alternate" value="1"/>
- </field>
- <field name="Illegal Opcode Exception Enable" start="45" end="45" type="bool"/>
- <field name="Mask Stack Exception Enable" start="43" end="43" type="bool"/>
- <field name="Software Exception Enable" start="39" end="39" type="bool"/>
- <field name="Sampler State Pointer" start="69" end="95" type="offset"/>
- <field name="Sampler Count" start="66" end="68" type="uint">
- <value name="No samplers used" value="0"/>
- <value name="Between 1 and 4 samplers used" value="1"/>
- <value name="Between 5 and 8 samplers used" value="2"/>
- <value name="Between 9 and 12 samplers used" value="3"/>
- <value name="Between 13 and 16 samplers used" value="4"/>
- </field>
- <field name="Binding Table Pointer" start="101" end="127" type="offset"/>
- <field name="Binding Table Entry Count" start="96" end="100" type="uint"/>
- <field name="Constant URB Entry Read Length" start="144" end="159" type="uint"/>
- <field name="Constant URB Entry Read Offset" start="128" end="143" type="uint"/>
- <field name="Barrier Return GRF Offset" start="184" end="191" type="uint"/>
- <field name="Barrier Return Byte" start="168" end="175" type="uint"/>
- <field name="Barrier ID" start="160" end="163" type="uint"/>
- </struct>
-
- <struct name="PALETTE_ENTRY" length="1">
- <field name="Alpha" start="24" end="31" type="uint"/>
- <field name="Red" start="16" end="23" type="uint"/>
- <field name="Green" start="8" end="15" type="uint"/>
- <field name="Blue" start="0" end="7" type="uint"/>
- </struct>
-
- <struct name="BINDING_TABLE_STATE" length="1">
- <field name="Surface State Pointer" start="5" end="31" type="offset"/>
- </struct>
-
- <struct name="RENDER_SURFACE_STATE" length="6">
- <field name="Surface Type" start="29" end="31" type="uint">
- <value name="SURFTYPE_1D" value="0"/>
- <value name="SURFTYPE_2D" value="1"/>
- <value name="SURFTYPE_3D" value="2"/>
- <value name="SURFTYPE_CUBE" value="3"/>
- <value name="SURFTYPE_BUFFER" value="4"/>
- <value name="SURFTYPE_NULL" value="7"/>
- </field>
- <field name="Data Return Format" start="27" end="27" type="uint">
- <value name="DATA_RETURN_FLOAT32" value="0"/>
- </field>
- <field name="Surface Format" start="18" end="26" type="uint"/>
- <field name="Vertical Line Stride" start="12" end="12" type="uint"/>
- <field name="Vertical Line Stride Offset" start="11" end="11" type="uint"/>
- <field name="MIP Map Layout Mode" start="10" end="10" type="uint">
- <value name="MIPLAYOUT_BELOW" value="0"/>
- <value name="MIPLAYOUT_RIGHT" value="1"/>
- </field>
- <field name="Cube Map Corner Mode" start="9" end="9" type="uint">
- <value name="CUBE_REPLICATE" value="0"/>
- <value name="CUBE_AVERAGE" value="1"/>
- </field>
- <field name="Render Cache Read Write Mode" start="8" end="8" type="uint">
- <value name="WRITE_ONLY" value="0"/>
- <value name="READ_WRITE" value="1"/>
- </field>
- <field name="Media Boundary Pixel Mode" start="6" end="7" type="uint">
- <value name="NORMAL_MODE" value="0"/>
- <value name="PROGRESSIVE_FRAME" value="2"/>
- <value name="INTERLACED_FRAME" value="3"/>
- </field>
- <field name="Cube Face Enables" start="0" end="5" type="uint"/>
- <field name="Surface Base Address" start="32" end="63" type="address"/>
- <field name="Height" start="83" end="95" type="uint"/>
- <field name="Width" start="70" end="82" type="uint"/>
- <field name="MIP Count / LOD" start="66" end="69" type="uint"/>
- <field name="Render Target Rotation" start="64" end="65" type="uint">
- <value name="RTROTATE_0DEG" value="0"/>
- <value name="RTROTATE_90DEG" value="1"/>
- <value name="RTROTATE_270DEG" value="3"/>
- </field>
- <field name="Depth" start="117" end="127" type="uint"/>
- <field name="Surface Pitch" start="99" end="115" type="uint"/>
- <field name="Tiled Surface" start="97" end="97" type="bool"/>
- <field name="Tile Walk" start="96" end="96" type="uint">
- <value name="TILEWALK_XMAJOR" value="0"/>
- <value name="TILEWALK_YMAJOR" value="1"/>
- </field>
- <field name="Surface Min LOD" start="156" end="159" type="uint"/>
- <field name="Minimum Array Element" start="145" end="155" type="uint"/>
- <field name="Render Target View Extent" start="136" end="144" type="uint"/>
- <field name="Number of Multisamples" start="132" end="134" type="uint">
- <value name="MULTISAMPLECOUNT_1" value="0"/>
- <value name="MULTISAMPLECOUNT_4" value="2"/>
- </field>
- <field name="Multisample Position Palette Index" start="128" end="130" type="uint"/>
- <field name="X Offset" start="185" end="191" type="uint"/>
- <field name="Surface Vertical Alignment" start="184" end="184" type="uint">
- <value name="VALIGN_2" value="0"/>
- <value name="VALIGN_4" value="1"/>
- </field>
- <field name="Y Offset" start="180" end="183" type="uint"/>
- <field name="Surface Object Control State" start="176" end="179" type="MEMORY_OBJECT_CONTROL_STATE"/>
- <field name="MOCS" start="176" end="179" type="uint"/>
- </struct>
-
- <struct name="SAMPLER_BORDER_COLOR_STATE" length="12">
- <field name="Border Color Unorm Red" start="0" end="7" type="uint"/>
- <field name="Border Color Unorm Green" start="8" end="15" type="uint"/>
- <field name="Border Color Unorm Blue" start="16" end="23" type="uint"/>
- <field name="Border Color Unorm Alpha" start="24" end="31" type="uint"/>
-
- <field name="Border Color Float Red" start="32" end="63" type="float"/>
- <field name="Border Color Float Green" start="64" end="95" type="float"/>
- <field name="Border Color Float Blue" start="96" end="127" type="float"/>
- <field name="Border Color Float Alpha" start="128" end="159" type="float"/>
-
- <field name="Border Color Float16 Red" start="160" end="175" type="uint"/>
- <field name="Border Color Float16 Green" start="176" end="191" type="uint"/>
- <field name="Border Color Float16 Blue" start="192" end="207" type="uint"/>
- <field name="Border Color Float16 Alpha" start="208" end="223" type="uint"/>
-
- <field name="Border Color Unorm16 Red" start="224" end="239" type="uint"/>
- <field name="Border Color Unorm16 Green" start="240" end="255" type="uint"/>
- <field name="Border Color Unorm16 Blue" start="256" end="271" type="uint"/>
- <field name="Border Color Unorm16 Alpha" start="272" end="287" type="uint"/>
-
- <field name="Border Color Snorm16 Red" start="288" end="303" type="int"/>
- <field name="Border Color Snorm16 Green" start="304" end="319" type="int"/>
- <field name="Border Color Snorm16 Blue" start="320" end="335" type="int"/>
- <field name="Border Color Snorm16 Alpha" start="336" end="351" type="int"/>
-
- <field name="Border Color Snorm8 Red" start="352" end="359" type="int"/>
- <field name="Border Color Snorm8 Green" start="360" end="367" type="int"/>
- <field name="Border Color Snorm8 Blue" start="368" end="375" type="int"/>
- <field name="Border Color Snorm8 Alpha" start="376" end="383" type="int"/>
- </struct>
-
- <struct name="SAMPLER_STATE" length="4">
- <field name="Sampler Disable" start="31" end="31" type="bool"/>
- <field name="Texture Border Color Mode" start="29" end="29" type="uint">
- <value name="DX10/OGL" value="0"/>
- <value name="DX9" value="1"/>
- </field>
- <field name="LOD PreClamp Enable" start="28" end="28" type="uint" prefix="CLAMP_ENABLE">
- <value name="OGL" value="1"/>
- </field>
- <field name="Min and Mag State Not Equal" start="27" end="27" type="uint">
- <value name="MIN_MAG_EQ" value="0"/>
- <value name="MIN_MAG_NEQ" value="1"/>
- </field>
- <field name="Base Mip Level" start="22" end="26" type="u4.1"/>
- <field name="Mip Mode Filter" start="20" end="21" type="uint" prefix="MIPFILTER">
- <value name="NONE" value="0"/>
- <value name="NEAREST" value="1"/>
- <value name="LINEAR" value="3"/>
- </field>
- <field name="Mag Mode Filter" start="17" end="19" type="uint" prefix="MAPFILTER">
- <value name="NEAREST" value="0"/>
- <value name="LINEAR" value="1"/>
- <value name="ANISOTROPIC" value="2"/>
- <value name="MONO" value="6"/>
- </field>
- <field name="Min Mode Filter" start="14" end="16" type="uint" prefix="MAPFILTER"/>
- <field name="Texture LOD Bias" start="3" end="13" type="s4.6"/>
- <field name="Shadow Function" start="0" end="2" type="uint">
- <value name="PREFILTEROP_ALWAYS" value="0"/>
- <value name="PREFILTEROP_NEVER" value="1"/>
- <value name="PREFILTEROP_LESS" value="2"/>
- <value name="PREFILTEROP_EQUAL" value="3"/>
- <value name="PREFILTEROP_LEQUAL" value="4"/>
- <value name="PREFILTEROP_GREATER" value="5"/>
- <value name="PREFILTEROP_NOTEQUAL" value="6"/>
- <value name="PREFILTEROP_GEQUAL" value="7"/>
- </field>
- <field name="Min LOD" start="54" end="63" type="u4.6"/>
- <field name="Max LOD" start="44" end="53" type="u4.6"/>
- <field name="Cube Surface Control Mode" start="41" end="41" type="uint">
- <value name="CUBECTRLMODE_PROGRAMMED" value="0"/>
- <value name="CUBECTRLMODE_OVERRIDE" value="1"/>
- </field>
- <field name="TCX Address Control Mode" start="38" end="40" type="uint"/>
- <field name="TCY Address Control Mode" start="35" end="37" type="uint"/>
- <field name="TCZ Address Control Mode" start="32" end="34" type="uint"/>
- <field name="Border Color Pointer" start="69" end="95" type="offset"/>
- <field name="Monochrome Filter Height: Reserved" start="125" end="127" type="uint"/>
- <field name="Monochrome Filter Width" start="122" end="124" type="uint"/>
- <field name="ChromaKey Enable" start="121" end="121" type="bool"/>
- <field name="ChromaKey Index" start="119" end="120" type="uint"/>
- <field name="ChromaKey Mode" start="118" end="118" type="uint">
- <value name="KEYFILTER_KILL_ON_ANY_MATCH" value="0"/>
- <value name="KEYFILTER_REPLACE_BLACK" value="1"/>
- </field>
- <field name="Maximum Anisotropy" start="115" end="117" type="uint">
- <value name="RATIO 2:1" value="0"/>
- <value name="RATIO 4:1" value="1"/>
- <value name="RATIO 6:1" value="2"/>
- <value name="RATIO 8:1" value="3"/>
- <value name="RATIO 10:1" value="4"/>
- <value name="RATIO 12:1" value="5"/>
- <value name="RATIO 14:1" value="6"/>
- <value name="RATIO 16:1" value="7"/>
- </field>
- <field name="R Address Min Filter Rounding Enable" start="109" end="109" type="bool"/>
- <field name="R Address Mag Filter Rounding Enable" start="110" end="110" type="bool"/>
- <field name="V Address Min Filter Rounding Enable" start="111" end="111" type="bool"/>
- <field name="V Address Mag Filter Rounding Enable" start="112" end="112" type="bool"/>
- <field name="U Address Min Filter Rounding Enable" start="113" end="113" type="bool"/>
- <field name="U Address Mag Filter Rounding Enable" start="114" end="114" type="bool"/>
- <field name="Non-normalized Coordinate Enable" start="96" end="96" type="bool"/>
- </struct>
-
- <enum name="3D_Prim_Topo_Type" prefix="3DPRIM">
- <value name="POINTLIST" value="1"/>
- <value name="LINELIST" value="2"/>
- <value name="LINESTRIP" value="3"/>
- <value name="TRILIST" value="4"/>
- <value name="TRISTRIP" value="5"/>
- <value name="TRIFAN" value="6"/>
- <value name="QUADLIST" value="7"/>
- <value name="QUADSTRIP" value="8"/>
- <value name="LINELIST_ADJ" value="9"/>
- <value name="LINESTRIP_ADJ" value="10"/>
- <value name="TRILIST_ADJ" value="11"/>
- <value name="TRISTRIP_ADJ" value="12"/>
- <value name="TRISTRIP_REVERSE" value="13"/>
- <value name="POLYGON" value="14"/>
- <value name="RECTLIST" value="15"/>
- <value name="LINELOOP" value="16"/>
- <value name="POINTLIST _BF" value="17"/>
- <value name="LINESTRIP_CONT" value="18"/>
- <value name="LINESTRIP_BF" value="19"/>
- <value name="LINESTRIP_CONT_BF" value="20"/>
- <value name="TRIFAN_NOSTIPPLE" value="22"/>
- </enum>
-
- <enum name="3D_Vertex_Component_Control" prefix="VFCOMP">
- <value name="NOSTORE" value="0"/>
- <value name="STORE_SRC" value="1"/>
- <value name="STORE_0" value="2"/>
- <value name="STORE_1_FP" value="3"/>
- <value name="STORE_1_INT" value="4"/>
- <value name="STORE_VID" value="5"/>
- <value name="STORE_IID" value="6"/>
- <value name="STORE_PID" value="7"/>
- </enum>
-
- <enum name="3D_Compare_Function" prefix="COMPAREFUNCTION">
- <value name="ALWAYS" value="0"/>
- <value name="NEVER" value="1"/>
- <value name="LESS" value="2"/>
- <value name="EQUAL" value="3"/>
- <value name="LEQUAL" value="4"/>
- <value name="GREATER" value="5"/>
- <value name="NOTEQUAL" value="6"/>
- <value name="GEQUAL" value="7"/>
- </enum>
+ <enum name="3D_Compare_Function" prefix="COMPAREFUNCTION">
+ <value name="ALWAYS" value="0"/>
+ <value name="NEVER" value="1"/>
+ <value name="LESS" value="2"/>
+ <value name="EQUAL" value="3"/>
+ <value name="LEQUAL" value="4"/>
+ <value name="GREATER" value="5"/>
+ <value name="NOTEQUAL" value="6"/>
+ <value name="GEQUAL" value="7"/>
+ </enum>
<enum name="SURFACE_FORMAT" prefix="SF">
<value name="R32G32B32A32_FLOAT" value="0"/>
<value name="RAW" value="511"/>
</enum>
- <enum name="Texture Coordinate Mode" prefix="TCM">
- <value name="WRAP" value="0"/>
- <value name="MIRROR" value="1"/>
- <value name="CLAMP" value="2"/>
- <value name="CUBE" value="3"/>
- <value name="CLAMP_BORDER" value="4"/>
- <value name="MIRROR_ONCE" value="5"/>
- </enum>
+ <enum name="Texture Coordinate Mode" prefix="TCM">
+ <value name="WRAP" value="0"/>
+ <value name="MIRROR" value="1"/>
+ <value name="CLAMP" value="2"/>
+ <value name="CUBE" value="3"/>
+ <value name="CLAMP_BORDER" value="4"/>
+ <value name="MIRROR_ONCE" value="5"/>
+ </enum>
+
+ <struct name="MEMORY_OBJECT_CONTROL_STATE" length="1">
+ <field name="Graphics Data Type (GFDT)" start="2" end="2" type="uint"/>
+ <field name="Cacheability Control" start="0" end="1" type="uint"/>
+ </struct>
+
+ <struct name="VERTEX_BUFFER_STATE" length="4">
+ <field name="Vertex Buffer Index" start="26" end="31" type="uint"/>
+ <field name="Buffer Access Type" start="20" end="20" type="uint">
+ <value name="VERTEXDATA" value="0"/>
+ <value name="INSTANCEDATA" value="1"/>
+ </field>
+ <field name="Vertex Buffer Memory Object Control State" start="16" end="19" type="MEMORY_OBJECT_CONTROL_STATE"/>
+ <field name="Vertex Buffer MOCS" start="16" end="19" type="uint"/>
+ <field name="Null Vertex Buffer" start="13" end="13" type="bool"/>
+ <field name="Vertex Fetch Invalidate" start="12" end="12" type="bool" default="0"/>
+ <field name="Buffer Pitch" start="0" end="11" type="uint"/>
+ <field name="Buffer Starting Address" start="32" end="63" type="address"/>
+ <field name="End Address" start="64" end="95" type="address"/>
+ <field name="Instance Data Step Rate" start="96" end="127" type="uint"/>
+ </struct>
+
+ <struct name="VERTEX_ELEMENT_STATE" length="2">
+ <field name="Vertex Buffer Index" start="26" end="31" type="uint"/>
+ <field name="Valid" start="25" end="25" type="bool"/>
+ <field name="Source Element Format" start="16" end="24" type="uint"/>
+ <field name="Edge Flag Enable" start="15" end="15" type="bool"/>
+ <field name="Source Element Offset" start="0" end="11" type="uint"/>
+ <field name="Component 0 Control" start="60" end="62" type="uint"/>
+ <field name="Component 1 Control" start="56" end="58" type="uint"/>
+ <field name="Component 2 Control" start="52" end="54" type="uint"/>
+ <field name="Component 3 Control" start="48" end="50" type="uint"/>
+ </struct>
+
+ <struct name="SF_OUTPUT_ATTRIBUTE_DETAIL" length="1">
+ <field name="Component Override W" start="15" end="15" type="bool"/>
+ <field name="Component Override Z" start="14" end="14" type="bool"/>
+ <field name="Component Override Y" start="13" end="13" type="bool"/>
+ <field name="Component Override X" start="12" end="12" type="bool"/>
+ <field name="Swizzle Control Mode" start="11" end="11" type="uint"/>
+ <field name="Constant Source" start="9" end="10" type="uint">
+ <value name="CONST_0000" value="0"/>
+ <value name="CONST_0001_FLOAT" value="1"/>
+ <value name="CONST_1111_FLOAT" value="2"/>
+ <value name="PRIM_ID" value="3"/>
+ </field>
+ <field name="Swizzle Select" start="6" end="7" type="uint">
+ <value name="INPUTATTR" value="0"/>
+ <value name="INPUTATTR_FACING" value="1"/>
+ <value name="INPUTATTR_W" value="2"/>
+ <value name="INPUTATTR_FACING_W" value="3"/>
+ </field>
+ <field name="Source Attribute" start="0" end="4" type="uint"/>
+ </struct>
+
+ <struct name="CLIP_VIEWPORT" length="4">
+ <field name="XMin Clip Guardband" start="0" end="31" type="uint"/>
+ <field name="XMax Clip Guardband" start="32" end="63" type="uint"/>
+ <field name="YMin Clip Guardband" start="64" end="95" type="uint"/>
+ <field name="YMax Clip Guardband" start="96" end="127" type="uint"/>
+ </struct>
+
+ <struct name="SCISSOR_RECT" length="2">
+ <field name="Scissor Rectangle Y Min" start="16" end="31" type="uint"/>
+ <field name="Scissor Rectangle X Min" start="0" end="15" type="uint"/>
+ <field name="Scissor Rectangle Y Max" start="48" end="63" type="uint"/>
+ <field name="Scissor Rectangle X Max" start="32" end="47" type="uint"/>
+ </struct>
+
+ <struct name="SF_VIEWPORT" length="8">
+ <field name="Viewport Matrix Element m00" start="0" end="31" type="float"/>
+ <field name="Viewport Matrix Element m11" start="32" end="63" type="float"/>
+ <field name="Viewport Matrix Element m22" start="64" end="95" type="float">
+ <value name="Excludes DWord (0,1)" value="0"/>
+ </field>
+ <field name="Viewport Matrix Element m30" start="96" end="127" type="float"/>
+ <field name="Viewport Matrix Element m31" start="128" end="159" type="float"/>
+ <field name="Viewport Matrix Element m32" start="160" end="191" type="float"/>
+ <group count="2" start="192" size="32">
+ </group>
+ </struct>
+
+ <struct name="BLEND_STATE_ENTRY" length="2">
+ <field name="Color Buffer Blend Enable" start="31" end="31" type="bool"/>
+ <field name="Independent Alpha Blend Enable" start="30" end="30" type="bool"/>
+ <field name="Alpha Blend Function" start="26" end="28" type="uint">
+ <value name="BLENDFUNCTION_ADD" value="0"/>
+ <value name="BLENDFUNCTION_SUBTRACT" value="1"/>
+ <value name="BLENDFUNCTION_REVERSE_SUBTRACT" value="2"/>
+ <value name="BLENDFUNCTION_MIN" value="3"/>
+ <value name="BLENDFUNCTION_MAX" value="4"/>
+ </field>
+ <field name="Source Alpha Blend Factor" start="20" end="24" type="uint">
+ <value name="BLENDFACTOR_ONE" value="1"/>
+ <value name="BLENDFACTOR_SRC_COLOR" value="2"/>
+ <value name="BLENDFACTOR_SRC_ALPHA" value="3"/>
+ <value name="BLENDFACTOR_DST_ALPHA" value="4"/>
+ <value name="BLENDFACTOR_DST_COLOR" value="5"/>
+ <value name="BLENDFACTOR_SRC_ALPHA_SATURATE" value="6"/>
+ <value name="BLENDFACTOR_CONST_COLOR" value="7"/>
+ <value name="BLENDFACTOR_CONST_ALPHA" value="8"/>
+ <value name="BLENDFACTOR_SRC1_COLOR" value="9"/>
+ <value name="BLENDFACTOR_SRC1_ALPHA" value="10"/>
+ <value name="BLENDFACTOR_ZERO" value="17"/>
+ <value name="BLENDFACTOR_INV_SRC_COLOR" value="18"/>
+ <value name="BLENDFACTOR_INV_SRC_ALPHA" value="19"/>
+ <value name="BLENDFACTOR_INV_DST_ALPHA" value="20"/>
+ <value name="BLENDFACTOR_INV_DST_COLOR" value="21"/>
+ <value name="BLENDFACTOR_INV_CONST_COLOR" value="23"/>
+ <value name="BLENDFACTOR_INV_CONST_ALPHA" value="24"/>
+ <value name="BLENDFACTOR_INV_SRC1_COLOR" value="25"/>
+ <value name="BLENDFACTOR_INV_SRC1_ALPHA" value="26"/>
+ </field>
+ <field name="Destination Alpha Blend Factor" start="15" end="19" type="uint"/>
+ <field name="Color Blend Function" start="11" end="13" type="uint">
+ <value name="BLENDFUNCTION_ADD" value="0"/>
+ <value name="BLENDFUNCTION_SUBTRACT" value="1"/>
+ <value name="BLENDFUNCTION_REVERSE_SUBTRACT" value="2"/>
+ <value name="BLENDFUNCTION_MIN " value="3"/>
+ <value name="BLENDFUNCTION_MAX" value="4"/>
+ </field>
+ <field name="Source Blend Factor" start="5" end="9" type="uint"/>
+ <field name="Destination Blend Factor" start="0" end="4" type="uint"/>
+ <field name="AlphaToCoverage Enable" start="63" end="63" type="bool"/>
+ <field name="AlphaToOne Enable" start="62" end="62" type="bool"/>
+ <field name="AlphaToCoverage Dither Enable" start="61" end="61" type="bool"/>
+ <field name="Write Disable Alpha" start="59" end="59" type="bool"/>
+ <field name="Write Disable Red" start="58" end="58" type="bool"/>
+ <field name="Write Disable Green" start="57" end="57" type="bool"/>
+ <field name="Write Disable Blue" start="56" end="56" type="bool"/>
+ <field name="Logic Op Enable" start="54" end="54" type="bool"/>
+ <field name="Logic Op Function" start="50" end="53" type="uint">
+ <value name="LOGICOP_CLEAR" value="0"/>
+ <value name="LOGICOP_NOR" value="1"/>
+ <value name="LOGICOP_AND_INVERTED" value="2"/>
+ <value name="LOGICOP_COPY_INVERTED" value="3"/>
+ <value name="LOGICOP_AND_REVERSE" value="4"/>
+ <value name="LOGICOP_INVERT" value="5"/>
+ <value name="LOGICOP_XOR" value="6"/>
+ <value name="LOGICOP_NAND" value="7"/>
+ <value name="LOGICOP_AND" value="8"/>
+ <value name="LOGICOP_EQUIV" value="9"/>
+ <value name="LOGICOP_NOOP" value="10"/>
+ <value name="LOGICOP_OR_INVERTED" value="11"/>
+ <value name="LOGICOP_COPY" value="12"/>
+ <value name="LOGICOP_OR_REVERSE" value="13"/>
+ <value name="LOGICOP_OR" value="14"/>
+ <value name="LOGICOP_SET" value="15"/>
+ </field>
+ <field name="Alpha Test Enable" start="48" end="48" type="bool"/>
+ <field name="Alpha Test Function" start="45" end="47" type="uint">
+ <value name="COMPAREFUNCTION_ALWAYS" value="0"/>
+ <value name="COMPAREFUNCTION_NEVER" value="1"/>
+ <value name="COMPAREFUNCTION_LESS" value="2"/>
+ <value name="COMPAREFUNCTION_EQUAL" value="3"/>
+ <value name="COMPAREFUNCTION_LEQUAL" value="4"/>
+ <value name="COMPAREFUNCTION_GREATER" value="5"/>
+ <value name="COMPAREFUNCTION_NOTEQUAL" value="6"/>
+ <value name="COMPAREFUNCTION_GEQUAL" value="7"/>
+ </field>
+ <field name="Color Dither Enable" start="44" end="44" type="bool"/>
+ <field name="X Dither Offset" start="42" end="43" type="uint"/>
+ <field name="Y Dither Offset" start="40" end="41" type="uint"/>
+ <field name="Color Clamp Range" start="34" end="35" type="uint">
+ <value name="COLORCLAMP_UNORM" value="0"/>
+ <value name="COLORCLAMP_SNORM" value="1"/>
+ <value name="COLORCLAMP_RTFORMAT" value="2"/>
+ </field>
+ <field name="Pre-Blend Color Clamp Enable" start="33" end="33" type="bool"/>
+ <field name="Post-Blend Color Clamp Enable" start="32" end="32" type="bool"/>
+ </struct>
+
+ <struct name="BLEND_STATE" length="16">
+ <group count="8" start="0" size="64">
+ <field name="Entry" start="0" end="63" type="BLEND_STATE_ENTRY"/>
+ </group>
+ </struct>
+
+ <struct name="CC_VIEWPORT" length="2">
+ <field name="Minimum Depth" start="0" end="31" type="float"/>
+ <field name="Maximum Depth" start="32" end="63" type="float"/>
+ </struct>
+
+ <struct name="COLOR_CALC_STATE" length="6">
+ <field name="Stencil Reference Value" start="24" end="31" type="uint"/>
+ <field name="Backface Stencil Reference Value" start="16" end="23" type="uint"/>
+ <field name="Round Disable Function Disable" start="15" end="15" type="bool"/>
+ <field name="Alpha Test Format" start="0" end="0" type="uint">
+ <value name="ALPHATEST_UNORM8" value="0"/>
+ <value name="ALPHATEST_FLOAT32" value="1"/>
+ </field>
+ <field name="Alpha Reference Value As UNORM8" start="32" end="63" type="uint"/>
+ <field name="Alpha Reference Value As FLOAT32" start="32" end="63" type="float"/>
+ <field name="Blend Constant Color Red" start="64" end="95" type="float"/>
+ <field name="Blend Constant Color Green" start="96" end="127" type="float"/>
+ <field name="Blend Constant Color Blue" start="128" end="159" type="float"/>
+ <field name="Blend Constant Color Alpha" start="160" end="191" type="float"/>
+ </struct>
+
+ <struct name="DEPTH_STENCIL_STATE" length="3">
+ <field name="Stencil Test Enable" start="31" end="31" type="bool"/>
+ <field name="Stencil Test Function" start="28" end="30" type="uint">
+ <value name="COMPAREFUNCTION_ALWAYS" value="0"/>
+ <value name="COMPAREFUNCTION_NEVER" value="1"/>
+ <value name="COMPAREFUNCTION_LESS" value="2"/>
+ <value name="COMPAREFUNCTION_EQUAL" value="3"/>
+ <value name="COMPAREFUNCTION_LEQUAL" value="4"/>
+ <value name="COMPAREFUNCTION_GREATER" value="5"/>
+ <value name="COMPAREFUNCTION_NOTEQUAL" value="6"/>
+ <value name="COMPAREFUNCTION_GEQUAL" value="7"/>
+ </field>
+ <field name="Stencil Fail Op" start="25" end="27" type="uint">
+ <value name="STENCILOP_KEEP" value="0"/>
+ <value name="STENCILOP_ZERO" value="1"/>
+ <value name="STENCILOP_REPLACE" value="2"/>
+ <value name="STENCILOP_INCRSAT" value="3"/>
+ <value name="STENCILOP_DECRSAT" value="4"/>
+ <value name="STENCILOP_INCR" value="5"/>
+ <value name="STENCILOP_DECR" value="6"/>
+ <value name="STENCILOP_INVERT" value="7"/>
+ </field>
+ <field name="Stencil Pass Depth Fail Op" start="22" end="24" type="uint"/>
+ <field name="Stencil Pass Depth Pass Op" start="19" end="21" type="uint"/>
+ <field name="Stencil Buffer Write Enable" start="18" end="18" type="bool"/>
+ <field name="Double Sided Stencil Enable" start="15" end="15" type="bool"/>
+ <field name="Backface Stencil Test Function" start="12" end="14" type="uint">
+ <value name="COMPAREFUNCTION_ALWAYS" value="0"/>
+ <value name="COMPAREFUNCTION_NEVER" value="1"/>
+ <value name="COMPAREFUNCTION_LESS" value="2"/>
+ <value name="COMPAREFUNCTION_EQUAL" value="3"/>
+ <value name="COMPAREFUNCTION_LEQUAL" value="4"/>
+ <value name="COMPAREFUNCTION_GREATER" value="5"/>
+ <value name="COMPAREFUNCTION_NOTEQUAL" value="6"/>
+ <value name="COMPAREFUNCTION_GEQUAL" value="7"/>
+ </field>
+ <field name="Backface Stencil Fail Op" start="9" end="11" type="uint">
+ <value name="STENCILOP_KEEP" value="0"/>
+ <value name="STENCILOP_ZERO" value="1"/>
+ <value name="STENCILOP_REPLACE" value="2"/>
+ <value name="STENCILOP_INCRSAT" value="3"/>
+ <value name="STENCILOP_DECRSAT" value="4"/>
+ <value name="STENCILOP_INCR" value="5"/>
+ <value name="STENCILOP_DECR" value="6"/>
+ <value name="STENCILOP_INVERT" value="7"/>
+ </field>
+ <field name="Backface Stencil Pass Depth Fail Op" start="6" end="8" type="uint"/>
+ <field name="Backface Stencil Pass Depth Pass Op" start="3" end="5" type="uint"/>
+ <field name="Stencil Test Mask" start="56" end="63" type="uint"/>
+ <field name="Stencil Write Mask" start="48" end="55" type="uint"/>
+ <field name="Backface Stencil Test Mask" start="40" end="47" type="uint"/>
+ <field name="Backface Stencil Write Mask" start="32" end="39" type="uint"/>
+ <field name="Depth Test Enable" start="95" end="95" type="bool"/>
+ <field name="Depth Test Function" start="91" end="93" type="uint">
+ <value name="COMPAREFUNCTION_ALWAYS" value="0"/>
+ <value name="COMPAREFUNCTION_NEVER" value="1"/>
+ <value name="COMPAREFUNCTION_LESS" value="2"/>
+ <value name="COMPAREFUNCTION_EQUAL" value="3"/>
+ <value name="COMPAREFUNCTION_LEQUAL" value="4"/>
+ <value name="COMPAREFUNCTION_GREATER" value="5"/>
+ <value name="COMPAREFUNCTION_NOTEQUAL" value="6"/>
+ <value name="COMPAREFUNCTION_GEQUAL" value="7"/>
+ </field>
+ <field name="Depth Buffer Write Enable" start="90" end="90" type="bool"/>
+ </struct>
+
+ <struct name="INTERFACE_DESCRIPTOR_DATA" length="8">
+ <field name="Kernel Start Pointer" start="6" end="31" type="offset"/>
+ <field name="Single Program Flow" start="50" end="50" type="bool"/>
+ <field name="Thread Priority" start="49" end="49" type="uint">
+ <value name="Normal Priority" value="0"/>
+ <value name="High Priority" value="1"/>
+ </field>
+ <field name="Floating Point Mode" start="48" end="48" type="uint">
+ <value name="IEEE-754" value="0"/>
+ <value name="Alternate" value="1"/>
+ </field>
+ <field name="Illegal Opcode Exception Enable" start="45" end="45" type="bool"/>
+ <field name="Mask Stack Exception Enable" start="43" end="43" type="bool"/>
+ <field name="Software Exception Enable" start="39" end="39" type="bool"/>
+ <field name="Sampler State Pointer" start="69" end="95" type="offset"/>
+ <field name="Sampler Count" start="66" end="68" type="uint">
+ <value name="No samplers used" value="0"/>
+ <value name="Between 1 and 4 samplers used" value="1"/>
+ <value name="Between 5 and 8 samplers used" value="2"/>
+ <value name="Between 9 and 12 samplers used" value="3"/>
+ <value name="Between 13 and 16 samplers used" value="4"/>
+ </field>
+ <field name="Binding Table Pointer" start="101" end="127" type="offset"/>
+ <field name="Binding Table Entry Count" start="96" end="100" type="uint"/>
+ <field name="Constant URB Entry Read Length" start="144" end="159" type="uint"/>
+ <field name="Constant URB Entry Read Offset" start="128" end="143" type="uint"/>
+ <field name="Barrier Return GRF Offset" start="184" end="191" type="uint"/>
+ <field name="Barrier Return Byte" start="168" end="175" type="uint"/>
+ <field name="Barrier ID" start="160" end="163" type="uint"/>
+ </struct>
+
+ <struct name="PALETTE_ENTRY" length="1">
+ <field name="Alpha" start="24" end="31" type="uint"/>
+ <field name="Red" start="16" end="23" type="uint"/>
+ <field name="Green" start="8" end="15" type="uint"/>
+ <field name="Blue" start="0" end="7" type="uint"/>
+ </struct>
+
+ <struct name="BINDING_TABLE_STATE" length="1">
+ <field name="Surface State Pointer" start="5" end="31" type="offset"/>
+ </struct>
+
+ <struct name="RENDER_SURFACE_STATE" length="6">
+ <field name="Surface Type" start="29" end="31" type="uint">
+ <value name="SURFTYPE_1D" value="0"/>
+ <value name="SURFTYPE_2D" value="1"/>
+ <value name="SURFTYPE_3D" value="2"/>
+ <value name="SURFTYPE_CUBE" value="3"/>
+ <value name="SURFTYPE_BUFFER" value="4"/>
+ <value name="SURFTYPE_NULL" value="7"/>
+ </field>
+ <field name="Data Return Format" start="27" end="27" type="uint">
+ <value name="DATA_RETURN_FLOAT32" value="0"/>
+ </field>
+ <field name="Surface Format" start="18" end="26" type="uint"/>
+ <field name="Vertical Line Stride" start="12" end="12" type="uint"/>
+ <field name="Vertical Line Stride Offset" start="11" end="11" type="uint"/>
+ <field name="MIP Map Layout Mode" start="10" end="10" type="uint">
+ <value name="MIPLAYOUT_BELOW" value="0"/>
+ <value name="MIPLAYOUT_RIGHT" value="1"/>
+ </field>
+ <field name="Cube Map Corner Mode" start="9" end="9" type="uint">
+ <value name="CUBE_REPLICATE" value="0"/>
+ <value name="CUBE_AVERAGE" value="1"/>
+ </field>
+ <field name="Render Cache Read Write Mode" start="8" end="8" type="uint">
+ <value name="WRITE_ONLY" value="0"/>
+ <value name="READ_WRITE" value="1"/>
+ </field>
+ <field name="Media Boundary Pixel Mode" start="6" end="7" type="uint">
+ <value name="NORMAL_MODE" value="0"/>
+ <value name="PROGRESSIVE_FRAME" value="2"/>
+ <value name="INTERLACED_FRAME" value="3"/>
+ </field>
+ <field name="Cube Face Enables" start="0" end="5" type="uint"/>
+ <field name="Surface Base Address" start="32" end="63" type="address"/>
+ <field name="Height" start="83" end="95" type="uint"/>
+ <field name="Width" start="70" end="82" type="uint"/>
+ <field name="MIP Count / LOD" start="66" end="69" type="uint"/>
+ <field name="Render Target Rotation" start="64" end="65" type="uint">
+ <value name="RTROTATE_0DEG" value="0"/>
+ <value name="RTROTATE_90DEG" value="1"/>
+ <value name="RTROTATE_270DEG" value="3"/>
+ </field>
+ <field name="Depth" start="117" end="127" type="uint"/>
+ <field name="Surface Pitch" start="99" end="115" type="uint"/>
+ <field name="Tiled Surface" start="97" end="97" type="bool"/>
+ <field name="Tile Walk" start="96" end="96" type="uint">
+ <value name="TILEWALK_XMAJOR" value="0"/>
+ <value name="TILEWALK_YMAJOR" value="1"/>
+ </field>
+ <field name="Surface Min LOD" start="156" end="159" type="uint"/>
+ <field name="Minimum Array Element" start="145" end="155" type="uint"/>
+ <field name="Render Target View Extent" start="136" end="144" type="uint"/>
+ <field name="Number of Multisamples" start="132" end="134" type="uint">
+ <value name="MULTISAMPLECOUNT_1" value="0"/>
+ <value name="MULTISAMPLECOUNT_4" value="2"/>
+ </field>
+ <field name="Multisample Position Palette Index" start="128" end="130" type="uint"/>
+ <field name="X Offset" start="185" end="191" type="uint"/>
+ <field name="Surface Vertical Alignment" start="184" end="184" type="uint">
+ <value name="VALIGN_2" value="0"/>
+ <value name="VALIGN_4" value="1"/>
+ </field>
+ <field name="Y Offset" start="180" end="183" type="uint"/>
+ <field name="Surface Object Control State" start="176" end="179" type="MEMORY_OBJECT_CONTROL_STATE"/>
+ <field name="MOCS" start="176" end="179" type="uint"/>
+ </struct>
+
+ <struct name="SAMPLER_BORDER_COLOR_STATE" length="12">
+ <field name="Border Color Unorm Red" start="0" end="7" type="uint"/>
+ <field name="Border Color Unorm Green" start="8" end="15" type="uint"/>
+ <field name="Border Color Unorm Blue" start="16" end="23" type="uint"/>
+ <field name="Border Color Unorm Alpha" start="24" end="31" type="uint"/>
+
+ <field name="Border Color Float Red" start="32" end="63" type="float"/>
+ <field name="Border Color Float Green" start="64" end="95" type="float"/>
+ <field name="Border Color Float Blue" start="96" end="127" type="float"/>
+ <field name="Border Color Float Alpha" start="128" end="159" type="float"/>
+
+ <field name="Border Color Float16 Red" start="160" end="175" type="uint"/>
+ <field name="Border Color Float16 Green" start="176" end="191" type="uint"/>
+ <field name="Border Color Float16 Blue" start="192" end="207" type="uint"/>
+ <field name="Border Color Float16 Alpha" start="208" end="223" type="uint"/>
+
+ <field name="Border Color Unorm16 Red" start="224" end="239" type="uint"/>
+ <field name="Border Color Unorm16 Green" start="240" end="255" type="uint"/>
+ <field name="Border Color Unorm16 Blue" start="256" end="271" type="uint"/>
+ <field name="Border Color Unorm16 Alpha" start="272" end="287" type="uint"/>
+
+ <field name="Border Color Snorm16 Red" start="288" end="303" type="int"/>
+ <field name="Border Color Snorm16 Green" start="304" end="319" type="int"/>
+ <field name="Border Color Snorm16 Blue" start="320" end="335" type="int"/>
+ <field name="Border Color Snorm16 Alpha" start="336" end="351" type="int"/>
+
+ <field name="Border Color Snorm8 Red" start="352" end="359" type="int"/>
+ <field name="Border Color Snorm8 Green" start="360" end="367" type="int"/>
+ <field name="Border Color Snorm8 Blue" start="368" end="375" type="int"/>
+ <field name="Border Color Snorm8 Alpha" start="376" end="383" type="int"/>
+ </struct>
+
+ <struct name="SAMPLER_STATE" length="4">
+ <field name="Sampler Disable" start="31" end="31" type="bool"/>
+ <field name="Texture Border Color Mode" start="29" end="29" type="uint">
+ <value name="DX10/OGL" value="0"/>
+ <value name="DX9" value="1"/>
+ </field>
+ <field name="LOD PreClamp Enable" start="28" end="28" type="uint" prefix="CLAMP_ENABLE">
+ <value name="OGL" value="1"/>
+ </field>
+ <field name="Min and Mag State Not Equal" start="27" end="27" type="uint">
+ <value name="MIN_MAG_EQ" value="0"/>
+ <value name="MIN_MAG_NEQ" value="1"/>
+ </field>
+ <field name="Base Mip Level" start="22" end="26" type="u4.1"/>
+ <field name="Mip Mode Filter" start="20" end="21" type="uint" prefix="MIPFILTER">
+ <value name="NONE" value="0"/>
+ <value name="NEAREST" value="1"/>
+ <value name="LINEAR" value="3"/>
+ </field>
+ <field name="Mag Mode Filter" start="17" end="19" type="uint" prefix="MAPFILTER">
+ <value name="NEAREST" value="0"/>
+ <value name="LINEAR" value="1"/>
+ <value name="ANISOTROPIC" value="2"/>
+ <value name="MONO" value="6"/>
+ </field>
+ <field name="Min Mode Filter" start="14" end="16" type="uint" prefix="MAPFILTER"/>
+ <field name="Texture LOD Bias" start="3" end="13" type="s4.6"/>
+ <field name="Shadow Function" start="0" end="2" type="uint">
+ <value name="PREFILTEROP_ALWAYS" value="0"/>
+ <value name="PREFILTEROP_NEVER" value="1"/>
+ <value name="PREFILTEROP_LESS" value="2"/>
+ <value name="PREFILTEROP_EQUAL" value="3"/>
+ <value name="PREFILTEROP_LEQUAL" value="4"/>
+ <value name="PREFILTEROP_GREATER" value="5"/>
+ <value name="PREFILTEROP_NOTEQUAL" value="6"/>
+ <value name="PREFILTEROP_GEQUAL" value="7"/>
+ </field>
+ <field name="Min LOD" start="54" end="63" type="u4.6"/>
+ <field name="Max LOD" start="44" end="53" type="u4.6"/>
+ <field name="Cube Surface Control Mode" start="41" end="41" type="uint">
+ <value name="CUBECTRLMODE_PROGRAMMED" value="0"/>
+ <value name="CUBECTRLMODE_OVERRIDE" value="1"/>
+ </field>
+ <field name="TCX Address Control Mode" start="38" end="40" type="uint"/>
+ <field name="TCY Address Control Mode" start="35" end="37" type="uint"/>
+ <field name="TCZ Address Control Mode" start="32" end="34" type="uint"/>
+ <field name="Border Color Pointer" start="69" end="95" type="offset"/>
+ <field name="Monochrome Filter Height: Reserved" start="125" end="127" type="uint"/>
+ <field name="Monochrome Filter Width" start="122" end="124" type="uint"/>
+ <field name="ChromaKey Enable" start="121" end="121" type="bool"/>
+ <field name="ChromaKey Index" start="119" end="120" type="uint"/>
+ <field name="ChromaKey Mode" start="118" end="118" type="uint">
+ <value name="KEYFILTER_KILL_ON_ANY_MATCH" value="0"/>
+ <value name="KEYFILTER_REPLACE_BLACK" value="1"/>
+ </field>
+ <field name="Maximum Anisotropy" start="115" end="117" type="uint">
+ <value name="RATIO 2:1" value="0"/>
+ <value name="RATIO 4:1" value="1"/>
+ <value name="RATIO 6:1" value="2"/>
+ <value name="RATIO 8:1" value="3"/>
+ <value name="RATIO 10:1" value="4"/>
+ <value name="RATIO 12:1" value="5"/>
+ <value name="RATIO 14:1" value="6"/>
+ <value name="RATIO 16:1" value="7"/>
+ </field>
+ <field name="R Address Min Filter Rounding Enable" start="109" end="109" type="bool"/>
+ <field name="R Address Mag Filter Rounding Enable" start="110" end="110" type="bool"/>
+ <field name="V Address Min Filter Rounding Enable" start="111" end="111" type="bool"/>
+ <field name="V Address Mag Filter Rounding Enable" start="112" end="112" type="bool"/>
+ <field name="U Address Min Filter Rounding Enable" start="113" end="113" type="bool"/>
+ <field name="U Address Mag Filter Rounding Enable" start="114" end="114" type="bool"/>
+ <field name="Non-normalized Coordinate Enable" start="96" end="96" type="bool"/>
+ </struct>
<instruction name="3DPRIMITIVE" bias="2" length="6">
<field name="Command Type" start="29" end="31" type="uint" default="3"/>
<genxml name="IVB" gen="7">
- <struct name="MEMORY_OBJECT_CONTROL_STATE" length="1">
- <field name="Graphics Data Type (GFDT)" start="2" end="2" type="uint"/>
- <field name="LLC Cacheability Control (LLCCC)" start="1" end="1" type="uint"/>
- <field name="L3 Cacheability Control (L3CC)" start="0" end="0" type="uint"/>
- </struct>
-
- <struct name="3DSTATE_CONSTANT_BODY" length="6">
- <field name="Constant Buffer 1 Read Length" start="16" end="31" type="uint"/>
- <field name="Constant Buffer 0 Read Length" start="0" end="15" type="uint"/>
- <field name="Constant Buffer 3 Read Length" start="48" end="63" type="uint"/>
- <field name="Constant Buffer 2 Read Length" start="32" end="47" type="uint"/>
- <field name="Pointer To Constant Buffer 0" start="69" end="95" type="address"/>
- <field name="Constant Buffer Object Control State" start="64" end="68" type="MEMORY_OBJECT_CONTROL_STATE"/>
- <field name="Pointer To Constant Buffer 1" start="101" end="127" type="address"/>
- <field name="Pointer To Constant Buffer 2" start="133" end="159" type="address"/>
- <field name="Pointer To Constant Buffer 3" start="165" end="191" type="address"/>
- </struct>
-
- <struct name="VERTEX_BUFFER_STATE" length="4">
- <field name="Vertex Buffer Index" start="26" end="31" type="uint"/>
- <field name="Buffer Access Type" start="20" end="20" type="uint">
- <value name="VERTEXDATA" value="0"/>
- <value name="INSTANCEDATA" value="1"/>
- </field>
- <field name="Vertex Buffer Memory Object Control State" start="16" end="19" type="MEMORY_OBJECT_CONTROL_STATE"/>
- <field name="Vertex Buffer MOCS" start="16" end="19" type="uint"/>
- <field name="Address Modify Enable" start="14" end="14" type="bool"/>
- <field name="Null Vertex Buffer" start="13" end="13" type="bool"/>
- <field name="Vertex Fetch Invalidate" start="12" end="12" type="bool" default="0"/>
- <field name="Buffer Pitch" start="0" end="11" type="uint"/>
- <field name="Buffer Starting Address" start="32" end="63" type="address"/>
- <field name="End Address" start="64" end="95" type="address"/>
- <field name="Instance Data Step Rate" start="96" end="127" type="uint"/>
- </struct>
-
- <struct name="VERTEX_ELEMENT_STATE" length="2">
- <field name="Vertex Buffer Index" start="26" end="31" type="uint"/>
- <field name="Valid" start="25" end="25" type="bool"/>
- <field name="Source Element Format" start="16" end="24" type="uint"/>
- <field name="Edge Flag Enable" start="15" end="15" type="bool"/>
- <field name="Source Element Offset" start="0" end="11" type="uint"/>
- <field name="Component 0 Control" start="60" end="62" type="uint"/>
- <field name="Component 1 Control" start="56" end="58" type="uint"/>
- <field name="Component 2 Control" start="52" end="54" type="uint"/>
- <field name="Component 3 Control" start="48" end="50" type="uint"/>
- </struct>
-
- <struct name="SO_DECL" length="1">
- <field name="Output Buffer Slot" start="12" end="13" type="uint"/>
- <field name="Hole Flag" start="11" end="11" type="uint"/>
- <field name="Register Index" start="4" end="9" type="uint"/>
- <field name="Component Mask" start="0" end="3" type="uint" default="0"/>
- </struct>
-
- <struct name="SO_DECL_ENTRY" length="2">
- <field name="Stream 3 Decl" start="48" end="63" type="SO_DECL"/>
- <field name="Stream 2 Decl" start="32" end="47" type="SO_DECL"/>
- <field name="Stream 1 Decl" start="16" end="31" type="SO_DECL"/>
- <field name="Stream 0 Decl" start="0" end="15" type="SO_DECL"/>
- </struct>
-
- <struct name="SF_OUTPUT_ATTRIBUTE_DETAIL" length="1">
- <field name="Component Override W" start="15" end="15" type="bool"/>
- <field name="Component Override Z" start="14" end="14" type="bool"/>
- <field name="Component Override Y" start="13" end="13" type="bool"/>
- <field name="Component Override X" start="12" end="12" type="bool"/>
- <field name="Swizzle Control Mode" start="11" end="11" type="uint"/>
- <field name="Constant Source" start="9" end="10" type="uint">
- <value name="CONST_0000" value="0"/>
- <value name="CONST_0001_FLOAT" value="1"/>
- <value name="CONST_1111_FLOAT" value="2"/>
- <value name="PRIM_ID" value="3"/>
- </field>
- <field name="Swizzle Select" start="6" end="7" type="uint">
- <value name="INPUTATTR" value="0"/>
- <value name="INPUTATTR_FACING" value="1"/>
- <value name="INPUTATTR_W" value="2"/>
- <value name="INPUTATTR_FACING_W" value="3"/>
- </field>
- <field name="Source Attribute" start="0" end="4" type="uint"/>
- </struct>
+ <enum name="3D_Prim_Topo_Type" prefix="3DPRIM">
+ <value name="POINTLIST" value="1"/>
+ <value name="LINELIST" value="2"/>
+ <value name="LINESTRIP" value="3"/>
+ <value name="TRILIST" value="4"/>
+ <value name="TRISTRIP" value="5"/>
+ <value name="TRIFAN" value="6"/>
+ <value name="QUADLIST" value="7"/>
+ <value name="QUADSTRIP" value="8"/>
+ <value name="LINELIST_ADJ" value="9"/>
+ <value name="LINESTRIP_ADJ" value="10"/>
+ <value name="TRILIST_ADJ" value="11"/>
+ <value name="TRISTRIP_ADJ" value="12"/>
+ <value name="TRISTRIP_REVERSE" value="13"/>
+ <value name="POLYGON" value="14"/>
+ <value name="RECTLIST" value="15"/>
+ <value name="LINELOOP" value="16"/>
+ <value name="POINTLIST _BF" value="17"/>
+ <value name="LINESTRIP_CONT" value="18"/>
+ <value name="LINESTRIP_BF" value="19"/>
+ <value name="LINESTRIP_CONT_BF" value="20"/>
+ <value name="TRIFAN_NOSTIPPLE" value="22"/>
+ <value name="PATCHLIST_1" value="32"/>
+ <value name="PATCHLIST_2" value="33"/>
+ <value name="PATCHLIST_3" value="34"/>
+ <value name="PATCHLIST_4" value="35"/>
+ <value name="PATCHLIST_5" value="36"/>
+ <value name="PATCHLIST_6" value="37"/>
+ <value name="PATCHLIST_7" value="38"/>
+ <value name="PATCHLIST_8" value="39"/>
+ <value name="PATCHLIST_9" value="40"/>
+ <value name="PATCHLIST_10" value="41"/>
+ <value name="PATCHLIST_11" value="42"/>
+ <value name="PATCHLIST_12" value="43"/>
+ <value name="PATCHLIST_13" value="44"/>
+ <value name="PATCHLIST_14" value="45"/>
+ <value name="PATCHLIST_15" value="46"/>
+ <value name="PATCHLIST_16" value="47"/>
+ <value name="PATCHLIST_17" value="48"/>
+ <value name="PATCHLIST_18" value="49"/>
+ <value name="PATCHLIST_19" value="50"/>
+ <value name="PATCHLIST_20" value="51"/>
+ <value name="PATCHLIST_21" value="52"/>
+ <value name="PATCHLIST_22" value="53"/>
+ <value name="PATCHLIST_23" value="54"/>
+ <value name="PATCHLIST_24" value="55"/>
+ <value name="PATCHLIST_25" value="56"/>
+ <value name="PATCHLIST_26" value="57"/>
+ <value name="PATCHLIST_27" value="58"/>
+ <value name="PATCHLIST_28" value="59"/>
+ <value name="PATCHLIST_29" value="60"/>
+ <value name="PATCHLIST_30" value="61"/>
+ <value name="PATCHLIST_31" value="62"/>
+ <value name="PATCHLIST_32" value="63"/>
+ </enum>
- <struct name="SCISSOR_RECT" length="2">
- <field name="Scissor Rectangle Y Min" start="16" end="31" type="uint"/>
- <field name="Scissor Rectangle X Min" start="0" end="15" type="uint"/>
- <field name="Scissor Rectangle Y Max" start="48" end="63" type="uint"/>
- <field name="Scissor Rectangle X Max" start="32" end="47" type="uint"/>
- </struct>
+ <enum name="3D_Vertex_Component_Control" prefix="VFCOMP">
+ <value name="NOSTORE" value="0"/>
+ <value name="STORE_SRC" value="1"/>
+ <value name="STORE_0" value="2"/>
+ <value name="STORE_1_FP" value="3"/>
+ <value name="STORE_1_INT" value="4"/>
+ <value name="STORE_VID" value="5"/>
+ <value name="STORE_IID" value="6"/>
+ <value name="STORE_PID" value="7"/>
+ </enum>
- <struct name="SF_CLIP_VIEWPORT" length="16">
- <field name="Viewport Matrix Element m00" start="0" end="31" type="float"/>
- <field name="Viewport Matrix Element m11" start="32" end="63" type="float"/>
- <field name="Viewport Matrix Element m22" start="64" end="95" type="float"/>
- <field name="Viewport Matrix Element m30" start="96" end="127" type="float"/>
- <field name="Viewport Matrix Element m31" start="128" end="159" type="float"/>
- <field name="Viewport Matrix Element m32" start="160" end="191" type="float"/>
- <field name="X Min Clip Guardband" start="256" end="287" type="float"/>
- <field name="X Max Clip Guardband" start="288" end="319" type="float"/>
- <field name="Y Min Clip Guardband" start="320" end="351" type="float"/>
- <field name="Y Max Clip Guardband" start="352" end="383" type="float"/>
- <group count="4" start="384" size="32">
- </group>
- </struct>
+ <enum name="3D_Compare_Function" prefix="COMPAREFUNCTION">
+ <value name="ALWAYS" value="0"/>
+ <value name="NEVER" value="1"/>
+ <value name="LESS" value="2"/>
+ <value name="EQUAL" value="3"/>
+ <value name="LEQUAL" value="4"/>
+ <value name="GREATER" value="5"/>
+ <value name="NOTEQUAL" value="6"/>
+ <value name="GEQUAL" value="7"/>
+ </enum>
- <struct name="BLEND_STATE_ENTRY" length="2">
- <field name="Color Buffer Blend Enable" start="31" end="31" type="bool"/>
- <field name="Independent Alpha Blend Enable" start="30" end="30" type="bool"/>
- <field name="Alpha Blend Function" start="26" end="28" type="uint">
- <value name="BLENDFUNCTION_ADD" value="0"/>
- <value name="BLENDFUNCTION_SUBTRACT" value="1"/>
- <value name="BLENDFUNCTION_REVERSE_SUBTRACT" value="2"/>
- <value name="BLENDFUNCTION_MIN" value="3"/>
- <value name="BLENDFUNCTION_MAX" value="4"/>
- </field>
- <field name="Source Alpha Blend Factor" start="20" end="24" type="uint">
- <value name="BLENDFACTOR_ONE" value="1"/>
- <value name="BLENDFACTOR_SRC_COLOR" value="2"/>
- <value name="BLENDFACTOR_SRC_ALPHA" value="3"/>
- <value name="BLENDFACTOR_DST_ALPHA" value="4"/>
- <value name="BLENDFACTOR_DST_COLOR" value="5"/>
- <value name="BLENDFACTOR_SRC_ALPHA_SATURATE" value="6"/>
- <value name="BLENDFACTOR_CONST_COLOR" value="7"/>
- <value name="BLENDFACTOR_CONST_ALPHA" value="8"/>
- <value name="BLENDFACTOR_SRC1_COLOR" value="9"/>
- <value name="BLENDFACTOR_SRC1_ALPHA" value="10"/>
- <value name="BLENDFACTOR_ZERO" value="17"/>
- <value name="BLENDFACTOR_INV_SRC_COLOR" value="18"/>
- <value name="BLENDFACTOR_INV_SRC_ALPHA" value="19"/>
- <value name="BLENDFACTOR_INV_DST_ALPHA" value="20"/>
- <value name="BLENDFACTOR_INV_DST_COLOR" value="21"/>
- <value name="BLENDFACTOR_INV_CONST_COLOR" value="23"/>
- <value name="BLENDFACTOR_INV_CONST_ALPHA" value="24"/>
- <value name="BLENDFACTOR_INV_SRC1_COLOR" value="25"/>
- <value name="BLENDFACTOR_INV_SRC1_ALPHA" value="26"/>
- </field>
- <field name="Destination Alpha Blend Factor" start="15" end="19" type="uint"/>
- <field name="Color Blend Function" start="11" end="13" type="uint">
- <value name="BLENDFUNCTION_ADD" value="0"/>
- <value name="BLENDFUNCTION_SUBTRACT" value="1"/>
- <value name="BLENDFUNCTION_REVERSE_SUBTRACT" value="2"/>
- <value name="BLENDFUNCTION_MIN " value="3"/>
- <value name="BLENDFUNCTION_MAX" value="4"/>
- </field>
- <field name="Source Blend Factor" start="5" end="9" type="uint"/>
- <field name="Destination Blend Factor" start="0" end="4" type="uint"/>
- <field name="AlphaToCoverage Enable" start="63" end="63" type="bool"/>
- <field name="AlphaToOne Enable" start="62" end="62" type="bool"/>
- <field name="AlphaToCoverage Dither Enable" start="61" end="61" type="bool"/>
- <field name="Write Disable Alpha" start="59" end="59" type="bool"/>
- <field name="Write Disable Red" start="58" end="58" type="bool"/>
- <field name="Write Disable Green" start="57" end="57" type="bool"/>
- <field name="Write Disable Blue" start="56" end="56" type="bool"/>
- <field name="Logic Op Enable" start="54" end="54" type="bool"/>
- <field name="Logic Op Function" start="50" end="53" type="uint">
- <value name="LOGICOP_CLEAR" value="0"/>
- <value name="LOGICOP_NOR" value="1"/>
- <value name="LOGICOP_AND_INVERTED" value="2"/>
- <value name="LOGICOP_COPY_INVERTED" value="3"/>
- <value name="LOGICOP_AND_REVERSE" value="4"/>
- <value name="LOGICOP_INVERT" value="5"/>
- <value name="LOGICOP_XOR" value="6"/>
- <value name="LOGICOP_NAND" value="7"/>
- <value name="LOGICOP_AND" value="8"/>
- <value name="LOGICOP_EQUIV" value="9"/>
- <value name="LOGICOP_NOOP" value="10"/>
- <value name="LOGICOP_OR_INVERTED" value="11"/>
- <value name="LOGICOP_COPY" value="12"/>
- <value name="LOGICOP_OR_REVERSE" value="13"/>
- <value name="LOGICOP_OR" value="14"/>
- <value name="LOGICOP_SET" value="15"/>
- </field>
- <field name="Alpha Test Enable" start="48" end="48" type="bool"/>
- <field name="Alpha Test Function" start="45" end="47" type="uint">
- <value name="COMPAREFUNCTION_ALWAYS" value="0"/>
- <value name="COMPAREFUNCTION_NEVER" value="1"/>
- <value name="COMPAREFUNCTION_LESS" value="2"/>
- <value name="COMPAREFUNCTION_EQUAL" value="3"/>
- <value name="COMPAREFUNCTION_LEQUAL" value="4"/>
- <value name="COMPAREFUNCTION_GREATER" value="5"/>
- <value name="COMPAREFUNCTION_NOTEQUAL" value="6"/>
- <value name="COMPAREFUNCTION_GEQUAL" value="7"/>
- </field>
- <field name="Color Dither Enable" start="44" end="44" type="bool"/>
- <field name="X Dither Offset" start="42" end="43" type="uint"/>
- <field name="Y Dither Offset" start="40" end="41" type="uint"/>
- <field name="Color Clamp Range" start="34" end="35" type="uint">
- <value name="COLORCLAMP_UNORM" value="0"/>
- <value name="COLORCLAMP_SNORM" value="1"/>
- <value name="COLORCLAMP_RTFORMAT" value="2"/>
- </field>
- <field name="Pre-Blend Color Clamp Enable" start="33" end="33" type="bool"/>
- <field name="Post-Blend Color Clamp Enable" start="32" end="32" type="bool"/>
- </struct>
+ <enum name="SURFACE_FORMAT" prefix="SF">
+ <value name="R32G32B32A32_FLOAT" value="0"/>
+ <value name="R32G32B32A32_SINT" value="1"/>
+ <value name="R32G32B32A32_UINT" value="2"/>
+ <value name="R32G32B32A32_UNORM" value="3"/>
+ <value name="R32G32B32A32_SNORM" value="4"/>
+ <value name="R64G64_FLOAT" value="5"/>
+ <value name="R32G32B32X32_FLOAT" value="6"/>
+ <value name="R32G32B32A32_SSCALED" value="7"/>
+ <value name="R32G32B32A32_USCALED" value="8"/>
+ <value name="R32G32B32A32_SFIXED" value="32"/>
+ <value name="R64G64_PASSTHRU" value="33"/>
+ <value name="R32G32B32_FLOAT" value="64"/>
+ <value name="R32G32B32_SINT" value="65"/>
+ <value name="R32G32B32_UINT" value="66"/>
+ <value name="R32G32B32_UNORM" value="67"/>
+ <value name="R32G32B32_SNORM" value="68"/>
+ <value name="R32G32B32_SSCALED" value="69"/>
+ <value name="R32G32B32_USCALED" value="70"/>
+ <value name="R32G32B32_SFIXED" value="80"/>
+ <value name="R16G16B16A16_UNORM" value="128"/>
+ <value name="R16G16B16A16_SNORM" value="129"/>
+ <value name="R16G16B16A16_SINT" value="130"/>
+ <value name="R16G16B16A16_UINT" value="131"/>
+ <value name="R16G16B16A16_FLOAT" value="132"/>
+ <value name="R32G32_FLOAT" value="133"/>
+ <value name="R32G32_SINT" value="134"/>
+ <value name="R32G32_UINT" value="135"/>
+ <value name="R32_FLOAT_X8X24_TYPELESS" value="136"/>
+ <value name="X32_TYPELESS_G8X24_UINT" value="137"/>
+ <value name="L32A32_FLOAT" value="138"/>
+ <value name="R32G32_UNORM" value="139"/>
+ <value name="R32G32_SNORM" value="140"/>
+ <value name="R64_FLOAT" value="141"/>
+ <value name="R16G16B16X16_UNORM" value="142"/>
+ <value name="R16G16B16X16_FLOAT" value="143"/>
+ <value name="A32X32_FLOAT" value="144"/>
+ <value name="L32X32_FLOAT" value="145"/>
+ <value name="I32X32_FLOAT" value="146"/>
+ <value name="R16G16B16A16_SSCALED" value="147"/>
+ <value name="R16G16B16A16_USCALED" value="148"/>
+ <value name="R32G32_SSCALED" value="149"/>
+ <value name="R32G32_USCALED" value="150"/>
+ <value name="R32G32_SFIXED" value="160"/>
+ <value name="R64_PASSTHRU" value="161"/>
+ <value name="B8G8R8A8_UNORM" value="192"/>
+ <value name="B8G8R8A8_UNORM_SRGB" value="193"/>
+ <value name="R10G10B10A2_UNORM" value="194"/>
+ <value name="R10G10B10A2_UNORM_SRGB" value="195"/>
+ <value name="R10G10B10A2_UINT" value="196"/>
+ <value name="R10G10B10_SNORM_A2_UNORM" value="197"/>
+ <value name="R8G8B8A8_UNORM" value="199"/>
+ <value name="R8G8B8A8_UNORM_SRGB" value="200"/>
+ <value name="R8G8B8A8_SNORM" value="201"/>
+ <value name="R8G8B8A8_SINT" value="202"/>
+ <value name="R8G8B8A8_UINT" value="203"/>
+ <value name="R16G16_UNORM" value="204"/>
+ <value name="R16G16_SNORM" value="205"/>
+ <value name="R16G16_SINT" value="206"/>
+ <value name="R16G16_UINT" value="207"/>
+ <value name="R16G16_FLOAT" value="208"/>
+ <value name="B10G10R10A2_UNORM" value="209"/>
+ <value name="B10G10R10A2_UNORM_SRGB" value="210"/>
+ <value name="R11G11B10_FLOAT" value="211"/>
+ <value name="R32_SINT" value="214"/>
+ <value name="R32_UINT" value="215"/>
+ <value name="R32_FLOAT" value="216"/>
+ <value name="R24_UNORM_X8_TYPELESS" value="217"/>
+ <value name="X24_TYPELESS_G8_UINT" value="218"/>
+ <value name="L32_UNORM" value="221"/>
+ <value name="A32_UNORM" value="222"/>
+ <value name="L16A16_UNORM" value="223"/>
+ <value name="I24X8_UNORM" value="224"/>
+ <value name="L24X8_UNORM" value="225"/>
+ <value name="A24X8_UNORM" value="226"/>
+ <value name="I32_FLOAT" value="227"/>
+ <value name="L32_FLOAT" value="228"/>
+ <value name="A32_FLOAT" value="229"/>
+ <value name="X8B8_UNORM_G8R8_SNORM" value="230"/>
+ <value name="A8X8_UNORM_G8R8_SNORM" value="231"/>
+ <value name="B8X8_UNORM_G8R8_SNORM" value="232"/>
+ <value name="B8G8R8X8_UNORM" value="233"/>
+ <value name="B8G8R8X8_UNORM_SRGB" value="234"/>
+ <value name="R8G8B8X8_UNORM" value="235"/>
+ <value name="R8G8B8X8_UNORM_SRGB" value="236"/>
+ <value name="R9G9B9E5_SHAREDEXP" value="237"/>
+ <value name="B10G10R10X2_UNORM" value="238"/>
+ <value name="L16A16_FLOAT" value="240"/>
+ <value name="R32_UNORM" value="241"/>
+ <value name="R32_SNORM" value="242"/>
+ <value name="R10G10B10X2_USCALED" value="243"/>
+ <value name="R8G8B8A8_SSCALED" value="244"/>
+ <value name="R8G8B8A8_USCALED" value="245"/>
+ <value name="R16G16_SSCALED" value="246"/>
+ <value name="R16G16_USCALED" value="247"/>
+ <value name="R32_SSCALED" value="248"/>
+ <value name="R32_USCALED" value="249"/>
+ <value name="B5G6R5_UNORM" value="256"/>
+ <value name="B5G6R5_UNORM_SRGB" value="257"/>
+ <value name="B5G5R5A1_UNORM" value="258"/>
+ <value name="B5G5R5A1_UNORM_SRGB" value="259"/>
+ <value name="B4G4R4A4_UNORM" value="260"/>
+ <value name="B4G4R4A4_UNORM_SRGB" value="261"/>
+ <value name="R8G8_UNORM" value="262"/>
+ <value name="R8G8_SNORM" value="263"/>
+ <value name="R8G8_SINT" value="264"/>
+ <value name="R8G8_UINT" value="265"/>
+ <value name="R16_UNORM" value="266"/>
+ <value name="R16_SNORM" value="267"/>
+ <value name="R16_SINT" value="268"/>
+ <value name="R16_UINT" value="269"/>
+ <value name="R16_FLOAT" value="270"/>
+ <value name="A8P8_UNORM_PALETTE0" value="271"/>
+ <value name="A8P8_UNORM_PALETTE1" value="272"/>
+ <value name="I16_UNORM" value="273"/>
+ <value name="L16_UNORM" value="274"/>
+ <value name="A16_UNORM" value="275"/>
+ <value name="L8A8_UNORM" value="276"/>
+ <value name="I16_FLOAT" value="277"/>
+ <value name="L16_FLOAT" value="278"/>
+ <value name="A16_FLOAT" value="279"/>
+ <value name="L8A8_UNORM_SRGB" value="280"/>
+ <value name="R5G5_SNORM_B6_UNORM" value="281"/>
+ <value name="B5G5R5X1_UNORM" value="282"/>
+ <value name="B5G5R5X1_UNORM_SRGB" value="283"/>
+ <value name="R8G8_SSCALED" value="284"/>
+ <value name="R8G8_USCALED" value="285"/>
+ <value name="R16_SSCALED" value="286"/>
+ <value name="R16_USCALED" value="287"/>
+ <value name="P8A8_UNORM_PALETTE0" value="290"/>
+ <value name="P8A8_UNORM_PALETTE1" value="291"/>
+ <value name="A1B5G5R5_UNORM" value="292"/>
+ <value name="A4B4G4R4_UNORM" value="293"/>
+ <value name="L8A8_UINT" value="294"/>
+ <value name="L8A8_SINT" value="295"/>
+ <value name="R8_UNORM" value="320"/>
+ <value name="R8_SNORM" value="321"/>
+ <value name="R8_SINT" value="322"/>
+ <value name="R8_UINT" value="323"/>
+ <value name="A8_UNORM" value="324"/>
+ <value name="I8_UNORM" value="325"/>
+ <value name="L8_UNORM" value="326"/>
+ <value name="P4A4_UNORM_PALETTE0" value="327"/>
+ <value name="A4P4_UNORM_PALETTE0" value="328"/>
+ <value name="R8_SSCALED" value="329"/>
+ <value name="R8_USCALED" value="330"/>
+ <value name="P8_UNORM_PALETTE0" value="331"/>
+ <value name="L8_UNORM_SRGB" value="332"/>
+ <value name="P8_UNORM_PALETTE1" value="333"/>
+ <value name="P4A4_UNORM_PALETTE1" value="334"/>
+ <value name="A4P4_UNORM_PALETTE1" value="335"/>
+ <value name="Y8_UNORM" value="336"/>
+ <value name="L8_UINT" value="338"/>
+ <value name="L8_SINT" value="339"/>
+ <value name="I8_UINT" value="340"/>
+ <value name="I8_SINT" value="341"/>
+ <value name="DXT1_RGB_SRGB" value="384"/>
+ <value name="R1_UNORM" value="385"/>
+ <value name="YCRCB_NORMAL" value="386"/>
+ <value name="YCRCB_SWAPUVY" value="387"/>
+ <value name="P2_UNORM_PALETTE0" value="388"/>
+ <value name="P2_UNORM_PALETTE1" value="389"/>
+ <value name="BC1_UNORM" value="390"/>
+ <value name="BC2_UNORM" value="391"/>
+ <value name="BC3_UNORM" value="392"/>
+ <value name="BC4_UNORM" value="393"/>
+ <value name="BC5_UNORM" value="394"/>
+ <value name="BC1_UNORM_SRGB" value="395"/>
+ <value name="BC2_UNORM_SRGB" value="396"/>
+ <value name="BC3_UNORM_SRGB" value="397"/>
+ <value name="MONO8" value="398"/>
+ <value name="YCRCB_SWAPUV" value="399"/>
+ <value name="YCRCB_SWAPY" value="400"/>
+ <value name="DXT1_RGB" value="401"/>
+ <value name="FXT1" value="402"/>
+ <value name="R8G8B8_UNORM" value="403"/>
+ <value name="R8G8B8_SNORM" value="404"/>
+ <value name="R8G8B8_SSCALED" value="405"/>
+ <value name="R8G8B8_USCALED" value="406"/>
+ <value name="R64G64B64A64_FLOAT" value="407"/>
+ <value name="R64G64B64_FLOAT" value="408"/>
+ <value name="BC4_SNORM" value="409"/>
+ <value name="BC5_SNORM" value="410"/>
+ <value name="R16G16B16_FLOAT" value="411"/>
+ <value name="R16G16B16_UNORM" value="412"/>
+ <value name="R16G16B16_SNORM" value="413"/>
+ <value name="R16G16B16_SSCALED" value="414"/>
+ <value name="R16G16B16_USCALED" value="415"/>
+ <value name="BC6H_SF16" value="417"/>
+ <value name="BC7_UNORM" value="418"/>
+ <value name="BC7_UNORM_SRGB" value="419"/>
+ <value name="BC6H_UF16" value="420"/>
+ <value name="PLANAR_420_8" value="421"/>
+ <value name="R8G8B8_UNORM_SRGB" value="424"/>
+ <value name="ETC1_RGB8" value="425"/>
+ <value name="ETC2_RGB8" value="426"/>
+ <value name="EAC_R11" value="427"/>
+ <value name="EAC_RG11" value="428"/>
+ <value name="EAC_SIGNED_R11" value="429"/>
+ <value name="EAC_SIGNED_RG11" value="430"/>
+ <value name="ETC2_SRGB8" value="431"/>
+ <value name="R16G16B16_UINT" value="432"/>
+ <value name="R16G16B16_SINT" value="433"/>
+ <value name="R32_SFIXED" value="434"/>
+ <value name="R10G10B10A2_SNORM" value="435"/>
+ <value name="R10G10B10A2_USCALED" value="436"/>
+ <value name="R10G10B10A2_SSCALED" value="437"/>
+ <value name="R10G10B10A2_SINT" value="438"/>
+ <value name="B10G10R10A2_SNORM" value="439"/>
+ <value name="B10G10R10A2_USCALED" value="440"/>
+ <value name="B10G10R10A2_SSCALED" value="441"/>
+ <value name="B10G10R10A2_UINT" value="442"/>
+ <value name="B10G10R10A2_SINT" value="443"/>
+ <value name="R64G64B64A64_PASSTHRU" value="444"/>
+ <value name="R64G64B64_PASSTHRU" value="445"/>
+ <value name="ETC2_RGB8_PTA" value="448"/>
+ <value name="ETC2_SRGB8_PTA" value="449"/>
+ <value name="ETC2_EAC_RGBA8" value="450"/>
+ <value name="ETC2_EAC_SRGB8_A8" value="451"/>
+ <value name="R8G8B8_UINT" value="456"/>
+ <value name="R8G8B8_SINT" value="457"/>
+ <value name="RAW" value="511"/>
+ </enum>
- <struct name="BLEND_STATE" length="16">
- <group count="8" start="0" size="64">
- <field name="Entry" start="0" end="63" type="BLEND_STATE_ENTRY"/>
- </group>
- </struct>
+ <enum name="Texture Coordinate Mode" prefix="TCM">
+ <value name="WRAP" value="0"/>
+ <value name="MIRROR" value="1"/>
+ <value name="CLAMP" value="2"/>
+ <value name="CUBE" value="3"/>
+ <value name="CLAMP_BORDER" value="4"/>
+ <value name="MIRROR_ONCE" value="5"/>
+ </enum>
- <struct name="CC_VIEWPORT" length="2">
- <field name="Minimum Depth" start="0" end="31" type="float"/>
- <field name="Maximum Depth" start="32" end="63" type="float"/>
+ <struct name="MEMORY_OBJECT_CONTROL_STATE" length="1">
+ <field name="Graphics Data Type (GFDT)" start="2" end="2" type="uint"/>
+ <field name="LLC Cacheability Control (LLCCC)" start="1" end="1" type="uint"/>
+ <field name="L3 Cacheability Control (L3CC)" start="0" end="0" type="uint"/>
</struct>
- <struct name="COLOR_CALC_STATE" length="6">
- <field name="Stencil Reference Value" start="24" end="31" type="uint"/>
- <field name="Backface Stencil Reference Value" start="16" end="23" type="uint"/>
- <field name="Round Disable Function Disable" start="15" end="15" type="bool"/>
+ <struct name="3DSTATE_CONSTANT_BODY" length="6">
+ <field name="Constant Buffer 1 Read Length" start="16" end="31" type="uint"/>
+ <field name="Constant Buffer 0 Read Length" start="0" end="15" type="uint"/>
+ <field name="Constant Buffer 3 Read Length" start="48" end="63" type="uint"/>
+ <field name="Constant Buffer 2 Read Length" start="32" end="47" type="uint"/>
+ <field name="Pointer To Constant Buffer 0" start="69" end="95" type="address"/>
+ <field name="Constant Buffer Object Control State" start="64" end="68" type="MEMORY_OBJECT_CONTROL_STATE"/>
+ <field name="Pointer To Constant Buffer 1" start="101" end="127" type="address"/>
+ <field name="Pointer To Constant Buffer 2" start="133" end="159" type="address"/>
+ <field name="Pointer To Constant Buffer 3" start="165" end="191" type="address"/>
+ </struct>
+
+ <struct name="VERTEX_BUFFER_STATE" length="4">
+ <field name="Vertex Buffer Index" start="26" end="31" type="uint"/>
+ <field name="Buffer Access Type" start="20" end="20" type="uint">
+ <value name="VERTEXDATA" value="0"/>
+ <value name="INSTANCEDATA" value="1"/>
+ </field>
+ <field name="Vertex Buffer Memory Object Control State" start="16" end="19" type="MEMORY_OBJECT_CONTROL_STATE"/>
+ <field name="Vertex Buffer MOCS" start="16" end="19" type="uint"/>
+ <field name="Address Modify Enable" start="14" end="14" type="bool"/>
+ <field name="Null Vertex Buffer" start="13" end="13" type="bool"/>
+ <field name="Vertex Fetch Invalidate" start="12" end="12" type="bool" default="0"/>
+ <field name="Buffer Pitch" start="0" end="11" type="uint"/>
+ <field name="Buffer Starting Address" start="32" end="63" type="address"/>
+ <field name="End Address" start="64" end="95" type="address"/>
+ <field name="Instance Data Step Rate" start="96" end="127" type="uint"/>
+ </struct>
+
+ <struct name="VERTEX_ELEMENT_STATE" length="2">
+ <field name="Vertex Buffer Index" start="26" end="31" type="uint"/>
+ <field name="Valid" start="25" end="25" type="bool"/>
+ <field name="Source Element Format" start="16" end="24" type="uint"/>
+ <field name="Edge Flag Enable" start="15" end="15" type="bool"/>
+ <field name="Source Element Offset" start="0" end="11" type="uint"/>
+ <field name="Component 0 Control" start="60" end="62" type="uint"/>
+ <field name="Component 1 Control" start="56" end="58" type="uint"/>
+ <field name="Component 2 Control" start="52" end="54" type="uint"/>
+ <field name="Component 3 Control" start="48" end="50" type="uint"/>
+ </struct>
+
+ <struct name="SO_DECL" length="1">
+ <field name="Output Buffer Slot" start="12" end="13" type="uint"/>
+ <field name="Hole Flag" start="11" end="11" type="uint"/>
+ <field name="Register Index" start="4" end="9" type="uint"/>
+ <field name="Component Mask" start="0" end="3" type="uint" default="0"/>
+ </struct>
+
+ <struct name="SO_DECL_ENTRY" length="2">
+ <field name="Stream 3 Decl" start="48" end="63" type="SO_DECL"/>
+ <field name="Stream 2 Decl" start="32" end="47" type="SO_DECL"/>
+ <field name="Stream 1 Decl" start="16" end="31" type="SO_DECL"/>
+ <field name="Stream 0 Decl" start="0" end="15" type="SO_DECL"/>
+ </struct>
+
+ <struct name="SF_OUTPUT_ATTRIBUTE_DETAIL" length="1">
+ <field name="Component Override W" start="15" end="15" type="bool"/>
+ <field name="Component Override Z" start="14" end="14" type="bool"/>
+ <field name="Component Override Y" start="13" end="13" type="bool"/>
+ <field name="Component Override X" start="12" end="12" type="bool"/>
+ <field name="Swizzle Control Mode" start="11" end="11" type="uint"/>
+ <field name="Constant Source" start="9" end="10" type="uint">
+ <value name="CONST_0000" value="0"/>
+ <value name="CONST_0001_FLOAT" value="1"/>
+ <value name="CONST_1111_FLOAT" value="2"/>
+ <value name="PRIM_ID" value="3"/>
+ </field>
+ <field name="Swizzle Select" start="6" end="7" type="uint">
+ <value name="INPUTATTR" value="0"/>
+ <value name="INPUTATTR_FACING" value="1"/>
+ <value name="INPUTATTR_W" value="2"/>
+ <value name="INPUTATTR_FACING_W" value="3"/>
+ </field>
+ <field name="Source Attribute" start="0" end="4" type="uint"/>
+ </struct>
+
+ <struct name="SCISSOR_RECT" length="2">
+ <field name="Scissor Rectangle Y Min" start="16" end="31" type="uint"/>
+ <field name="Scissor Rectangle X Min" start="0" end="15" type="uint"/>
+ <field name="Scissor Rectangle Y Max" start="48" end="63" type="uint"/>
+ <field name="Scissor Rectangle X Max" start="32" end="47" type="uint"/>
+ </struct>
+
+ <struct name="SF_CLIP_VIEWPORT" length="16">
+ <field name="Viewport Matrix Element m00" start="0" end="31" type="float"/>
+ <field name="Viewport Matrix Element m11" start="32" end="63" type="float"/>
+ <field name="Viewport Matrix Element m22" start="64" end="95" type="float"/>
+ <field name="Viewport Matrix Element m30" start="96" end="127" type="float"/>
+ <field name="Viewport Matrix Element m31" start="128" end="159" type="float"/>
+ <field name="Viewport Matrix Element m32" start="160" end="191" type="float"/>
+ <field name="X Min Clip Guardband" start="256" end="287" type="float"/>
+ <field name="X Max Clip Guardband" start="288" end="319" type="float"/>
+ <field name="Y Min Clip Guardband" start="320" end="351" type="float"/>
+ <field name="Y Max Clip Guardband" start="352" end="383" type="float"/>
+ <group count="4" start="384" size="32">
+ </group>
+ </struct>
+
+ <struct name="BLEND_STATE_ENTRY" length="2">
+ <field name="Color Buffer Blend Enable" start="31" end="31" type="bool"/>
+ <field name="Independent Alpha Blend Enable" start="30" end="30" type="bool"/>
+ <field name="Alpha Blend Function" start="26" end="28" type="uint">
+ <value name="BLENDFUNCTION_ADD" value="0"/>
+ <value name="BLENDFUNCTION_SUBTRACT" value="1"/>
+ <value name="BLENDFUNCTION_REVERSE_SUBTRACT" value="2"/>
+ <value name="BLENDFUNCTION_MIN" value="3"/>
+ <value name="BLENDFUNCTION_MAX" value="4"/>
+ </field>
+ <field name="Source Alpha Blend Factor" start="20" end="24" type="uint">
+ <value name="BLENDFACTOR_ONE" value="1"/>
+ <value name="BLENDFACTOR_SRC_COLOR" value="2"/>
+ <value name="BLENDFACTOR_SRC_ALPHA" value="3"/>
+ <value name="BLENDFACTOR_DST_ALPHA" value="4"/>
+ <value name="BLENDFACTOR_DST_COLOR" value="5"/>
+ <value name="BLENDFACTOR_SRC_ALPHA_SATURATE" value="6"/>
+ <value name="BLENDFACTOR_CONST_COLOR" value="7"/>
+ <value name="BLENDFACTOR_CONST_ALPHA" value="8"/>
+ <value name="BLENDFACTOR_SRC1_COLOR" value="9"/>
+ <value name="BLENDFACTOR_SRC1_ALPHA" value="10"/>
+ <value name="BLENDFACTOR_ZERO" value="17"/>
+ <value name="BLENDFACTOR_INV_SRC_COLOR" value="18"/>
+ <value name="BLENDFACTOR_INV_SRC_ALPHA" value="19"/>
+ <value name="BLENDFACTOR_INV_DST_ALPHA" value="20"/>
+ <value name="BLENDFACTOR_INV_DST_COLOR" value="21"/>
+ <value name="BLENDFACTOR_INV_CONST_COLOR" value="23"/>
+ <value name="BLENDFACTOR_INV_CONST_ALPHA" value="24"/>
+ <value name="BLENDFACTOR_INV_SRC1_COLOR" value="25"/>
+ <value name="BLENDFACTOR_INV_SRC1_ALPHA" value="26"/>
+ </field>
+ <field name="Destination Alpha Blend Factor" start="15" end="19" type="uint"/>
+ <field name="Color Blend Function" start="11" end="13" type="uint">
+ <value name="BLENDFUNCTION_ADD" value="0"/>
+ <value name="BLENDFUNCTION_SUBTRACT" value="1"/>
+ <value name="BLENDFUNCTION_REVERSE_SUBTRACT" value="2"/>
+ <value name="BLENDFUNCTION_MIN " value="3"/>
+ <value name="BLENDFUNCTION_MAX" value="4"/>
+ </field>
+ <field name="Source Blend Factor" start="5" end="9" type="uint"/>
+ <field name="Destination Blend Factor" start="0" end="4" type="uint"/>
+ <field name="AlphaToCoverage Enable" start="63" end="63" type="bool"/>
+ <field name="AlphaToOne Enable" start="62" end="62" type="bool"/>
+ <field name="AlphaToCoverage Dither Enable" start="61" end="61" type="bool"/>
+ <field name="Write Disable Alpha" start="59" end="59" type="bool"/>
+ <field name="Write Disable Red" start="58" end="58" type="bool"/>
+ <field name="Write Disable Green" start="57" end="57" type="bool"/>
+ <field name="Write Disable Blue" start="56" end="56" type="bool"/>
+ <field name="Logic Op Enable" start="54" end="54" type="bool"/>
+ <field name="Logic Op Function" start="50" end="53" type="uint">
+ <value name="LOGICOP_CLEAR" value="0"/>
+ <value name="LOGICOP_NOR" value="1"/>
+ <value name="LOGICOP_AND_INVERTED" value="2"/>
+ <value name="LOGICOP_COPY_INVERTED" value="3"/>
+ <value name="LOGICOP_AND_REVERSE" value="4"/>
+ <value name="LOGICOP_INVERT" value="5"/>
+ <value name="LOGICOP_XOR" value="6"/>
+ <value name="LOGICOP_NAND" value="7"/>
+ <value name="LOGICOP_AND" value="8"/>
+ <value name="LOGICOP_EQUIV" value="9"/>
+ <value name="LOGICOP_NOOP" value="10"/>
+ <value name="LOGICOP_OR_INVERTED" value="11"/>
+ <value name="LOGICOP_COPY" value="12"/>
+ <value name="LOGICOP_OR_REVERSE" value="13"/>
+ <value name="LOGICOP_OR" value="14"/>
+ <value name="LOGICOP_SET" value="15"/>
+ </field>
+ <field name="Alpha Test Enable" start="48" end="48" type="bool"/>
+ <field name="Alpha Test Function" start="45" end="47" type="uint">
+ <value name="COMPAREFUNCTION_ALWAYS" value="0"/>
+ <value name="COMPAREFUNCTION_NEVER" value="1"/>
+ <value name="COMPAREFUNCTION_LESS" value="2"/>
+ <value name="COMPAREFUNCTION_EQUAL" value="3"/>
+ <value name="COMPAREFUNCTION_LEQUAL" value="4"/>
+ <value name="COMPAREFUNCTION_GREATER" value="5"/>
+ <value name="COMPAREFUNCTION_NOTEQUAL" value="6"/>
+ <value name="COMPAREFUNCTION_GEQUAL" value="7"/>
+ </field>
+ <field name="Color Dither Enable" start="44" end="44" type="bool"/>
+ <field name="X Dither Offset" start="42" end="43" type="uint"/>
+ <field name="Y Dither Offset" start="40" end="41" type="uint"/>
+ <field name="Color Clamp Range" start="34" end="35" type="uint">
+ <value name="COLORCLAMP_UNORM" value="0"/>
+ <value name="COLORCLAMP_SNORM" value="1"/>
+ <value name="COLORCLAMP_RTFORMAT" value="2"/>
+ </field>
+ <field name="Pre-Blend Color Clamp Enable" start="33" end="33" type="bool"/>
+ <field name="Post-Blend Color Clamp Enable" start="32" end="32" type="bool"/>
+ </struct>
+
+ <struct name="BLEND_STATE" length="16">
+ <group count="8" start="0" size="64">
+ <field name="Entry" start="0" end="63" type="BLEND_STATE_ENTRY"/>
+ </group>
+ </struct>
+
+ <struct name="CC_VIEWPORT" length="2">
+ <field name="Minimum Depth" start="0" end="31" type="float"/>
+ <field name="Maximum Depth" start="32" end="63" type="float"/>
+ </struct>
+
+ <struct name="COLOR_CALC_STATE" length="6">
+ <field name="Stencil Reference Value" start="24" end="31" type="uint"/>
+ <field name="Backface Stencil Reference Value" start="16" end="23" type="uint"/>
+ <field name="Round Disable Function Disable" start="15" end="15" type="bool"/>
<field name="Alpha Test Format" start="0" end="0" type="uint">
<value name="ALPHATEST_UNORM8" value="0"/>
<value name="ALPHATEST_FLOAT32" value="1"/>
<field name="TCZ Address Control Mode" start="96" end="98" type="uint"/>
</struct>
- <enum name="3D_Prim_Topo_Type" prefix="3DPRIM">
- <value name="POINTLIST" value="1"/>
- <value name="LINELIST" value="2"/>
- <value name="LINESTRIP" value="3"/>
- <value name="TRILIST" value="4"/>
- <value name="TRISTRIP" value="5"/>
- <value name="TRIFAN" value="6"/>
- <value name="QUADLIST" value="7"/>
- <value name="QUADSTRIP" value="8"/>
- <value name="LINELIST_ADJ" value="9"/>
- <value name="LINESTRIP_ADJ" value="10"/>
- <value name="TRILIST_ADJ" value="11"/>
- <value name="TRISTRIP_ADJ" value="12"/>
- <value name="TRISTRIP_REVERSE" value="13"/>
- <value name="POLYGON" value="14"/>
- <value name="RECTLIST" value="15"/>
- <value name="LINELOOP" value="16"/>
- <value name="POINTLIST _BF" value="17"/>
- <value name="LINESTRIP_CONT" value="18"/>
- <value name="LINESTRIP_BF" value="19"/>
- <value name="LINESTRIP_CONT_BF" value="20"/>
- <value name="TRIFAN_NOSTIPPLE" value="22"/>
- <value name="PATCHLIST_1" value="32"/>
- <value name="PATCHLIST_2" value="33"/>
- <value name="PATCHLIST_3" value="34"/>
- <value name="PATCHLIST_4" value="35"/>
- <value name="PATCHLIST_5" value="36"/>
- <value name="PATCHLIST_6" value="37"/>
- <value name="PATCHLIST_7" value="38"/>
- <value name="PATCHLIST_8" value="39"/>
- <value name="PATCHLIST_9" value="40"/>
- <value name="PATCHLIST_10" value="41"/>
- <value name="PATCHLIST_11" value="42"/>
- <value name="PATCHLIST_12" value="43"/>
- <value name="PATCHLIST_13" value="44"/>
- <value name="PATCHLIST_14" value="45"/>
- <value name="PATCHLIST_15" value="46"/>
- <value name="PATCHLIST_16" value="47"/>
- <value name="PATCHLIST_17" value="48"/>
- <value name="PATCHLIST_18" value="49"/>
- <value name="PATCHLIST_19" value="50"/>
- <value name="PATCHLIST_20" value="51"/>
- <value name="PATCHLIST_21" value="52"/>
- <value name="PATCHLIST_22" value="53"/>
- <value name="PATCHLIST_23" value="54"/>
- <value name="PATCHLIST_24" value="55"/>
- <value name="PATCHLIST_25" value="56"/>
- <value name="PATCHLIST_26" value="57"/>
- <value name="PATCHLIST_27" value="58"/>
- <value name="PATCHLIST_28" value="59"/>
- <value name="PATCHLIST_29" value="60"/>
- <value name="PATCHLIST_30" value="61"/>
- <value name="PATCHLIST_31" value="62"/>
- <value name="PATCHLIST_32" value="63"/>
- </enum>
-
- <enum name="3D_Vertex_Component_Control" prefix="VFCOMP">
- <value name="NOSTORE" value="0"/>
- <value name="STORE_SRC" value="1"/>
- <value name="STORE_0" value="2"/>
- <value name="STORE_1_FP" value="3"/>
- <value name="STORE_1_INT" value="4"/>
- <value name="STORE_VID" value="5"/>
- <value name="STORE_IID" value="6"/>
- <value name="STORE_PID" value="7"/>
- </enum>
-
- <enum name="3D_Compare_Function" prefix="COMPAREFUNCTION">
- <value name="ALWAYS" value="0"/>
- <value name="NEVER" value="1"/>
- <value name="LESS" value="2"/>
- <value name="EQUAL" value="3"/>
- <value name="LEQUAL" value="4"/>
- <value name="GREATER" value="5"/>
- <value name="NOTEQUAL" value="6"/>
- <value name="GEQUAL" value="7"/>
- </enum>
-
- <enum name="SURFACE_FORMAT" prefix="SF">
- <value name="R32G32B32A32_FLOAT" value="0"/>
- <value name="R32G32B32A32_SINT" value="1"/>
- <value name="R32G32B32A32_UINT" value="2"/>
- <value name="R32G32B32A32_UNORM" value="3"/>
- <value name="R32G32B32A32_SNORM" value="4"/>
- <value name="R64G64_FLOAT" value="5"/>
- <value name="R32G32B32X32_FLOAT" value="6"/>
- <value name="R32G32B32A32_SSCALED" value="7"/>
- <value name="R32G32B32A32_USCALED" value="8"/>
- <value name="R32G32B32A32_SFIXED" value="32"/>
- <value name="R64G64_PASSTHRU" value="33"/>
- <value name="R32G32B32_FLOAT" value="64"/>
- <value name="R32G32B32_SINT" value="65"/>
- <value name="R32G32B32_UINT" value="66"/>
- <value name="R32G32B32_UNORM" value="67"/>
- <value name="R32G32B32_SNORM" value="68"/>
- <value name="R32G32B32_SSCALED" value="69"/>
- <value name="R32G32B32_USCALED" value="70"/>
- <value name="R32G32B32_SFIXED" value="80"/>
- <value name="R16G16B16A16_UNORM" value="128"/>
- <value name="R16G16B16A16_SNORM" value="129"/>
- <value name="R16G16B16A16_SINT" value="130"/>
- <value name="R16G16B16A16_UINT" value="131"/>
- <value name="R16G16B16A16_FLOAT" value="132"/>
- <value name="R32G32_FLOAT" value="133"/>
- <value name="R32G32_SINT" value="134"/>
- <value name="R32G32_UINT" value="135"/>
- <value name="R32_FLOAT_X8X24_TYPELESS" value="136"/>
- <value name="X32_TYPELESS_G8X24_UINT" value="137"/>
- <value name="L32A32_FLOAT" value="138"/>
- <value name="R32G32_UNORM" value="139"/>
- <value name="R32G32_SNORM" value="140"/>
- <value name="R64_FLOAT" value="141"/>
- <value name="R16G16B16X16_UNORM" value="142"/>
- <value name="R16G16B16X16_FLOAT" value="143"/>
- <value name="A32X32_FLOAT" value="144"/>
- <value name="L32X32_FLOAT" value="145"/>
- <value name="I32X32_FLOAT" value="146"/>
- <value name="R16G16B16A16_SSCALED" value="147"/>
- <value name="R16G16B16A16_USCALED" value="148"/>
- <value name="R32G32_SSCALED" value="149"/>
- <value name="R32G32_USCALED" value="150"/>
- <value name="R32G32_SFIXED" value="160"/>
- <value name="R64_PASSTHRU" value="161"/>
- <value name="B8G8R8A8_UNORM" value="192"/>
- <value name="B8G8R8A8_UNORM_SRGB" value="193"/>
- <value name="R10G10B10A2_UNORM" value="194"/>
- <value name="R10G10B10A2_UNORM_SRGB" value="195"/>
- <value name="R10G10B10A2_UINT" value="196"/>
- <value name="R10G10B10_SNORM_A2_UNORM" value="197"/>
- <value name="R8G8B8A8_UNORM" value="199"/>
- <value name="R8G8B8A8_UNORM_SRGB" value="200"/>
- <value name="R8G8B8A8_SNORM" value="201"/>
- <value name="R8G8B8A8_SINT" value="202"/>
- <value name="R8G8B8A8_UINT" value="203"/>
- <value name="R16G16_UNORM" value="204"/>
- <value name="R16G16_SNORM" value="205"/>
- <value name="R16G16_SINT" value="206"/>
- <value name="R16G16_UINT" value="207"/>
- <value name="R16G16_FLOAT" value="208"/>
- <value name="B10G10R10A2_UNORM" value="209"/>
- <value name="B10G10R10A2_UNORM_SRGB" value="210"/>
- <value name="R11G11B10_FLOAT" value="211"/>
- <value name="R32_SINT" value="214"/>
- <value name="R32_UINT" value="215"/>
- <value name="R32_FLOAT" value="216"/>
- <value name="R24_UNORM_X8_TYPELESS" value="217"/>
- <value name="X24_TYPELESS_G8_UINT" value="218"/>
- <value name="L32_UNORM" value="221"/>
- <value name="A32_UNORM" value="222"/>
- <value name="L16A16_UNORM" value="223"/>
- <value name="I24X8_UNORM" value="224"/>
- <value name="L24X8_UNORM" value="225"/>
- <value name="A24X8_UNORM" value="226"/>
- <value name="I32_FLOAT" value="227"/>
- <value name="L32_FLOAT" value="228"/>
- <value name="A32_FLOAT" value="229"/>
- <value name="X8B8_UNORM_G8R8_SNORM" value="230"/>
- <value name="A8X8_UNORM_G8R8_SNORM" value="231"/>
- <value name="B8X8_UNORM_G8R8_SNORM" value="232"/>
- <value name="B8G8R8X8_UNORM" value="233"/>
- <value name="B8G8R8X8_UNORM_SRGB" value="234"/>
- <value name="R8G8B8X8_UNORM" value="235"/>
- <value name="R8G8B8X8_UNORM_SRGB" value="236"/>
- <value name="R9G9B9E5_SHAREDEXP" value="237"/>
- <value name="B10G10R10X2_UNORM" value="238"/>
- <value name="L16A16_FLOAT" value="240"/>
- <value name="R32_UNORM" value="241"/>
- <value name="R32_SNORM" value="242"/>
- <value name="R10G10B10X2_USCALED" value="243"/>
- <value name="R8G8B8A8_SSCALED" value="244"/>
- <value name="R8G8B8A8_USCALED" value="245"/>
- <value name="R16G16_SSCALED" value="246"/>
- <value name="R16G16_USCALED" value="247"/>
- <value name="R32_SSCALED" value="248"/>
- <value name="R32_USCALED" value="249"/>
- <value name="B5G6R5_UNORM" value="256"/>
- <value name="B5G6R5_UNORM_SRGB" value="257"/>
- <value name="B5G5R5A1_UNORM" value="258"/>
- <value name="B5G5R5A1_UNORM_SRGB" value="259"/>
- <value name="B4G4R4A4_UNORM" value="260"/>
- <value name="B4G4R4A4_UNORM_SRGB" value="261"/>
- <value name="R8G8_UNORM" value="262"/>
- <value name="R8G8_SNORM" value="263"/>
- <value name="R8G8_SINT" value="264"/>
- <value name="R8G8_UINT" value="265"/>
- <value name="R16_UNORM" value="266"/>
- <value name="R16_SNORM" value="267"/>
- <value name="R16_SINT" value="268"/>
- <value name="R16_UINT" value="269"/>
- <value name="R16_FLOAT" value="270"/>
- <value name="A8P8_UNORM_PALETTE0" value="271"/>
- <value name="A8P8_UNORM_PALETTE1" value="272"/>
- <value name="I16_UNORM" value="273"/>
- <value name="L16_UNORM" value="274"/>
- <value name="A16_UNORM" value="275"/>
- <value name="L8A8_UNORM" value="276"/>
- <value name="I16_FLOAT" value="277"/>
- <value name="L16_FLOAT" value="278"/>
- <value name="A16_FLOAT" value="279"/>
- <value name="L8A8_UNORM_SRGB" value="280"/>
- <value name="R5G5_SNORM_B6_UNORM" value="281"/>
- <value name="B5G5R5X1_UNORM" value="282"/>
- <value name="B5G5R5X1_UNORM_SRGB" value="283"/>
- <value name="R8G8_SSCALED" value="284"/>
- <value name="R8G8_USCALED" value="285"/>
- <value name="R16_SSCALED" value="286"/>
- <value name="R16_USCALED" value="287"/>
- <value name="P8A8_UNORM_PALETTE0" value="290"/>
- <value name="P8A8_UNORM_PALETTE1" value="291"/>
- <value name="A1B5G5R5_UNORM" value="292"/>
- <value name="A4B4G4R4_UNORM" value="293"/>
- <value name="L8A8_UINT" value="294"/>
- <value name="L8A8_SINT" value="295"/>
- <value name="R8_UNORM" value="320"/>
- <value name="R8_SNORM" value="321"/>
- <value name="R8_SINT" value="322"/>
- <value name="R8_UINT" value="323"/>
- <value name="A8_UNORM" value="324"/>
- <value name="I8_UNORM" value="325"/>
- <value name="L8_UNORM" value="326"/>
- <value name="P4A4_UNORM_PALETTE0" value="327"/>
- <value name="A4P4_UNORM_PALETTE0" value="328"/>
- <value name="R8_SSCALED" value="329"/>
- <value name="R8_USCALED" value="330"/>
- <value name="P8_UNORM_PALETTE0" value="331"/>
- <value name="L8_UNORM_SRGB" value="332"/>
- <value name="P8_UNORM_PALETTE1" value="333"/>
- <value name="P4A4_UNORM_PALETTE1" value="334"/>
- <value name="A4P4_UNORM_PALETTE1" value="335"/>
- <value name="Y8_UNORM" value="336"/>
- <value name="L8_UINT" value="338"/>
- <value name="L8_SINT" value="339"/>
- <value name="I8_UINT" value="340"/>
- <value name="I8_SINT" value="341"/>
- <value name="DXT1_RGB_SRGB" value="384"/>
- <value name="R1_UNORM" value="385"/>
- <value name="YCRCB_NORMAL" value="386"/>
- <value name="YCRCB_SWAPUVY" value="387"/>
- <value name="P2_UNORM_PALETTE0" value="388"/>
- <value name="P2_UNORM_PALETTE1" value="389"/>
- <value name="BC1_UNORM" value="390"/>
- <value name="BC2_UNORM" value="391"/>
- <value name="BC3_UNORM" value="392"/>
- <value name="BC4_UNORM" value="393"/>
- <value name="BC5_UNORM" value="394"/>
- <value name="BC1_UNORM_SRGB" value="395"/>
- <value name="BC2_UNORM_SRGB" value="396"/>
- <value name="BC3_UNORM_SRGB" value="397"/>
- <value name="MONO8" value="398"/>
- <value name="YCRCB_SWAPUV" value="399"/>
- <value name="YCRCB_SWAPY" value="400"/>
- <value name="DXT1_RGB" value="401"/>
- <value name="FXT1" value="402"/>
- <value name="R8G8B8_UNORM" value="403"/>
- <value name="R8G8B8_SNORM" value="404"/>
- <value name="R8G8B8_SSCALED" value="405"/>
- <value name="R8G8B8_USCALED" value="406"/>
- <value name="R64G64B64A64_FLOAT" value="407"/>
- <value name="R64G64B64_FLOAT" value="408"/>
- <value name="BC4_SNORM" value="409"/>
- <value name="BC5_SNORM" value="410"/>
- <value name="R16G16B16_FLOAT" value="411"/>
- <value name="R16G16B16_UNORM" value="412"/>
- <value name="R16G16B16_SNORM" value="413"/>
- <value name="R16G16B16_SSCALED" value="414"/>
- <value name="R16G16B16_USCALED" value="415"/>
- <value name="BC6H_SF16" value="417"/>
- <value name="BC7_UNORM" value="418"/>
- <value name="BC7_UNORM_SRGB" value="419"/>
- <value name="BC6H_UF16" value="420"/>
- <value name="PLANAR_420_8" value="421"/>
- <value name="R8G8B8_UNORM_SRGB" value="424"/>
- <value name="ETC1_RGB8" value="425"/>
- <value name="ETC2_RGB8" value="426"/>
- <value name="EAC_R11" value="427"/>
- <value name="EAC_RG11" value="428"/>
- <value name="EAC_SIGNED_R11" value="429"/>
- <value name="EAC_SIGNED_RG11" value="430"/>
- <value name="ETC2_SRGB8" value="431"/>
- <value name="R16G16B16_UINT" value="432"/>
- <value name="R16G16B16_SINT" value="433"/>
- <value name="R32_SFIXED" value="434"/>
- <value name="R10G10B10A2_SNORM" value="435"/>
- <value name="R10G10B10A2_USCALED" value="436"/>
- <value name="R10G10B10A2_SSCALED" value="437"/>
- <value name="R10G10B10A2_SINT" value="438"/>
- <value name="B10G10R10A2_SNORM" value="439"/>
- <value name="B10G10R10A2_USCALED" value="440"/>
- <value name="B10G10R10A2_SSCALED" value="441"/>
- <value name="B10G10R10A2_UINT" value="442"/>
- <value name="B10G10R10A2_SINT" value="443"/>
- <value name="R64G64B64A64_PASSTHRU" value="444"/>
- <value name="R64G64B64_PASSTHRU" value="445"/>
- <value name="ETC2_RGB8_PTA" value="448"/>
- <value name="ETC2_SRGB8_PTA" value="449"/>
- <value name="ETC2_EAC_RGBA8" value="450"/>
- <value name="ETC2_EAC_SRGB8_A8" value="451"/>
- <value name="R8G8B8_UINT" value="456"/>
- <value name="R8G8B8_SINT" value="457"/>
- <value name="RAW" value="511"/>
- </enum>
-
- <enum name="Texture Coordinate Mode" prefix="TCM">
- <value name="WRAP" value="0"/>
- <value name="MIRROR" value="1"/>
- <value name="CLAMP" value="2"/>
- <value name="CUBE" value="3"/>
- <value name="CLAMP_BORDER" value="4"/>
- <value name="MIRROR_ONCE" value="5"/>
- </enum>
-
<instruction name="3DPRIMITIVE" bias="2" length="7">
<field name="Command Type" start="29" end="31" type="uint" default="3"/>
<field name="Command SubType" start="27" end="28" type="uint" default="3"/>
<genxml name="HSW" gen="7.5">
- <struct name="MEMORY_OBJECT_CONTROL_STATE" length="1">
- <field name="LLC/eLLC Cacheability Control (LLCCC)" start="1" end="2" type="uint"/>
- <field name="L3 Cacheability Control (L3CC)" start="0" end="0" type="uint"/>
- </struct>
-
- <struct name="3DSTATE_CONSTANT_BODY" length="6">
- <field name="Constant Buffer 1 Read Length" start="16" end="31" type="uint"/>
- <field name="Constant Buffer 0 Read Length" start="0" end="15" type="uint"/>
- <field name="Constant Buffer 3 Read Length" start="48" end="63" type="uint"/>
- <field name="Constant Buffer 2 Read Length" start="32" end="47" type="uint"/>
- <field name="Pointer To Constant Buffer 0" start="69" end="95" type="address"/>
- <field name="Constant Buffer Object Control State" start="64" end="68" type="MEMORY_OBJECT_CONTROL_STATE"/>
- <field name="Pointer To Constant Buffer 1" start="101" end="127" type="address"/>
- <field name="Pointer To Constant Buffer 2" start="133" end="159" type="address"/>
- <field name="Pointer To Constant Buffer 3" start="165" end="191" type="address"/>
- </struct>
-
- <struct name="BINDING_TABLE_EDIT_ENTRY" length="1">
- <field name="Binding Table Index" start="16" end="23" type="uint"/>
- <field name="Surface State Pointer" start="0" end="15" type="offset"/>
- </struct>
-
- <struct name="GATHER_CONSTANT_ENTRY" length="1">
- <field name="Constant Buffer Offset" start="8" end="15" type="offset"/>
- <field name="Channel Mask" start="4" end="7" type="uint"/>
- <field name="Binding Table Index Offset" start="0" end="3" type="uint"/>
- </struct>
-
- <struct name="VERTEX_BUFFER_STATE" length="4">
- <field name="Vertex Buffer Index" start="26" end="31" type="uint"/>
- <field name="Buffer Access Type" start="20" end="20" type="uint">
- <value name="VERTEXDATA" value="0"/>
- <value name="INSTANCEDATA" value="1"/>
- </field>
- <field name="Vertex Buffer Memory Object Control State" start="16" end="19" type="MEMORY_OBJECT_CONTROL_STATE"/>
- <field name="Vertex Buffer MOCS" start="16" end="19" type="uint"/>
- <field name="Address Modify Enable" start="14" end="14" type="bool"/>
- <field name="Null Vertex Buffer" start="13" end="13" type="bool"/>
- <field name="Vertex Fetch Invalidate" start="12" end="12" type="bool" default="0"/>
- <field name="Buffer Pitch" start="0" end="11" type="uint"/>
- <field name="Buffer Starting Address" start="32" end="63" type="address"/>
- <field name="End Address" start="64" end="95" type="address"/>
- <field name="Instance Data Step Rate" start="96" end="127" type="uint"/>
- </struct>
-
- <struct name="VERTEX_ELEMENT_STATE" length="2">
- <field name="Vertex Buffer Index" start="26" end="31" type="uint"/>
- <field name="Valid" start="25" end="25" type="bool"/>
- <field name="Source Element Format" start="16" end="24" type="uint"/>
- <field name="Edge Flag Enable" start="15" end="15" type="bool"/>
- <field name="Source Element Offset" start="0" end="11" type="uint"/>
- <field name="Component 0 Control" start="60" end="62" type="uint"/>
- <field name="Component 1 Control" start="56" end="58" type="uint"/>
- <field name="Component 2 Control" start="52" end="54" type="uint"/>
- <field name="Component 3 Control" start="48" end="50" type="uint"/>
- </struct>
-
- <struct name="SO_DECL" length="1">
- <field name="Output Buffer Slot" start="12" end="13" type="uint"/>
- <field name="Hole Flag" start="11" end="11" type="uint"/>
- <field name="Register Index" start="4" end="9" type="uint"/>
- <field name="Component Mask" start="0" end="3" type="uint" default="0"/>
- </struct>
-
- <struct name="SO_DECL_ENTRY" length="2">
- <field name="Stream 3 Decl" start="48" end="63" type="SO_DECL"/>
- <field name="Stream 2 Decl" start="32" end="47" type="SO_DECL"/>
- <field name="Stream 1 Decl" start="16" end="31" type="SO_DECL"/>
- <field name="Stream 0 Decl" start="0" end="15" type="SO_DECL"/>
- </struct>
-
- <struct name="SF_OUTPUT_ATTRIBUTE_DETAIL" length="1">
- <field name="Component Override W" start="15" end="15" type="bool"/>
- <field name="Component Override Z" start="14" end="14" type="bool"/>
- <field name="Component Override Y" start="13" end="13" type="bool"/>
- <field name="Component Override X" start="12" end="12" type="bool"/>
- <field name="Swizzle Control Mode" start="11" end="11" type="uint"/>
- <field name="Constant Source" start="9" end="10" type="uint">
- <value name="CONST_0000" value="0"/>
- <value name="CONST_0001_FLOAT" value="1"/>
- <value name="CONST_1111_FLOAT" value="2"/>
- <value name="PRIM_ID" value="3"/>
- </field>
- <field name="Swizzle Select" start="6" end="7" type="uint">
- <value name="INPUTATTR" value="0"/>
- <value name="INPUTATTR_FACING" value="1"/>
- <value name="INPUTATTR_W" value="2"/>
- <value name="INPUTATTR_FACING_W" value="3"/>
- </field>
- <field name="Source Attribute" start="0" end="4" type="uint"/>
- </struct>
+ <enum name="3D_Prim_Topo_Type" prefix="3DPRIM">
+ <value name="POINTLIST" value="1"/>
+ <value name="LINELIST" value="2"/>
+ <value name="LINESTRIP" value="3"/>
+ <value name="TRILIST" value="4"/>
+ <value name="TRISTRIP" value="5"/>
+ <value name="TRIFAN" value="6"/>
+ <value name="QUADLIST" value="7"/>
+ <value name="QUADSTRIP" value="8"/>
+ <value name="LINELIST_ADJ" value="9"/>
+ <value name="LINESTRIP_ADJ" value="10"/>
+ <value name="TRILIST_ADJ" value="11"/>
+ <value name="TRISTRIP_ADJ" value="12"/>
+ <value name="TRISTRIP_REVERSE" value="13"/>
+ <value name="POLYGON" value="14"/>
+ <value name="RECTLIST" value="15"/>
+ <value name="LINELOOP" value="16"/>
+ <value name="POINTLIST _BF" value="17"/>
+ <value name="LINESTRIP_CONT" value="18"/>
+ <value name="LINESTRIP_BF" value="19"/>
+ <value name="LINESTRIP_CONT_BF" value="20"/>
+ <value name="TRIFAN_NOSTIPPLE" value="22"/>
+ <value name="PATCHLIST_1" value="32"/>
+ <value name="PATCHLIST_2" value="33"/>
+ <value name="PATCHLIST_3" value="34"/>
+ <value name="PATCHLIST_4" value="35"/>
+ <value name="PATCHLIST_5" value="36"/>
+ <value name="PATCHLIST_6" value="37"/>
+ <value name="PATCHLIST_7" value="38"/>
+ <value name="PATCHLIST_8" value="39"/>
+ <value name="PATCHLIST_9" value="40"/>
+ <value name="PATCHLIST_10" value="41"/>
+ <value name="PATCHLIST_11" value="42"/>
+ <value name="PATCHLIST_12" value="43"/>
+ <value name="PATCHLIST_13" value="44"/>
+ <value name="PATCHLIST_14" value="45"/>
+ <value name="PATCHLIST_15" value="46"/>
+ <value name="PATCHLIST_16" value="47"/>
+ <value name="PATCHLIST_17" value="48"/>
+ <value name="PATCHLIST_18" value="49"/>
+ <value name="PATCHLIST_19" value="50"/>
+ <value name="PATCHLIST_20" value="51"/>
+ <value name="PATCHLIST_21" value="52"/>
+ <value name="PATCHLIST_22" value="53"/>
+ <value name="PATCHLIST_23" value="54"/>
+ <value name="PATCHLIST_24" value="55"/>
+ <value name="PATCHLIST_25" value="56"/>
+ <value name="PATCHLIST_26" value="57"/>
+ <value name="PATCHLIST_27" value="58"/>
+ <value name="PATCHLIST_28" value="59"/>
+ <value name="PATCHLIST_29" value="60"/>
+ <value name="PATCHLIST_30" value="61"/>
+ <value name="PATCHLIST_31" value="62"/>
+ <value name="PATCHLIST_32" value="63"/>
+ </enum>
- <struct name="SCISSOR_RECT" length="2">
- <field name="Scissor Rectangle Y Min" start="16" end="31" type="uint"/>
- <field name="Scissor Rectangle X Min" start="0" end="15" type="uint"/>
- <field name="Scissor Rectangle Y Max" start="48" end="63" type="uint"/>
- <field name="Scissor Rectangle X Max" start="32" end="47" type="uint"/>
- </struct>
+ <enum name="3D_Vertex_Component_Control" prefix="VFCOMP">
+ <value name="NOSTORE" value="0"/>
+ <value name="STORE_SRC" value="1"/>
+ <value name="STORE_0" value="2"/>
+ <value name="STORE_1_FP" value="3"/>
+ <value name="STORE_1_INT" value="4"/>
+ <value name="STORE_VID" value="5"/>
+ <value name="STORE_IID" value="6"/>
+ <value name="STORE_PID" value="7"/>
+ </enum>
- <struct name="SF_CLIP_VIEWPORT" length="16">
- <field name="Viewport Matrix Element m00" start="0" end="31" type="float"/>
- <field name="Viewport Matrix Element m11" start="32" end="63" type="float"/>
- <field name="Viewport Matrix Element m22" start="64" end="95" type="float"/>
- <field name="Viewport Matrix Element m30" start="96" end="127" type="float"/>
- <field name="Viewport Matrix Element m31" start="128" end="159" type="float"/>
- <field name="Viewport Matrix Element m32" start="160" end="191" type="float"/>
- <field name="X Min Clip Guardband" start="256" end="287" type="float"/>
- <field name="X Max Clip Guardband" start="288" end="319" type="float"/>
- <field name="Y Min Clip Guardband" start="320" end="351" type="float"/>
- <field name="Y Max Clip Guardband" start="352" end="383" type="float"/>
- <group count="4" start="384" size="32">
- </group>
- </struct>
+ <enum name="3D_Compare_Function" prefix="COMPAREFUNCTION">
+ <value name="ALWAYS" value="0"/>
+ <value name="NEVER" value="1"/>
+ <value name="LESS" value="2"/>
+ <value name="EQUAL" value="3"/>
+ <value name="LEQUAL" value="4"/>
+ <value name="GREATER" value="5"/>
+ <value name="NOTEQUAL" value="6"/>
+ <value name="GEQUAL" value="7"/>
+ </enum>
- <struct name="BLEND_STATE_ENTRY" length="2">
- <field name="Color Buffer Blend Enable" start="31" end="31" type="bool"/>
- <field name="Independent Alpha Blend Enable" start="30" end="30" type="bool"/>
- <field name="Alpha Blend Function" start="26" end="28" type="uint">
- <value name="BLENDFUNCTION_ADD" value="0"/>
- <value name="BLENDFUNCTION_SUBTRACT" value="1"/>
- <value name="BLENDFUNCTION_REVERSE_SUBTRACT" value="2"/>
- <value name="BLENDFUNCTION_MIN" value="3"/>
- <value name="BLENDFUNCTION_MAX" value="4"/>
- </field>
- <field name="Source Alpha Blend Factor" start="20" end="24" type="uint">
- <value name="BLENDFACTOR_ONE" value="1"/>
- <value name="BLENDFACTOR_SRC_COLOR" value="2"/>
- <value name="BLENDFACTOR_SRC_ALPHA" value="3"/>
- <value name="BLENDFACTOR_DST_ALPHA" value="4"/>
- <value name="BLENDFACTOR_DST_COLOR" value="5"/>
- <value name="BLENDFACTOR_SRC_ALPHA_SATURATE" value="6"/>
- <value name="BLENDFACTOR_CONST_COLOR" value="7"/>
- <value name="BLENDFACTOR_CONST_ALPHA" value="8"/>
- <value name="BLENDFACTOR_SRC1_COLOR" value="9"/>
- <value name="BLENDFACTOR_SRC1_ALPHA" value="10"/>
- <value name="BLENDFACTOR_ZERO" value="17"/>
- <value name="BLENDFACTOR_INV_SRC_COLOR" value="18"/>
- <value name="BLENDFACTOR_INV_SRC_ALPHA" value="19"/>
- <value name="BLENDFACTOR_INV_DST_ALPHA" value="20"/>
- <value name="BLENDFACTOR_INV_DST_COLOR" value="21"/>
- <value name="BLENDFACTOR_INV_CONST_COLOR" value="23"/>
- <value name="BLENDFACTOR_INV_CONST_ALPHA" value="24"/>
- <value name="BLENDFACTOR_INV_SRC1_COLOR" value="25"/>
- <value name="BLENDFACTOR_INV_SRC1_ALPHA" value="26"/>
- </field>
- <field name="Destination Alpha Blend Factor" start="15" end="19" type="uint"/>
- <field name="Color Blend Function" start="11" end="13" type="uint">
- <value name="BLENDFUNCTION_ADD" value="0"/>
- <value name="BLENDFUNCTION_SUBTRACT" value="1"/>
- <value name="BLENDFUNCTION_REVERSE_SUBTRACT" value="2"/>
- <value name="BLENDFUNCTION_MIN " value="3"/>
- <value name="BLENDFUNCTION_MAX" value="4"/>
- </field>
- <field name="Source Blend Factor" start="5" end="9" type="uint"/>
- <field name="Destination Blend Factor" start="0" end="4" type="uint"/>
- <field name="AlphaToCoverage Enable" start="63" end="63" type="bool"/>
- <field name="AlphaToOne Enable" start="62" end="62" type="bool"/>
- <field name="AlphaToCoverage Dither Enable" start="61" end="61" type="bool"/>
- <field name="Write Disable Alpha" start="59" end="59" type="bool"/>
- <field name="Write Disable Red" start="58" end="58" type="bool"/>
- <field name="Write Disable Green" start="57" end="57" type="bool"/>
- <field name="Write Disable Blue" start="56" end="56" type="bool"/>
- <field name="Logic Op Enable" start="54" end="54" type="bool"/>
- <field name="Logic Op Function" start="50" end="53" type="uint">
- <value name="LOGICOP_CLEAR" value="0"/>
- <value name="LOGICOP_NOR" value="1"/>
- <value name="LOGICOP_AND_INVERTED" value="2"/>
- <value name="LOGICOP_COPY_INVERTED" value="3"/>
- <value name="LOGICOP_AND_REVERSE" value="4"/>
- <value name="LOGICOP_INVERT" value="5"/>
- <value name="LOGICOP_XOR" value="6"/>
- <value name="LOGICOP_NAND" value="7"/>
- <value name="LOGICOP_AND" value="8"/>
- <value name="LOGICOP_EQUIV" value="9"/>
- <value name="LOGICOP_NOOP" value="10"/>
- <value name="LOGICOP_OR_INVERTED" value="11"/>
- <value name="LOGICOP_COPY" value="12"/>
- <value name="LOGICOP_OR_REVERSE" value="13"/>
- <value name="LOGICOP_OR" value="14"/>
- <value name="LOGICOP_SET" value="15"/>
- </field>
- <field name="Alpha Test Enable" start="48" end="48" type="bool"/>
- <field name="Alpha Test Function" start="45" end="47" type="uint">
- <value name="COMPAREFUNCTION_ALWAYS" value="0"/>
- <value name="COMPAREFUNCTION_NEVER" value="1"/>
- <value name="COMPAREFUNCTION_LESS" value="2"/>
- <value name="COMPAREFUNCTION_EQUAL" value="3"/>
- <value name="COMPAREFUNCTION_LEQUAL" value="4"/>
- <value name="COMPAREFUNCTION_GREATER" value="5"/>
- <value name="COMPAREFUNCTION_NOTEQUAL" value="6"/>
- <value name="COMPAREFUNCTION_GEQUAL" value="7"/>
- </field>
- <field name="Color Dither Enable" start="44" end="44" type="bool"/>
- <field name="X Dither Offset" start="42" end="43" type="uint"/>
- <field name="Y Dither Offset" start="40" end="41" type="uint"/>
- <field name="Color Clamp Range" start="34" end="35" type="uint">
- <value name="COLORCLAMP_UNORM" value="0"/>
- <value name="COLORCLAMP_SNORM" value="1"/>
- <value name="COLORCLAMP_RTFORMAT" value="2"/>
- </field>
- <field name="Pre-Blend Color Clamp Enable" start="33" end="33" type="bool"/>
- <field name="Post-Blend Color Clamp Enable" start="32" end="32" type="bool"/>
- </struct>
+ <enum name="SURFACE_FORMAT" prefix="SF">
+ <value name="R32G32B32A32_FLOAT" value="0"/>
+ <value name="R32G32B32A32_SINT" value="1"/>
+ <value name="R32G32B32A32_UINT" value="2"/>
+ <value name="R32G32B32A32_UNORM" value="3"/>
+ <value name="R32G32B32A32_SNORM" value="4"/>
+ <value name="R64G64_FLOAT" value="5"/>
+ <value name="R32G32B32X32_FLOAT" value="6"/>
+ <value name="R32G32B32A32_SSCALED" value="7"/>
+ <value name="R32G32B32A32_USCALED" value="8"/>
+ <value name="R32G32B32A32_SFIXED" value="32"/>
+ <value name="R64G64_PASSTHRU" value="33"/>
+ <value name="R32G32B32_FLOAT" value="64"/>
+ <value name="R32G32B32_SINT" value="65"/>
+ <value name="R32G32B32_UINT" value="66"/>
+ <value name="R32G32B32_UNORM" value="67"/>
+ <value name="R32G32B32_SNORM" value="68"/>
+ <value name="R32G32B32_SSCALED" value="69"/>
+ <value name="R32G32B32_USCALED" value="70"/>
+ <value name="R32G32B32_SFIXED" value="80"/>
+ <value name="R16G16B16A16_UNORM" value="128"/>
+ <value name="R16G16B16A16_SNORM" value="129"/>
+ <value name="R16G16B16A16_SINT" value="130"/>
+ <value name="R16G16B16A16_UINT" value="131"/>
+ <value name="R16G16B16A16_FLOAT" value="132"/>
+ <value name="R32G32_FLOAT" value="133"/>
+ <value name="R32G32_SINT" value="134"/>
+ <value name="R32G32_UINT" value="135"/>
+ <value name="R32_FLOAT_X8X24_TYPELESS" value="136"/>
+ <value name="X32_TYPELESS_G8X24_UINT" value="137"/>
+ <value name="L32A32_FLOAT" value="138"/>
+ <value name="R32G32_UNORM" value="139"/>
+ <value name="R32G32_SNORM" value="140"/>
+ <value name="R64_FLOAT" value="141"/>
+ <value name="R16G16B16X16_UNORM" value="142"/>
+ <value name="R16G16B16X16_FLOAT" value="143"/>
+ <value name="A32X32_FLOAT" value="144"/>
+ <value name="L32X32_FLOAT" value="145"/>
+ <value name="I32X32_FLOAT" value="146"/>
+ <value name="R16G16B16A16_SSCALED" value="147"/>
+ <value name="R16G16B16A16_USCALED" value="148"/>
+ <value name="R32G32_SSCALED" value="149"/>
+ <value name="R32G32_USCALED" value="150"/>
+ <value name="R32G32_SFIXED" value="160"/>
+ <value name="R64_PASSTHRU" value="161"/>
+ <value name="B8G8R8A8_UNORM" value="192"/>
+ <value name="B8G8R8A8_UNORM_SRGB" value="193"/>
+ <value name="R10G10B10A2_UNORM" value="194"/>
+ <value name="R10G10B10A2_UNORM_SRGB" value="195"/>
+ <value name="R10G10B10A2_UINT" value="196"/>
+ <value name="R10G10B10_SNORM_A2_UNORM" value="197"/>
+ <value name="R8G8B8A8_UNORM" value="199"/>
+ <value name="R8G8B8A8_UNORM_SRGB" value="200"/>
+ <value name="R8G8B8A8_SNORM" value="201"/>
+ <value name="R8G8B8A8_SINT" value="202"/>
+ <value name="R8G8B8A8_UINT" value="203"/>
+ <value name="R16G16_UNORM" value="204"/>
+ <value name="R16G16_SNORM" value="205"/>
+ <value name="R16G16_SINT" value="206"/>
+ <value name="R16G16_UINT" value="207"/>
+ <value name="R16G16_FLOAT" value="208"/>
+ <value name="B10G10R10A2_UNORM" value="209"/>
+ <value name="B10G10R10A2_UNORM_SRGB" value="210"/>
+ <value name="R11G11B10_FLOAT" value="211"/>
+ <value name="R32_SINT" value="214"/>
+ <value name="R32_UINT" value="215"/>
+ <value name="R32_FLOAT" value="216"/>
+ <value name="R24_UNORM_X8_TYPELESS" value="217"/>
+ <value name="X24_TYPELESS_G8_UINT" value="218"/>
+ <value name="L32_UNORM" value="221"/>
+ <value name="A32_UNORM" value="222"/>
+ <value name="L16A16_UNORM" value="223"/>
+ <value name="I24X8_UNORM" value="224"/>
+ <value name="L24X8_UNORM" value="225"/>
+ <value name="A24X8_UNORM" value="226"/>
+ <value name="I32_FLOAT" value="227"/>
+ <value name="L32_FLOAT" value="228"/>
+ <value name="A32_FLOAT" value="229"/>
+ <value name="X8B8_UNORM_G8R8_SNORM" value="230"/>
+ <value name="A8X8_UNORM_G8R8_SNORM" value="231"/>
+ <value name="B8X8_UNORM_G8R8_SNORM" value="232"/>
+ <value name="B8G8R8X8_UNORM" value="233"/>
+ <value name="B8G8R8X8_UNORM_SRGB" value="234"/>
+ <value name="R8G8B8X8_UNORM" value="235"/>
+ <value name="R8G8B8X8_UNORM_SRGB" value="236"/>
+ <value name="R9G9B9E5_SHAREDEXP" value="237"/>
+ <value name="B10G10R10X2_UNORM" value="238"/>
+ <value name="L16A16_FLOAT" value="240"/>
+ <value name="R32_UNORM" value="241"/>
+ <value name="R32_SNORM" value="242"/>
+ <value name="R10G10B10X2_USCALED" value="243"/>
+ <value name="R8G8B8A8_SSCALED" value="244"/>
+ <value name="R8G8B8A8_USCALED" value="245"/>
+ <value name="R16G16_SSCALED" value="246"/>
+ <value name="R16G16_USCALED" value="247"/>
+ <value name="R32_SSCALED" value="248"/>
+ <value name="R32_USCALED" value="249"/>
+ <value name="B5G6R5_UNORM" value="256"/>
+ <value name="B5G6R5_UNORM_SRGB" value="257"/>
+ <value name="B5G5R5A1_UNORM" value="258"/>
+ <value name="B5G5R5A1_UNORM_SRGB" value="259"/>
+ <value name="B4G4R4A4_UNORM" value="260"/>
+ <value name="B4G4R4A4_UNORM_SRGB" value="261"/>
+ <value name="R8G8_UNORM" value="262"/>
+ <value name="R8G8_SNORM" value="263"/>
+ <value name="R8G8_SINT" value="264"/>
+ <value name="R8G8_UINT" value="265"/>
+ <value name="R16_UNORM" value="266"/>
+ <value name="R16_SNORM" value="267"/>
+ <value name="R16_SINT" value="268"/>
+ <value name="R16_UINT" value="269"/>
+ <value name="R16_FLOAT" value="270"/>
+ <value name="A8P8_UNORM_PALETTE0" value="271"/>
+ <value name="A8P8_UNORM_PALETTE1" value="272"/>
+ <value name="I16_UNORM" value="273"/>
+ <value name="L16_UNORM" value="274"/>
+ <value name="A16_UNORM" value="275"/>
+ <value name="L8A8_UNORM" value="276"/>
+ <value name="I16_FLOAT" value="277"/>
+ <value name="L16_FLOAT" value="278"/>
+ <value name="A16_FLOAT" value="279"/>
+ <value name="L8A8_UNORM_SRGB" value="280"/>
+ <value name="R5G5_SNORM_B6_UNORM" value="281"/>
+ <value name="B5G5R5X1_UNORM" value="282"/>
+ <value name="B5G5R5X1_UNORM_SRGB" value="283"/>
+ <value name="R8G8_SSCALED" value="284"/>
+ <value name="R8G8_USCALED" value="285"/>
+ <value name="R16_SSCALED" value="286"/>
+ <value name="R16_USCALED" value="287"/>
+ <value name="P8A8_UNORM_PALETTE0" value="290"/>
+ <value name="P8A8_UNORM_PALETTE1" value="291"/>
+ <value name="A1B5G5R5_UNORM" value="292"/>
+ <value name="A4B4G4R4_UNORM" value="293"/>
+ <value name="L8A8_UINT" value="294"/>
+ <value name="L8A8_SINT" value="295"/>
+ <value name="R8_UNORM" value="320"/>
+ <value name="R8_SNORM" value="321"/>
+ <value name="R8_SINT" value="322"/>
+ <value name="R8_UINT" value="323"/>
+ <value name="A8_UNORM" value="324"/>
+ <value name="I8_UNORM" value="325"/>
+ <value name="L8_UNORM" value="326"/>
+ <value name="P4A4_UNORM_PALETTE0" value="327"/>
+ <value name="A4P4_UNORM_PALETTE0" value="328"/>
+ <value name="R8_SSCALED" value="329"/>
+ <value name="R8_USCALED" value="330"/>
+ <value name="P8_UNORM_PALETTE0" value="331"/>
+ <value name="L8_UNORM_SRGB" value="332"/>
+ <value name="P8_UNORM_PALETTE1" value="333"/>
+ <value name="P4A4_UNORM_PALETTE1" value="334"/>
+ <value name="A4P4_UNORM_PALETTE1" value="335"/>
+ <value name="Y8_UNORM" value="336"/>
+ <value name="L8_UINT" value="338"/>
+ <value name="L8_SINT" value="339"/>
+ <value name="I8_UINT" value="340"/>
+ <value name="I8_SINT" value="341"/>
+ <value name="DXT1_RGB_SRGB" value="384"/>
+ <value name="R1_UNORM" value="385"/>
+ <value name="YCRCB_NORMAL" value="386"/>
+ <value name="YCRCB_SWAPUVY" value="387"/>
+ <value name="P2_UNORM_PALETTE0" value="388"/>
+ <value name="P2_UNORM_PALETTE1" value="389"/>
+ <value name="BC1_UNORM" value="390"/>
+ <value name="BC2_UNORM" value="391"/>
+ <value name="BC3_UNORM" value="392"/>
+ <value name="BC4_UNORM" value="393"/>
+ <value name="BC5_UNORM" value="394"/>
+ <value name="BC1_UNORM_SRGB" value="395"/>
+ <value name="BC2_UNORM_SRGB" value="396"/>
+ <value name="BC3_UNORM_SRGB" value="397"/>
+ <value name="MONO8" value="398"/>
+ <value name="YCRCB_SWAPUV" value="399"/>
+ <value name="YCRCB_SWAPY" value="400"/>
+ <value name="DXT1_RGB" value="401"/>
+ <value name="FXT1" value="402"/>
+ <value name="R8G8B8_UNORM" value="403"/>
+ <value name="R8G8B8_SNORM" value="404"/>
+ <value name="R8G8B8_SSCALED" value="405"/>
+ <value name="R8G8B8_USCALED" value="406"/>
+ <value name="R64G64B64A64_FLOAT" value="407"/>
+ <value name="R64G64B64_FLOAT" value="408"/>
+ <value name="BC4_SNORM" value="409"/>
+ <value name="BC5_SNORM" value="410"/>
+ <value name="R16G16B16_FLOAT" value="411"/>
+ <value name="R16G16B16_UNORM" value="412"/>
+ <value name="R16G16B16_SNORM" value="413"/>
+ <value name="R16G16B16_SSCALED" value="414"/>
+ <value name="R16G16B16_USCALED" value="415"/>
+ <value name="BC6H_SF16" value="417"/>
+ <value name="BC7_UNORM" value="418"/>
+ <value name="BC7_UNORM_SRGB" value="419"/>
+ <value name="BC6H_UF16" value="420"/>
+ <value name="PLANAR_420_8" value="421"/>
+ <value name="R8G8B8_UNORM_SRGB" value="424"/>
+ <value name="ETC1_RGB8" value="425"/>
+ <value name="ETC2_RGB8" value="426"/>
+ <value name="EAC_R11" value="427"/>
+ <value name="EAC_RG11" value="428"/>
+ <value name="EAC_SIGNED_R11" value="429"/>
+ <value name="EAC_SIGNED_RG11" value="430"/>
+ <value name="ETC2_SRGB8" value="431"/>
+ <value name="R16G16B16_UINT" value="432"/>
+ <value name="R16G16B16_SINT" value="433"/>
+ <value name="R32_SFIXED" value="434"/>
+ <value name="R10G10B10A2_SNORM" value="435"/>
+ <value name="R10G10B10A2_USCALED" value="436"/>
+ <value name="R10G10B10A2_SSCALED" value="437"/>
+ <value name="R10G10B10A2_SINT" value="438"/>
+ <value name="B10G10R10A2_SNORM" value="439"/>
+ <value name="B10G10R10A2_USCALED" value="440"/>
+ <value name="B10G10R10A2_SSCALED" value="441"/>
+ <value name="B10G10R10A2_UINT" value="442"/>
+ <value name="B10G10R10A2_SINT" value="443"/>
+ <value name="R64G64B64A64_PASSTHRU" value="444"/>
+ <value name="R64G64B64_PASSTHRU" value="445"/>
+ <value name="ETC2_RGB8_PTA" value="448"/>
+ <value name="ETC2_SRGB8_PTA" value="449"/>
+ <value name="ETC2_EAC_RGBA8" value="450"/>
+ <value name="ETC2_EAC_SRGB8_A8" value="451"/>
+ <value name="R8G8B8_UINT" value="456"/>
+ <value name="R8G8B8_SINT" value="457"/>
+ <value name="RAW" value="511"/>
+ </enum>
- <struct name="BLEND_STATE" length="16">
- <group count="8" start="0" size="64">
- <field name="Entry" start="0" end="63" type="BLEND_STATE_ENTRY"/>
- </group>
- </struct>
+ <enum name="Texture Coordinate Mode" prefix="TCM">
+ <value name="WRAP" value="0"/>
+ <value name="MIRROR" value="1"/>
+ <value name="CLAMP" value="2"/>
+ <value name="CUBE" value="3"/>
+ <value name="CLAMP_BORDER" value="4"/>
+ <value name="MIRROR_ONCE" value="5"/>
+ </enum>
- <struct name="CC_VIEWPORT" length="2">
+ <struct name="MEMORY_OBJECT_CONTROL_STATE" length="1">
+ <field name="LLC/eLLC Cacheability Control (LLCCC)" start="1" end="2" type="uint"/>
+ <field name="L3 Cacheability Control (L3CC)" start="0" end="0" type="uint"/>
+ </struct>
+
+ <struct name="3DSTATE_CONSTANT_BODY" length="6">
+ <field name="Constant Buffer 1 Read Length" start="16" end="31" type="uint"/>
+ <field name="Constant Buffer 0 Read Length" start="0" end="15" type="uint"/>
+ <field name="Constant Buffer 3 Read Length" start="48" end="63" type="uint"/>
+ <field name="Constant Buffer 2 Read Length" start="32" end="47" type="uint"/>
+ <field name="Pointer To Constant Buffer 0" start="69" end="95" type="address"/>
+ <field name="Constant Buffer Object Control State" start="64" end="68" type="MEMORY_OBJECT_CONTROL_STATE"/>
+ <field name="Pointer To Constant Buffer 1" start="101" end="127" type="address"/>
+ <field name="Pointer To Constant Buffer 2" start="133" end="159" type="address"/>
+ <field name="Pointer To Constant Buffer 3" start="165" end="191" type="address"/>
+ </struct>
+
+ <struct name="BINDING_TABLE_EDIT_ENTRY" length="1">
+ <field name="Binding Table Index" start="16" end="23" type="uint"/>
+ <field name="Surface State Pointer" start="0" end="15" type="offset"/>
+ </struct>
+
+ <struct name="GATHER_CONSTANT_ENTRY" length="1">
+ <field name="Constant Buffer Offset" start="8" end="15" type="offset"/>
+ <field name="Channel Mask" start="4" end="7" type="uint"/>
+ <field name="Binding Table Index Offset" start="0" end="3" type="uint"/>
+ </struct>
+
+ <struct name="VERTEX_BUFFER_STATE" length="4">
+ <field name="Vertex Buffer Index" start="26" end="31" type="uint"/>
+ <field name="Buffer Access Type" start="20" end="20" type="uint">
+ <value name="VERTEXDATA" value="0"/>
+ <value name="INSTANCEDATA" value="1"/>
+ </field>
+ <field name="Vertex Buffer Memory Object Control State" start="16" end="19" type="MEMORY_OBJECT_CONTROL_STATE"/>
+ <field name="Vertex Buffer MOCS" start="16" end="19" type="uint"/>
+ <field name="Address Modify Enable" start="14" end="14" type="bool"/>
+ <field name="Null Vertex Buffer" start="13" end="13" type="bool"/>
+ <field name="Vertex Fetch Invalidate" start="12" end="12" type="bool" default="0"/>
+ <field name="Buffer Pitch" start="0" end="11" type="uint"/>
+ <field name="Buffer Starting Address" start="32" end="63" type="address"/>
+ <field name="End Address" start="64" end="95" type="address"/>
+ <field name="Instance Data Step Rate" start="96" end="127" type="uint"/>
+ </struct>
+
+ <struct name="VERTEX_ELEMENT_STATE" length="2">
+ <field name="Vertex Buffer Index" start="26" end="31" type="uint"/>
+ <field name="Valid" start="25" end="25" type="bool"/>
+ <field name="Source Element Format" start="16" end="24" type="uint"/>
+ <field name="Edge Flag Enable" start="15" end="15" type="bool"/>
+ <field name="Source Element Offset" start="0" end="11" type="uint"/>
+ <field name="Component 0 Control" start="60" end="62" type="uint"/>
+ <field name="Component 1 Control" start="56" end="58" type="uint"/>
+ <field name="Component 2 Control" start="52" end="54" type="uint"/>
+ <field name="Component 3 Control" start="48" end="50" type="uint"/>
+ </struct>
+
+ <struct name="SO_DECL" length="1">
+ <field name="Output Buffer Slot" start="12" end="13" type="uint"/>
+ <field name="Hole Flag" start="11" end="11" type="uint"/>
+ <field name="Register Index" start="4" end="9" type="uint"/>
+ <field name="Component Mask" start="0" end="3" type="uint" default="0"/>
+ </struct>
+
+ <struct name="SO_DECL_ENTRY" length="2">
+ <field name="Stream 3 Decl" start="48" end="63" type="SO_DECL"/>
+ <field name="Stream 2 Decl" start="32" end="47" type="SO_DECL"/>
+ <field name="Stream 1 Decl" start="16" end="31" type="SO_DECL"/>
+ <field name="Stream 0 Decl" start="0" end="15" type="SO_DECL"/>
+ </struct>
+
+ <struct name="SF_OUTPUT_ATTRIBUTE_DETAIL" length="1">
+ <field name="Component Override W" start="15" end="15" type="bool"/>
+ <field name="Component Override Z" start="14" end="14" type="bool"/>
+ <field name="Component Override Y" start="13" end="13" type="bool"/>
+ <field name="Component Override X" start="12" end="12" type="bool"/>
+ <field name="Swizzle Control Mode" start="11" end="11" type="uint"/>
+ <field name="Constant Source" start="9" end="10" type="uint">
+ <value name="CONST_0000" value="0"/>
+ <value name="CONST_0001_FLOAT" value="1"/>
+ <value name="CONST_1111_FLOAT" value="2"/>
+ <value name="PRIM_ID" value="3"/>
+ </field>
+ <field name="Swizzle Select" start="6" end="7" type="uint">
+ <value name="INPUTATTR" value="0"/>
+ <value name="INPUTATTR_FACING" value="1"/>
+ <value name="INPUTATTR_W" value="2"/>
+ <value name="INPUTATTR_FACING_W" value="3"/>
+ </field>
+ <field name="Source Attribute" start="0" end="4" type="uint"/>
+ </struct>
+
+ <struct name="SCISSOR_RECT" length="2">
+ <field name="Scissor Rectangle Y Min" start="16" end="31" type="uint"/>
+ <field name="Scissor Rectangle X Min" start="0" end="15" type="uint"/>
+ <field name="Scissor Rectangle Y Max" start="48" end="63" type="uint"/>
+ <field name="Scissor Rectangle X Max" start="32" end="47" type="uint"/>
+ </struct>
+
+ <struct name="SF_CLIP_VIEWPORT" length="16">
+ <field name="Viewport Matrix Element m00" start="0" end="31" type="float"/>
+ <field name="Viewport Matrix Element m11" start="32" end="63" type="float"/>
+ <field name="Viewport Matrix Element m22" start="64" end="95" type="float"/>
+ <field name="Viewport Matrix Element m30" start="96" end="127" type="float"/>
+ <field name="Viewport Matrix Element m31" start="128" end="159" type="float"/>
+ <field name="Viewport Matrix Element m32" start="160" end="191" type="float"/>
+ <field name="X Min Clip Guardband" start="256" end="287" type="float"/>
+ <field name="X Max Clip Guardband" start="288" end="319" type="float"/>
+ <field name="Y Min Clip Guardband" start="320" end="351" type="float"/>
+ <field name="Y Max Clip Guardband" start="352" end="383" type="float"/>
+ <group count="4" start="384" size="32">
+ </group>
+ </struct>
+
+ <struct name="BLEND_STATE_ENTRY" length="2">
+ <field name="Color Buffer Blend Enable" start="31" end="31" type="bool"/>
+ <field name="Independent Alpha Blend Enable" start="30" end="30" type="bool"/>
+ <field name="Alpha Blend Function" start="26" end="28" type="uint">
+ <value name="BLENDFUNCTION_ADD" value="0"/>
+ <value name="BLENDFUNCTION_SUBTRACT" value="1"/>
+ <value name="BLENDFUNCTION_REVERSE_SUBTRACT" value="2"/>
+ <value name="BLENDFUNCTION_MIN" value="3"/>
+ <value name="BLENDFUNCTION_MAX" value="4"/>
+ </field>
+ <field name="Source Alpha Blend Factor" start="20" end="24" type="uint">
+ <value name="BLENDFACTOR_ONE" value="1"/>
+ <value name="BLENDFACTOR_SRC_COLOR" value="2"/>
+ <value name="BLENDFACTOR_SRC_ALPHA" value="3"/>
+ <value name="BLENDFACTOR_DST_ALPHA" value="4"/>
+ <value name="BLENDFACTOR_DST_COLOR" value="5"/>
+ <value name="BLENDFACTOR_SRC_ALPHA_SATURATE" value="6"/>
+ <value name="BLENDFACTOR_CONST_COLOR" value="7"/>
+ <value name="BLENDFACTOR_CONST_ALPHA" value="8"/>
+ <value name="BLENDFACTOR_SRC1_COLOR" value="9"/>
+ <value name="BLENDFACTOR_SRC1_ALPHA" value="10"/>
+ <value name="BLENDFACTOR_ZERO" value="17"/>
+ <value name="BLENDFACTOR_INV_SRC_COLOR" value="18"/>
+ <value name="BLENDFACTOR_INV_SRC_ALPHA" value="19"/>
+ <value name="BLENDFACTOR_INV_DST_ALPHA" value="20"/>
+ <value name="BLENDFACTOR_INV_DST_COLOR" value="21"/>
+ <value name="BLENDFACTOR_INV_CONST_COLOR" value="23"/>
+ <value name="BLENDFACTOR_INV_CONST_ALPHA" value="24"/>
+ <value name="BLENDFACTOR_INV_SRC1_COLOR" value="25"/>
+ <value name="BLENDFACTOR_INV_SRC1_ALPHA" value="26"/>
+ </field>
+ <field name="Destination Alpha Blend Factor" start="15" end="19" type="uint"/>
+ <field name="Color Blend Function" start="11" end="13" type="uint">
+ <value name="BLENDFUNCTION_ADD" value="0"/>
+ <value name="BLENDFUNCTION_SUBTRACT" value="1"/>
+ <value name="BLENDFUNCTION_REVERSE_SUBTRACT" value="2"/>
+ <value name="BLENDFUNCTION_MIN " value="3"/>
+ <value name="BLENDFUNCTION_MAX" value="4"/>
+ </field>
+ <field name="Source Blend Factor" start="5" end="9" type="uint"/>
+ <field name="Destination Blend Factor" start="0" end="4" type="uint"/>
+ <field name="AlphaToCoverage Enable" start="63" end="63" type="bool"/>
+ <field name="AlphaToOne Enable" start="62" end="62" type="bool"/>
+ <field name="AlphaToCoverage Dither Enable" start="61" end="61" type="bool"/>
+ <field name="Write Disable Alpha" start="59" end="59" type="bool"/>
+ <field name="Write Disable Red" start="58" end="58" type="bool"/>
+ <field name="Write Disable Green" start="57" end="57" type="bool"/>
+ <field name="Write Disable Blue" start="56" end="56" type="bool"/>
+ <field name="Logic Op Enable" start="54" end="54" type="bool"/>
+ <field name="Logic Op Function" start="50" end="53" type="uint">
+ <value name="LOGICOP_CLEAR" value="0"/>
+ <value name="LOGICOP_NOR" value="1"/>
+ <value name="LOGICOP_AND_INVERTED" value="2"/>
+ <value name="LOGICOP_COPY_INVERTED" value="3"/>
+ <value name="LOGICOP_AND_REVERSE" value="4"/>
+ <value name="LOGICOP_INVERT" value="5"/>
+ <value name="LOGICOP_XOR" value="6"/>
+ <value name="LOGICOP_NAND" value="7"/>
+ <value name="LOGICOP_AND" value="8"/>
+ <value name="LOGICOP_EQUIV" value="9"/>
+ <value name="LOGICOP_NOOP" value="10"/>
+ <value name="LOGICOP_OR_INVERTED" value="11"/>
+ <value name="LOGICOP_COPY" value="12"/>
+ <value name="LOGICOP_OR_REVERSE" value="13"/>
+ <value name="LOGICOP_OR" value="14"/>
+ <value name="LOGICOP_SET" value="15"/>
+ </field>
+ <field name="Alpha Test Enable" start="48" end="48" type="bool"/>
+ <field name="Alpha Test Function" start="45" end="47" type="uint">
+ <value name="COMPAREFUNCTION_ALWAYS" value="0"/>
+ <value name="COMPAREFUNCTION_NEVER" value="1"/>
+ <value name="COMPAREFUNCTION_LESS" value="2"/>
+ <value name="COMPAREFUNCTION_EQUAL" value="3"/>
+ <value name="COMPAREFUNCTION_LEQUAL" value="4"/>
+ <value name="COMPAREFUNCTION_GREATER" value="5"/>
+ <value name="COMPAREFUNCTION_NOTEQUAL" value="6"/>
+ <value name="COMPAREFUNCTION_GEQUAL" value="7"/>
+ </field>
+ <field name="Color Dither Enable" start="44" end="44" type="bool"/>
+ <field name="X Dither Offset" start="42" end="43" type="uint"/>
+ <field name="Y Dither Offset" start="40" end="41" type="uint"/>
+ <field name="Color Clamp Range" start="34" end="35" type="uint">
+ <value name="COLORCLAMP_UNORM" value="0"/>
+ <value name="COLORCLAMP_SNORM" value="1"/>
+ <value name="COLORCLAMP_RTFORMAT" value="2"/>
+ </field>
+ <field name="Pre-Blend Color Clamp Enable" start="33" end="33" type="bool"/>
+ <field name="Post-Blend Color Clamp Enable" start="32" end="32" type="bool"/>
+ </struct>
+
+ <struct name="BLEND_STATE" length="16">
+ <group count="8" start="0" size="64">
+ <field name="Entry" start="0" end="63" type="BLEND_STATE_ENTRY"/>
+ </group>
+ </struct>
+
+ <struct name="CC_VIEWPORT" length="2">
<field name="Minimum Depth" start="0" end="31" type="float"/>
<field name="Maximum Depth" start="32" end="63" type="float"/>
</struct>
<field name="TCZ Address Control Mode" start="96" end="98" type="uint"/>
</struct>
- <enum name="3D_Prim_Topo_Type" prefix="3DPRIM">
- <value name="POINTLIST" value="1"/>
- <value name="LINELIST" value="2"/>
- <value name="LINESTRIP" value="3"/>
- <value name="TRILIST" value="4"/>
- <value name="TRISTRIP" value="5"/>
- <value name="TRIFAN" value="6"/>
- <value name="QUADLIST" value="7"/>
- <value name="QUADSTRIP" value="8"/>
- <value name="LINELIST_ADJ" value="9"/>
- <value name="LINESTRIP_ADJ" value="10"/>
- <value name="TRILIST_ADJ" value="11"/>
- <value name="TRISTRIP_ADJ" value="12"/>
- <value name="TRISTRIP_REVERSE" value="13"/>
- <value name="POLYGON" value="14"/>
- <value name="RECTLIST" value="15"/>
- <value name="LINELOOP" value="16"/>
- <value name="POINTLIST _BF" value="17"/>
- <value name="LINESTRIP_CONT" value="18"/>
- <value name="LINESTRIP_BF" value="19"/>
- <value name="LINESTRIP_CONT_BF" value="20"/>
- <value name="TRIFAN_NOSTIPPLE" value="22"/>
- <value name="PATCHLIST_1" value="32"/>
- <value name="PATCHLIST_2" value="33"/>
- <value name="PATCHLIST_3" value="34"/>
- <value name="PATCHLIST_4" value="35"/>
- <value name="PATCHLIST_5" value="36"/>
- <value name="PATCHLIST_6" value="37"/>
- <value name="PATCHLIST_7" value="38"/>
- <value name="PATCHLIST_8" value="39"/>
- <value name="PATCHLIST_9" value="40"/>
- <value name="PATCHLIST_10" value="41"/>
- <value name="PATCHLIST_11" value="42"/>
- <value name="PATCHLIST_12" value="43"/>
- <value name="PATCHLIST_13" value="44"/>
- <value name="PATCHLIST_14" value="45"/>
- <value name="PATCHLIST_15" value="46"/>
- <value name="PATCHLIST_16" value="47"/>
- <value name="PATCHLIST_17" value="48"/>
- <value name="PATCHLIST_18" value="49"/>
- <value name="PATCHLIST_19" value="50"/>
- <value name="PATCHLIST_20" value="51"/>
- <value name="PATCHLIST_21" value="52"/>
- <value name="PATCHLIST_22" value="53"/>
- <value name="PATCHLIST_23" value="54"/>
- <value name="PATCHLIST_24" value="55"/>
- <value name="PATCHLIST_25" value="56"/>
- <value name="PATCHLIST_26" value="57"/>
- <value name="PATCHLIST_27" value="58"/>
- <value name="PATCHLIST_28" value="59"/>
- <value name="PATCHLIST_29" value="60"/>
- <value name="PATCHLIST_30" value="61"/>
- <value name="PATCHLIST_31" value="62"/>
- <value name="PATCHLIST_32" value="63"/>
- </enum>
-
- <enum name="3D_Vertex_Component_Control" prefix="VFCOMP">
- <value name="NOSTORE" value="0"/>
- <value name="STORE_SRC" value="1"/>
- <value name="STORE_0" value="2"/>
- <value name="STORE_1_FP" value="3"/>
- <value name="STORE_1_INT" value="4"/>
- <value name="STORE_VID" value="5"/>
- <value name="STORE_IID" value="6"/>
- <value name="STORE_PID" value="7"/>
- </enum>
-
- <enum name="3D_Compare_Function" prefix="COMPAREFUNCTION">
- <value name="ALWAYS" value="0"/>
- <value name="NEVER" value="1"/>
- <value name="LESS" value="2"/>
- <value name="EQUAL" value="3"/>
- <value name="LEQUAL" value="4"/>
- <value name="GREATER" value="5"/>
- <value name="NOTEQUAL" value="6"/>
- <value name="GEQUAL" value="7"/>
- </enum>
-
- <enum name="SURFACE_FORMAT" prefix="SF">
- <value name="R32G32B32A32_FLOAT" value="0"/>
- <value name="R32G32B32A32_SINT" value="1"/>
- <value name="R32G32B32A32_UINT" value="2"/>
- <value name="R32G32B32A32_UNORM" value="3"/>
- <value name="R32G32B32A32_SNORM" value="4"/>
- <value name="R64G64_FLOAT" value="5"/>
- <value name="R32G32B32X32_FLOAT" value="6"/>
- <value name="R32G32B32A32_SSCALED" value="7"/>
- <value name="R32G32B32A32_USCALED" value="8"/>
- <value name="R32G32B32A32_SFIXED" value="32"/>
- <value name="R64G64_PASSTHRU" value="33"/>
- <value name="R32G32B32_FLOAT" value="64"/>
- <value name="R32G32B32_SINT" value="65"/>
- <value name="R32G32B32_UINT" value="66"/>
- <value name="R32G32B32_UNORM" value="67"/>
- <value name="R32G32B32_SNORM" value="68"/>
- <value name="R32G32B32_SSCALED" value="69"/>
- <value name="R32G32B32_USCALED" value="70"/>
- <value name="R32G32B32_SFIXED" value="80"/>
- <value name="R16G16B16A16_UNORM" value="128"/>
- <value name="R16G16B16A16_SNORM" value="129"/>
- <value name="R16G16B16A16_SINT" value="130"/>
- <value name="R16G16B16A16_UINT" value="131"/>
- <value name="R16G16B16A16_FLOAT" value="132"/>
- <value name="R32G32_FLOAT" value="133"/>
- <value name="R32G32_SINT" value="134"/>
- <value name="R32G32_UINT" value="135"/>
- <value name="R32_FLOAT_X8X24_TYPELESS" value="136"/>
- <value name="X32_TYPELESS_G8X24_UINT" value="137"/>
- <value name="L32A32_FLOAT" value="138"/>
- <value name="R32G32_UNORM" value="139"/>
- <value name="R32G32_SNORM" value="140"/>
- <value name="R64_FLOAT" value="141"/>
- <value name="R16G16B16X16_UNORM" value="142"/>
- <value name="R16G16B16X16_FLOAT" value="143"/>
- <value name="A32X32_FLOAT" value="144"/>
- <value name="L32X32_FLOAT" value="145"/>
- <value name="I32X32_FLOAT" value="146"/>
- <value name="R16G16B16A16_SSCALED" value="147"/>
- <value name="R16G16B16A16_USCALED" value="148"/>
- <value name="R32G32_SSCALED" value="149"/>
- <value name="R32G32_USCALED" value="150"/>
- <value name="R32G32_SFIXED" value="160"/>
- <value name="R64_PASSTHRU" value="161"/>
- <value name="B8G8R8A8_UNORM" value="192"/>
- <value name="B8G8R8A8_UNORM_SRGB" value="193"/>
- <value name="R10G10B10A2_UNORM" value="194"/>
- <value name="R10G10B10A2_UNORM_SRGB" value="195"/>
- <value name="R10G10B10A2_UINT" value="196"/>
- <value name="R10G10B10_SNORM_A2_UNORM" value="197"/>
- <value name="R8G8B8A8_UNORM" value="199"/>
- <value name="R8G8B8A8_UNORM_SRGB" value="200"/>
- <value name="R8G8B8A8_SNORM" value="201"/>
- <value name="R8G8B8A8_SINT" value="202"/>
- <value name="R8G8B8A8_UINT" value="203"/>
- <value name="R16G16_UNORM" value="204"/>
- <value name="R16G16_SNORM" value="205"/>
- <value name="R16G16_SINT" value="206"/>
- <value name="R16G16_UINT" value="207"/>
- <value name="R16G16_FLOAT" value="208"/>
- <value name="B10G10R10A2_UNORM" value="209"/>
- <value name="B10G10R10A2_UNORM_SRGB" value="210"/>
- <value name="R11G11B10_FLOAT" value="211"/>
- <value name="R32_SINT" value="214"/>
- <value name="R32_UINT" value="215"/>
- <value name="R32_FLOAT" value="216"/>
- <value name="R24_UNORM_X8_TYPELESS" value="217"/>
- <value name="X24_TYPELESS_G8_UINT" value="218"/>
- <value name="L32_UNORM" value="221"/>
- <value name="A32_UNORM" value="222"/>
- <value name="L16A16_UNORM" value="223"/>
- <value name="I24X8_UNORM" value="224"/>
- <value name="L24X8_UNORM" value="225"/>
- <value name="A24X8_UNORM" value="226"/>
- <value name="I32_FLOAT" value="227"/>
- <value name="L32_FLOAT" value="228"/>
- <value name="A32_FLOAT" value="229"/>
- <value name="X8B8_UNORM_G8R8_SNORM" value="230"/>
- <value name="A8X8_UNORM_G8R8_SNORM" value="231"/>
- <value name="B8X8_UNORM_G8R8_SNORM" value="232"/>
- <value name="B8G8R8X8_UNORM" value="233"/>
- <value name="B8G8R8X8_UNORM_SRGB" value="234"/>
- <value name="R8G8B8X8_UNORM" value="235"/>
- <value name="R8G8B8X8_UNORM_SRGB" value="236"/>
- <value name="R9G9B9E5_SHAREDEXP" value="237"/>
- <value name="B10G10R10X2_UNORM" value="238"/>
- <value name="L16A16_FLOAT" value="240"/>
- <value name="R32_UNORM" value="241"/>
- <value name="R32_SNORM" value="242"/>
- <value name="R10G10B10X2_USCALED" value="243"/>
- <value name="R8G8B8A8_SSCALED" value="244"/>
- <value name="R8G8B8A8_USCALED" value="245"/>
- <value name="R16G16_SSCALED" value="246"/>
- <value name="R16G16_USCALED" value="247"/>
- <value name="R32_SSCALED" value="248"/>
- <value name="R32_USCALED" value="249"/>
- <value name="B5G6R5_UNORM" value="256"/>
- <value name="B5G6R5_UNORM_SRGB" value="257"/>
- <value name="B5G5R5A1_UNORM" value="258"/>
- <value name="B5G5R5A1_UNORM_SRGB" value="259"/>
- <value name="B4G4R4A4_UNORM" value="260"/>
- <value name="B4G4R4A4_UNORM_SRGB" value="261"/>
- <value name="R8G8_UNORM" value="262"/>
- <value name="R8G8_SNORM" value="263"/>
- <value name="R8G8_SINT" value="264"/>
- <value name="R8G8_UINT" value="265"/>
- <value name="R16_UNORM" value="266"/>
- <value name="R16_SNORM" value="267"/>
- <value name="R16_SINT" value="268"/>
- <value name="R16_UINT" value="269"/>
- <value name="R16_FLOAT" value="270"/>
- <value name="A8P8_UNORM_PALETTE0" value="271"/>
- <value name="A8P8_UNORM_PALETTE1" value="272"/>
- <value name="I16_UNORM" value="273"/>
- <value name="L16_UNORM" value="274"/>
- <value name="A16_UNORM" value="275"/>
- <value name="L8A8_UNORM" value="276"/>
- <value name="I16_FLOAT" value="277"/>
- <value name="L16_FLOAT" value="278"/>
- <value name="A16_FLOAT" value="279"/>
- <value name="L8A8_UNORM_SRGB" value="280"/>
- <value name="R5G5_SNORM_B6_UNORM" value="281"/>
- <value name="B5G5R5X1_UNORM" value="282"/>
- <value name="B5G5R5X1_UNORM_SRGB" value="283"/>
- <value name="R8G8_SSCALED" value="284"/>
- <value name="R8G8_USCALED" value="285"/>
- <value name="R16_SSCALED" value="286"/>
- <value name="R16_USCALED" value="287"/>
- <value name="P8A8_UNORM_PALETTE0" value="290"/>
- <value name="P8A8_UNORM_PALETTE1" value="291"/>
- <value name="A1B5G5R5_UNORM" value="292"/>
- <value name="A4B4G4R4_UNORM" value="293"/>
- <value name="L8A8_UINT" value="294"/>
- <value name="L8A8_SINT" value="295"/>
- <value name="R8_UNORM" value="320"/>
- <value name="R8_SNORM" value="321"/>
- <value name="R8_SINT" value="322"/>
- <value name="R8_UINT" value="323"/>
- <value name="A8_UNORM" value="324"/>
- <value name="I8_UNORM" value="325"/>
- <value name="L8_UNORM" value="326"/>
- <value name="P4A4_UNORM_PALETTE0" value="327"/>
- <value name="A4P4_UNORM_PALETTE0" value="328"/>
- <value name="R8_SSCALED" value="329"/>
- <value name="R8_USCALED" value="330"/>
- <value name="P8_UNORM_PALETTE0" value="331"/>
- <value name="L8_UNORM_SRGB" value="332"/>
- <value name="P8_UNORM_PALETTE1" value="333"/>
- <value name="P4A4_UNORM_PALETTE1" value="334"/>
- <value name="A4P4_UNORM_PALETTE1" value="335"/>
- <value name="Y8_UNORM" value="336"/>
- <value name="L8_UINT" value="338"/>
- <value name="L8_SINT" value="339"/>
- <value name="I8_UINT" value="340"/>
- <value name="I8_SINT" value="341"/>
- <value name="DXT1_RGB_SRGB" value="384"/>
- <value name="R1_UNORM" value="385"/>
- <value name="YCRCB_NORMAL" value="386"/>
- <value name="YCRCB_SWAPUVY" value="387"/>
- <value name="P2_UNORM_PALETTE0" value="388"/>
- <value name="P2_UNORM_PALETTE1" value="389"/>
- <value name="BC1_UNORM" value="390"/>
- <value name="BC2_UNORM" value="391"/>
- <value name="BC3_UNORM" value="392"/>
- <value name="BC4_UNORM" value="393"/>
- <value name="BC5_UNORM" value="394"/>
- <value name="BC1_UNORM_SRGB" value="395"/>
- <value name="BC2_UNORM_SRGB" value="396"/>
- <value name="BC3_UNORM_SRGB" value="397"/>
- <value name="MONO8" value="398"/>
- <value name="YCRCB_SWAPUV" value="399"/>
- <value name="YCRCB_SWAPY" value="400"/>
- <value name="DXT1_RGB" value="401"/>
- <value name="FXT1" value="402"/>
- <value name="R8G8B8_UNORM" value="403"/>
- <value name="R8G8B8_SNORM" value="404"/>
- <value name="R8G8B8_SSCALED" value="405"/>
- <value name="R8G8B8_USCALED" value="406"/>
- <value name="R64G64B64A64_FLOAT" value="407"/>
- <value name="R64G64B64_FLOAT" value="408"/>
- <value name="BC4_SNORM" value="409"/>
- <value name="BC5_SNORM" value="410"/>
- <value name="R16G16B16_FLOAT" value="411"/>
- <value name="R16G16B16_UNORM" value="412"/>
- <value name="R16G16B16_SNORM" value="413"/>
- <value name="R16G16B16_SSCALED" value="414"/>
- <value name="R16G16B16_USCALED" value="415"/>
- <value name="BC6H_SF16" value="417"/>
- <value name="BC7_UNORM" value="418"/>
- <value name="BC7_UNORM_SRGB" value="419"/>
- <value name="BC6H_UF16" value="420"/>
- <value name="PLANAR_420_8" value="421"/>
- <value name="R8G8B8_UNORM_SRGB" value="424"/>
- <value name="ETC1_RGB8" value="425"/>
- <value name="ETC2_RGB8" value="426"/>
- <value name="EAC_R11" value="427"/>
- <value name="EAC_RG11" value="428"/>
- <value name="EAC_SIGNED_R11" value="429"/>
- <value name="EAC_SIGNED_RG11" value="430"/>
- <value name="ETC2_SRGB8" value="431"/>
- <value name="R16G16B16_UINT" value="432"/>
- <value name="R16G16B16_SINT" value="433"/>
- <value name="R32_SFIXED" value="434"/>
- <value name="R10G10B10A2_SNORM" value="435"/>
- <value name="R10G10B10A2_USCALED" value="436"/>
- <value name="R10G10B10A2_SSCALED" value="437"/>
- <value name="R10G10B10A2_SINT" value="438"/>
- <value name="B10G10R10A2_SNORM" value="439"/>
- <value name="B10G10R10A2_USCALED" value="440"/>
- <value name="B10G10R10A2_SSCALED" value="441"/>
- <value name="B10G10R10A2_UINT" value="442"/>
- <value name="B10G10R10A2_SINT" value="443"/>
- <value name="R64G64B64A64_PASSTHRU" value="444"/>
- <value name="R64G64B64_PASSTHRU" value="445"/>
- <value name="ETC2_RGB8_PTA" value="448"/>
- <value name="ETC2_SRGB8_PTA" value="449"/>
- <value name="ETC2_EAC_RGBA8" value="450"/>
- <value name="ETC2_EAC_SRGB8_A8" value="451"/>
- <value name="R8G8B8_UINT" value="456"/>
- <value name="R8G8B8_SINT" value="457"/>
- <value name="RAW" value="511"/>
- </enum>
-
- <enum name="Texture Coordinate Mode" prefix="TCM">
- <value name="WRAP" value="0"/>
- <value name="MIRROR" value="1"/>
- <value name="CLAMP" value="2"/>
- <value name="CUBE" value="3"/>
- <value name="CLAMP_BORDER" value="4"/>
- <value name="MIRROR_ONCE" value="5"/>
- </enum>
-
<instruction name="3DPRIMITIVE" bias="2" length="7">
<field name="Command Type" start="29" end="31" type="uint" default="3"/>
<field name="Command SubType" start="27" end="28" type="uint" default="3"/>
<genxml name="BDW" gen="8">
- <struct name="3DSTATE_CONSTANT_BODY" length="10">
- <field name="Constant Buffer 1 Read Length" start="16" end="31" type="uint"/>
- <field name="Constant Buffer 0 Read Length" start="0" end="15" type="uint"/>
- <field name="Constant Buffer 3 Read Length" start="48" end="63" type="uint"/>
- <field name="Constant Buffer 2 Read Length" start="32" end="47" type="uint"/>
- <field name="Pointer To Constant Buffer 0" start="69" end="127" type="address"/>
- <field name="Pointer To Constant Buffer 1" start="133" end="191" type="address"/>
- <field name="Pointer To Constant Buffer 2" start="197" end="255" type="address"/>
- <field name="Pointer To Constant Buffer 3" start="261" end="319" type="address"/>
- </struct>
-
- <struct name="BINDING_TABLE_EDIT_ENTRY" length="1">
- <field name="Binding Table Index" start="16" end="23" type="uint"/>
- <field name="Surface State Pointer" start="0" end="15" type="offset"/>
- </struct>
-
- <struct name="GATHER_CONSTANT_ENTRY" length="1">
- <field name="Constant Buffer Offset" start="8" end="15" type="offset"/>
- <field name="Channel Mask" start="4" end="7" type="uint"/>
- <field name="Binding Table Index Offset" start="0" end="3" type="uint"/>
- </struct>
+ <enum name="3D_Prim_Topo_Type" prefix="3DPRIM">
+ <value name="POINTLIST" value="1"/>
+ <value name="LINELIST" value="2"/>
+ <value name="LINESTRIP" value="3"/>
+ <value name="TRILIST" value="4"/>
+ <value name="TRISTRIP" value="5"/>
+ <value name="TRIFAN" value="6"/>
+ <value name="QUADLIST" value="7"/>
+ <value name="QUADSTRIP" value="8"/>
+ <value name="LINELIST_ADJ" value="9"/>
+ <value name="LINESTRIP_ADJ" value="10"/>
+ <value name="TRILIST_ADJ" value="11"/>
+ <value name="TRISTRIP_ADJ" value="12"/>
+ <value name="TRISTRIP_REVERSE" value="13"/>
+ <value name="POLYGON" value="14"/>
+ <value name="RECTLIST" value="15"/>
+ <value name="LINELOOP" value="16"/>
+ <value name="POINTLIST _BF" value="17"/>
+ <value name="LINESTRIP_CONT" value="18"/>
+ <value name="LINESTRIP_BF" value="19"/>
+ <value name="LINESTRIP_CONT_BF" value="20"/>
+ <value name="TRIFAN_NOSTIPPLE" value="22"/>
+ <value name="PATCHLIST_1" value="32"/>
+ <value name="PATCHLIST_2" value="33"/>
+ <value name="PATCHLIST_3" value="34"/>
+ <value name="PATCHLIST_4" value="35"/>
+ <value name="PATCHLIST_5" value="36"/>
+ <value name="PATCHLIST_6" value="37"/>
+ <value name="PATCHLIST_7" value="38"/>
+ <value name="PATCHLIST_8" value="39"/>
+ <value name="PATCHLIST_9" value="40"/>
+ <value name="PATCHLIST_10" value="41"/>
+ <value name="PATCHLIST_11" value="42"/>
+ <value name="PATCHLIST_12" value="43"/>
+ <value name="PATCHLIST_13" value="44"/>
+ <value name="PATCHLIST_14" value="45"/>
+ <value name="PATCHLIST_15" value="46"/>
+ <value name="PATCHLIST_16" value="47"/>
+ <value name="PATCHLIST_17" value="48"/>
+ <value name="PATCHLIST_18" value="49"/>
+ <value name="PATCHLIST_19" value="50"/>
+ <value name="PATCHLIST_20" value="51"/>
+ <value name="PATCHLIST_21" value="52"/>
+ <value name="PATCHLIST_22" value="53"/>
+ <value name="PATCHLIST_23" value="54"/>
+ <value name="PATCHLIST_24" value="55"/>
+ <value name="PATCHLIST_25" value="56"/>
+ <value name="PATCHLIST_26" value="57"/>
+ <value name="PATCHLIST_27" value="58"/>
+ <value name="PATCHLIST_28" value="59"/>
+ <value name="PATCHLIST_29" value="60"/>
+ <value name="PATCHLIST_30" value="61"/>
+ <value name="PATCHLIST_31" value="62"/>
+ <value name="PATCHLIST_32" value="63"/>
+ </enum>
- <struct name="MEMORY_OBJECT_CONTROL_STATE" length="1">
- <field name="Memory Type:LLC/eLLC Cacheability Control" start="5" end="6" type="uint">
- <value name=" UC with Fence (if coherent cycle)" value="0"/>
- <value name="UC (Uncacheable)" value="1"/>
- <value name="WT" value="2"/>
- <value name="WB" value="3"/>
- </field>
- <field name="Target Cache" start="3" end="4" type="uint">
- <value name="eLLC Only (when eDRAM is present, else gets allocated in LLC)" value="0"/>
- <value name="LLC Only" value="1"/>
- <value name="LLC/eLLC Allowed" value="2"/>
- <value name="L3 + Defer to PAT for LLC/eLLC selection" value="3"/>
- </field>
- <field name="Age for QUADLRU" start="0" end="1" type="uint"/>
- </struct>
+ <enum name="3D_Vertex_Component_Control" prefix="VFCOMP">
+ <value name="NOSTORE" value="0"/>
+ <value name="STORE_SRC" value="1"/>
+ <value name="STORE_0" value="2"/>
+ <value name="STORE_1_FP" value="3"/>
+ <value name="STORE_1_INT" value="4"/>
+ <value name="STORE_PID" value="7"/>
+ </enum>
- <struct name="VERTEX_BUFFER_STATE" length="4">
- <field name="Vertex Buffer Index" start="26" end="31" type="uint"/>
- <field name="Memory Object Control State" start="16" end="22" type="MEMORY_OBJECT_CONTROL_STATE"/>
- <field name="Vertex Buffer MOCS" start="16" end="22" type="uint"/>
- <field name="Address Modify Enable" start="14" end="14" type="bool"/>
- <field name="Null Vertex Buffer" start="13" end="13" type="bool"/>
- <field name="Buffer Pitch" start="0" end="11" type="uint"/>
- <field name="Buffer Starting Address" start="32" end="95" type="address"/>
- <field name="Buffer Size" start="96" end="127" type="uint"/>
- </struct>
+ <enum name="WRAP_SHORTEST_ENABLE" prefix="WSE">
+ <value name="X" value="1"/>
+ <value name="Y" value="2"/>
+ <value name="XY" value="3"/>
+ <value name="Z" value="4"/>
+ <value name="XZ" value="5"/>
+ <value name="YZ" value="6"/>
+ <value name="XYZ" value="7"/>
+ <value name="W" value="8"/>
+ <value name="XW" value="9"/>
+ <value name="YW" value="10"/>
+ <value name="XYW" value="11"/>
+ <value name="ZW" value="12"/>
+ <value name="XZW" value="13"/>
+ <value name="YZW" value="14"/>
+ <value name="XYZW" value="15"/>
+ </enum>
- <struct name="VERTEX_ELEMENT_STATE" length="2">
- <field name="Vertex Buffer Index" start="26" end="31" type="uint"/>
- <field name="Valid" start="25" end="25" type="bool"/>
- <field name="Source Element Format" start="16" end="24" type="uint"/>
- <field name="Edge Flag Enable" start="15" end="15" type="bool"/>
- <field name="Source Element Offset" start="0" end="11" type="uint"/>
- <field name="Component 0 Control" start="60" end="62" type="uint"/>
- <field name="Component 1 Control" start="56" end="58" type="uint"/>
- <field name="Component 2 Control" start="52" end="54" type="uint"/>
- <field name="Component 3 Control" start="48" end="50" type="uint"/>
- </struct>
+ <enum name="3D_Stencil_Operation" prefix="STENCILOP">
+ <value name="KEEP" value="0"/>
+ <value name="ZERO" value="1"/>
+ <value name="REPLACE" value="2"/>
+ <value name="INCRSAT" value="3"/>
+ <value name="DECRSAT" value="4"/>
+ <value name="INCR" value="5"/>
+ <value name="DECR" value="6"/>
+ <value name="INVERT" value="7"/>
+ </enum>
- <struct name="SO_DECL" length="1">
- <field name="Output Buffer Slot" start="12" end="13" type="uint"/>
- <field name="Hole Flag" start="11" end="11" type="uint"/>
- <field name="Register Index" start="4" end="9" type="uint"/>
- <field name="Component Mask" start="0" end="3" type="uint" default="0"/>
- </struct>
+ <enum name="3D_Color_Buffer_Blend_Factor" prefix="BLENDFACTOR">
+ <value name="ONE" value="1"/>
+ <value name="SRC_COLOR" value="2"/>
+ <value name="SRC_ALPHA" value="3"/>
+ <value name="DST_ALPHA" value="4"/>
+ <value name="DST_COLOR" value="5"/>
+ <value name="SRC_ALPHA_SATURATE" value="6"/>
+ <value name="CONST_COLOR" value="7"/>
+ <value name="CONST_ALPHA" value="8"/>
+ <value name="SRC1_COLOR" value="9"/>
+ <value name="SRC1_ALPHA" value="10"/>
+ <value name="ZERO" value="17"/>
+ <value name="INV_SRC_COLOR" value="18"/>
+ <value name="INV_SRC_ALPHA" value="19"/>
+ <value name="INV_DST_ALPHA" value="20"/>
+ <value name="INV_DST_COLOR" value="21"/>
+ <value name="INV_CONST_COLOR" value="23"/>
+ <value name="INV_CONST_ALPHA" value="24"/>
+ <value name="INV_SRC1_COLOR" value="25"/>
+ <value name="INV_SRC1_ALPHA" value="26"/>
+ </enum>
- <struct name="SO_DECL_ENTRY" length="2">
- <field name="Stream 3 Decl" start="48" end="63" type="SO_DECL"/>
- <field name="Stream 2 Decl" start="32" end="47" type="SO_DECL"/>
- <field name="Stream 1 Decl" start="16" end="31" type="SO_DECL"/>
- <field name="Stream 0 Decl" start="0" end="15" type="SO_DECL"/>
- </struct>
+ <enum name="3D_Color_Buffer_Blend_Function" prefix="BLENDFUNCTION">
+ <value name="ADD" value="0"/>
+ <value name="SUBTRACT" value="1"/>
+ <value name="REVERSE_SUBTRACT" value="2"/>
+ <value name="MIN" value="3"/>
+ <value name="MAX" value="4"/>
+ </enum>
- <struct name="SF_OUTPUT_ATTRIBUTE_DETAIL" length="1">
- <field name="Component Override W" start="15" end="15" type="bool"/>
- <field name="Component Override Z" start="14" end="14" type="bool"/>
- <field name="Component Override Y" start="13" end="13" type="bool"/>
- <field name="Component Override X" start="12" end="12" type="bool"/>
- <field name="Swizzle Control Mode" start="11" end="11" type="uint"/>
- <field name="Constant Source" start="9" end="10" type="uint">
- <value name="CONST_0000" value="0"/>
- <value name="CONST_0001_FLOAT" value="1"/>
- <value name="CONST_1111_FLOAT" value="2"/>
- <value name="PRIM_ID" value="3"/>
- </field>
- <field name="Swizzle Select" start="6" end="7" type="uint">
- <value name="INPUTATTR" value="0"/>
- <value name="INPUTATTR_FACING" value="1"/>
- <value name="INPUTATTR_W" value="2"/>
- <value name="INPUTATTR_FACING_W" value="3"/>
- </field>
- <field name="Source Attribute" start="0" end="4" type="uint"/>
- </struct>
+ <enum name="3D_Compare_Function" prefix="COMPAREFUNCTION">
+ <value name="ALWAYS" value="0"/>
+ <value name="NEVER" value="1"/>
+ <value name="LESS" value="2"/>
+ <value name="EQUAL" value="3"/>
+ <value name="LEQUAL" value="4"/>
+ <value name="GREATER" value="5"/>
+ <value name="NOTEQUAL" value="6"/>
+ <value name="GEQUAL" value="7"/>
+ </enum>
- <struct name="SCISSOR_RECT" length="2">
- <field name="Scissor Rectangle Y Min" start="16" end="31" type="uint"/>
- <field name="Scissor Rectangle X Min" start="0" end="15" type="uint"/>
- <field name="Scissor Rectangle Y Max" start="48" end="63" type="uint"/>
- <field name="Scissor Rectangle X Max" start="32" end="47" type="uint"/>
- </struct>
+ <enum name="3D_Logic_Op_Function" prefix="LOGICOP">
+ <value name="CLEAR" value="0"/>
+ <value name="NOR" value="1"/>
+ <value name="AND_INVERTED" value="2"/>
+ <value name="COPY_INVERTED" value="3"/>
+ <value name="AND_REVERSE" value="4"/>
+ <value name="INVERT" value="5"/>
+ <value name="XOR" value="6"/>
+ <value name="NAND" value="7"/>
+ <value name="AND" value="8"/>
+ <value name="EQUIV" value="9"/>
+ <value name="NOOP" value="10"/>
+ <value name="OR_INVERTED" value="11"/>
+ <value name="COPY" value="12"/>
+ <value name="OR_REVERSE" value="13"/>
+ <value name="OR" value="14"/>
+ <value name="SET" value="15"/>
+ </enum>
- <struct name="SF_CLIP_VIEWPORT" length="16">
- <field name="Viewport Matrix Element m00" start="0" end="31" type="float"/>
- <field name="Viewport Matrix Element m11" start="32" end="63" type="float"/>
- <field name="Viewport Matrix Element m22" start="64" end="95" type="float"/>
- <field name="Viewport Matrix Element m30" start="96" end="127" type="float"/>
- <field name="Viewport Matrix Element m31" start="128" end="159" type="float"/>
- <field name="Viewport Matrix Element m32" start="160" end="191" type="float"/>
- <field name="X Min Clip Guardband" start="256" end="287" type="float"/>
- <field name="X Max Clip Guardband" start="288" end="319" type="float"/>
- <field name="Y Min Clip Guardband" start="320" end="351" type="float"/>
- <field name="Y Max Clip Guardband" start="352" end="383" type="float"/>
- <field name="X Min ViewPort" start="384" end="415" type="float"/>
- <field name="X Max ViewPort" start="416" end="447" type="float"/>
- <field name="Y Min ViewPort" start="448" end="479" type="float"/>
- <field name="Y Max ViewPort" start="480" end="511" type="float"/>
- </struct>
-
- <struct name="BLEND_STATE_ENTRY" length="2">
- <field name="Logic Op Enable" start="63" end="63" type="bool"/>
- <field name="Logic Op Function" start="59" end="62" type="uint"/>
- <field name="Pre-Blend Source Only Clamp Enable" start="36" end="36" type="bool"/>
- <field name="Color Clamp Range" start="34" end="35" type="uint">
- <value name="COLORCLAMP_UNORM" value="0"/>
- <value name="COLORCLAMP_SNORM" value="1"/>
- <value name="COLORCLAMP_RTFORMAT" value="2"/>
- </field>
- <field name="Pre-Blend Color Clamp Enable" start="33" end="33" type="bool"/>
- <field name="Post-Blend Color Clamp Enable" start="32" end="32" type="bool"/>
- <field name="Color Buffer Blend Enable" start="31" end="31" type="bool"/>
- <field name="Source Blend Factor" start="26" end="30" type="uint"/>
- <field name="Destination Blend Factor" start="21" end="25" type="uint"/>
- <field name="Color Blend Function" start="18" end="20" type="uint"/>
- <field name="Source Alpha Blend Factor" start="13" end="17" type="uint"/>
- <field name="Destination Alpha Blend Factor" start="8" end="12" type="uint"/>
- <field name="Alpha Blend Function" start="5" end="7" type="uint"/>
- <field name="Write Disable Alpha" start="3" end="3" type="bool"/>
- <field name="Write Disable Red" start="2" end="2" type="bool"/>
- <field name="Write Disable Green" start="1" end="1" type="bool"/>
- <field name="Write Disable Blue" start="0" end="0" type="bool"/>
- </struct>
-
- <struct name="BLEND_STATE" length="17">
- <field name="Alpha To Coverage Enable" start="31" end="31" type="bool"/>
- <field name="Independent Alpha Blend Enable" start="30" end="30" type="bool"/>
- <field name="Alpha To One Enable" start="29" end="29" type="bool"/>
- <field name="Alpha To Coverage Dither Enable" start="28" end="28" type="bool"/>
- <field name="Alpha Test Enable" start="27" end="27" type="bool"/>
- <field name="Alpha Test Function" start="24" end="26" type="uint"/>
- <field name="Color Dither Enable" start="23" end="23" type="bool"/>
- <field name="X Dither Offset" start="21" end="22" type="uint"/>
- <field name="Y Dither Offset" start="19" end="20" type="uint"/>
- <group count="8" start="32" size="64">
- <field name="Entry" start="0" end="63" type="BLEND_STATE_ENTRY"/>
- </group>
- </struct>
-
- <struct name="CC_VIEWPORT" length="2">
- <field name="Minimum Depth" start="0" end="31" type="float"/>
- <field name="Maximum Depth" start="32" end="63" type="float"/>
- </struct>
-
- <struct name="COLOR_CALC_STATE" length="6">
- <field name="Stencil Reference Value" start="24" end="31" type="uint"/>
- <field name="BackFace Stencil Reference Value" start="16" end="23" type="uint"/>
- <field name="Round Disable Function Disable" start="15" end="15" type="bool"/>
- <field name="Alpha Test Format" start="0" end="0" type="uint">
- <value name="ALPHATEST_UNORM8" value="0"/>
- <value name="ALPHATEST_FLOAT32" value="1"/>
- </field>
- <field name="Alpha Reference Value As UNORM8" start="32" end="63" type="uint"/>
- <field name="Alpha Reference Value As FLOAT32" start="32" end="63" type="float"/>
- <field name="Blend Constant Color Red" start="64" end="95" type="float"/>
- <field name="Blend Constant Color Green" start="96" end="127" type="float"/>
- <field name="Blend Constant Color Blue" start="128" end="159" type="float"/>
- <field name="Blend Constant Color Alpha" start="160" end="191" type="float"/>
- </struct>
-
- <struct name="BLACK_LEVEL_CORRECTION_STATE_-_DW75..76" length="2">
- <field name="Black Point Offset R" start="0" end="12" type="int" default="0"/>
- <field name="Black Point Offset G" start="45" end="57" type="int"/>
- <field name="Black Point Offset B" start="32" end="44" type="int"/>
- </struct>
-
- <struct name="INTERFACE_DESCRIPTOR_DATA" length="8">
- <field name="Kernel Start Pointer" start="6" end="31" type="offset"/>
- <field name="Kernel Start Pointer High" start="32" end="47" type="offset"/>
- <field name="Denorm Mode" start="83" end="83" type="uint">
- <value name="Ftz" value="0"/>
- <value name="SetByKernel" value="1"/>
- </field>
- <field name="Single Program Flow" start="82" end="82" type="bool"/>
- <field name="Thread Priority" start="81" end="81" type="uint">
- <value name="Normal Priority" value="0"/>
- <value name="High Priority" value="1"/>
- </field>
- <field name="Floating Point Mode" start="80" end="80" type="uint">
- <value name="IEEE-754" value="0"/>
- <value name="Alternate" value="1"/>
- </field>
- <field name="Illegal Opcode Exception Enable" start="77" end="77" type="bool"/>
- <field name="Mask Stack Exception Enable" start="75" end="75" type="bool"/>
- <field name="Software Exception Enable" start="71" end="71" type="bool"/>
- <field name="Sampler State Pointer" start="101" end="127" type="offset"/>
- <field name="Sampler Count" start="98" end="100" type="uint">
- <value name="No samplers used" value="0"/>
- <value name="Between 1 and 4 samplers used" value="1"/>
- <value name="Between 5 and 8 samplers used" value="2"/>
- <value name="Between 9 and 12 samplers used" value="3"/>
- <value name="Between 13 and 16 samplers used" value="4"/>
- </field>
- <field name="Binding Table Pointer" start="133" end="143" type="offset"/>
- <field name="Binding Table Entry Count" start="128" end="132" type="uint"/>
- <field name="Constant URB Entry Read Length" start="176" end="191" type="uint"/>
- <field name="Constant URB Entry Read Offset" start="160" end="175" type="uint"/>
- <field name="Rounding Mode" start="214" end="215" type="uint">
- <value name="RTNE" value="0"/>
- <value name="RU" value="1"/>
- <value name="RD" value="2"/>
- <value name="RTZ" value="3"/>
- </field>
- <field name="Barrier Enable" start="213" end="213" type="bool"/>
- <field name="Shared Local Memory Size" start="208" end="212" type="uint">
- <value name="Encodes 0k" value="0"/>
- <value name="Encodes 4k" value="1"/>
- <value name="Encodes 8k" value="2"/>
- <value name="Encodes 16k" value="4"/>
- <value name="Encodes 32k" value="8"/>
- <value name="Encodes 64k" value="16"/>
- </field>
- <field name="Number of Threads in GPGPU Thread Group" start="192" end="201" type="uint"/>
- <field name="Cross-Thread Constant Data Read Length" start="224" end="231" type="uint"/>
- </struct>
-
- <struct name="PALETTE_ENTRY" length="1">
- <field name="Alpha" start="24" end="31" type="uint"/>
- <field name="Red" start="16" end="23" type="uint"/>
- <field name="Green" start="8" end="15" type="uint"/>
- <field name="Blue" start="0" end="7" type="uint"/>
- </struct>
-
- <struct name="BINDING_TABLE_STATE" length="1">
- <field name="Surface State Pointer" start="6" end="31" type="offset"/>
- </struct>
-
- <struct name="RENDER_SURFACE_STATE" length="16">
- <field name="Surface Type" start="29" end="31" type="uint">
- <value name="SURFTYPE_1D" value="0"/>
- <value name="SURFTYPE_2D" value="1"/>
- <value name="SURFTYPE_3D" value="2"/>
- <value name="SURFTYPE_CUBE" value="3"/>
- <value name="SURFTYPE_BUFFER" value="4"/>
- <value name="SURFTYPE_STRBUF" value="5"/>
- <value name="SURFTYPE_NULL" value="7"/>
- </field>
- <field name="Surface Array" start="28" end="28" type="bool"/>
- <field name="Surface Format" start="18" end="26" type="uint"/>
- <field name="Surface Vertical Alignment" start="16" end="17" type="uint">
- <value name="VALIGN 4" value="1"/>
- <value name="VALIGN 8" value="2"/>
- <value name="VALIGN 16" value="3"/>
- </field>
- <field name="Surface Horizontal Alignment" start="14" end="15" type="uint">
- <value name="HALIGN 4" value="1"/>
- <value name="HALIGN 8" value="2"/>
- <value name="HALIGN 16" value="3"/>
- </field>
- <field name="Tile Mode" start="12" end="13" type="uint">
- <value name="LINEAR" value="0"/>
- <value name="WMAJOR" value="1"/>
- <value name="XMAJOR" value="2"/>
- <value name="YMAJOR" value="3"/>
- </field>
- <field name="Vertical Line Stride" start="11" end="11" type="uint"/>
- <field name="Vertical Line Stride Offset" start="10" end="10" type="uint"/>
- <field name="Sampler L2 Bypass Mode Disable" start="9" end="9" type="bool"/>
- <field name="Render Cache Read Write Mode" start="8" end="8" type="uint">
- <value name="Write-Only Cache" value="0"/>
- <value name="Read-Write Cache" value="1"/>
- </field>
- <field name="Media Boundary Pixel Mode" start="6" end="7" type="uint">
- <value name="NORMAL_MODE" value="0"/>
- <value name="PROGRESSIVE_FRAME" value="2"/>
- <value name="INTERLACED_FRAME" value="3"/>
- </field>
- <field name="Cube Face Enable - Positive Z" start="0" end="0" type="bool"/>
- <field name="Cube Face Enable - Negative Z" start="1" end="1" type="bool"/>
- <field name="Cube Face Enable - Positive Y" start="2" end="2" type="bool"/>
- <field name="Cube Face Enable - Negative Y" start="3" end="3" type="bool"/>
- <field name="Cube Face Enable - Positive X" start="4" end="4" type="bool"/>
- <field name="Cube Face Enable - Negative X" start="5" end="5" type="bool"/>
- <field name="Memory Object Control State" start="56" end="62" type="MEMORY_OBJECT_CONTROL_STATE"/>
- <field name="MOCS" start="56" end="62" type="uint"/>
- <field name="Base Mip Level" start="51" end="55" type="u4.1"/>
- <field name="Surface QPitch" start="32" end="46" type="uint"/>
- <field name="Height" start="80" end="93" type="uint"/>
- <field name="Width" start="64" end="77" type="uint"/>
- <field name="Depth" start="117" end="127" type="uint"/>
- <field name="Surface Pitch" start="96" end="113" type="uint"/>
- <field name="Render Target And Sample Unorm Rotation" start="157" end="158" type="uint">
- <value name="0DEG" value="0"/>
- <value name="90DEG" value="1"/>
- <value name="270DEG" value="3"/>
- </field>
- <field name="Minimum Array Element" start="146" end="156" type="uint"/>
- <field name="Render Target View Extent" start="135" end="145" type="uint"/>
- <field name="Multisampled Surface Storage Format" start="134" end="134" type="uint">
- <value name="MSFMT_MSS" value="0"/>
- <value name="MSFMT_DEPTH_STENCIL" value="1"/>
- </field>
- <field name="Number of Multisamples" start="131" end="133" type="uint">
- <value name="MULTISAMPLECOUNT_1" value="0"/>
- <value name="MULTISAMPLECOUNT_2" value="1"/>
- <value name="MULTISAMPLECOUNT_4" value="2"/>
- <value name="MULTISAMPLECOUNT_8" value="3"/>
- </field>
- <field name="Multisample Position Palette Index" start="128" end="130" type="uint"/>
- <field name="X Offset" start="185" end="191" type="uint"/>
- <field name="Y Offset" start="181" end="183" type="uint"/>
- <field name="EWA Disable For Cube" start="180" end="180" type="bool"/>
- <field name="Coherency Type" start="174" end="174" type="uint">
- <value name="GPU coherent" value="0"/>
- <value name="IA coherent" value="1"/>
+ <enum name="SURFACE_FORMAT" prefix="SF">
+ <value name="R32G32B32A32_FLOAT" value="0"/>
+ <value name="R32G32B32A32_SINT" value="1"/>
+ <value name="R32G32B32A32_UINT" value="2"/>
+ <value name="R32G32B32A32_UNORM" value="3"/>
+ <value name="R32G32B32A32_SNORM" value="4"/>
+ <value name="R64G64_FLOAT" value="5"/>
+ <value name="R32G32B32X32_FLOAT" value="6"/>
+ <value name="R32G32B32A32_SSCALED" value="7"/>
+ <value name="R32G32B32A32_USCALED" value="8"/>
+ <value name="R32G32B32A32_SFIXED" value="32"/>
+ <value name="R64G64_PASSTHRU" value="33"/>
+ <value name="R32G32B32_FLOAT" value="64"/>
+ <value name="R32G32B32_SINT" value="65"/>
+ <value name="R32G32B32_UINT" value="66"/>
+ <value name="R32G32B32_UNORM" value="67"/>
+ <value name="R32G32B32_SNORM" value="68"/>
+ <value name="R32G32B32_SSCALED" value="69"/>
+ <value name="R32G32B32_USCALED" value="70"/>
+ <value name="R32G32B32_SFIXED" value="80"/>
+ <value name="R16G16B16A16_UNORM" value="128"/>
+ <value name="R16G16B16A16_SNORM" value="129"/>
+ <value name="R16G16B16A16_SINT" value="130"/>
+ <value name="R16G16B16A16_UINT" value="131"/>
+ <value name="R16G16B16A16_FLOAT" value="132"/>
+ <value name="R32G32_FLOAT" value="133"/>
+ <value name="R32G32_SINT" value="134"/>
+ <value name="R32G32_UINT" value="135"/>
+ <value name="R32_FLOAT_X8X24_TYPELESS" value="136"/>
+ <value name="X32_TYPELESS_G8X24_UINT" value="137"/>
+ <value name="L32A32_FLOAT" value="138"/>
+ <value name="R32G32_UNORM" value="139"/>
+ <value name="R32G32_SNORM" value="140"/>
+ <value name="R64_FLOAT" value="141"/>
+ <value name="R16G16B16X16_UNORM" value="142"/>
+ <value name="R16G16B16X16_FLOAT" value="143"/>
+ <value name="A32X32_FLOAT" value="144"/>
+ <value name="L32X32_FLOAT" value="145"/>
+ <value name="I32X32_FLOAT" value="146"/>
+ <value name="R16G16B16A16_SSCALED" value="147"/>
+ <value name="R16G16B16A16_USCALED" value="148"/>
+ <value name="R32G32_SSCALED" value="149"/>
+ <value name="R32G32_USCALED" value="150"/>
+ <value name="R32G32_SFIXED" value="160"/>
+ <value name="R64_PASSTHRU" value="161"/>
+ <value name="B8G8R8A8_UNORM" value="192"/>
+ <value name="B8G8R8A8_UNORM_SRGB" value="193"/>
+ <value name="R10G10B10A2_UNORM" value="194"/>
+ <value name="R10G10B10A2_UNORM_SRGB" value="195"/>
+ <value name="R10G10B10A2_UINT" value="196"/>
+ <value name="R10G10B10_SNORM_A2_UNORM" value="197"/>
+ <value name="R8G8B8A8_UNORM" value="199"/>
+ <value name="R8G8B8A8_UNORM_SRGB" value="200"/>
+ <value name="R8G8B8A8_SNORM" value="201"/>
+ <value name="R8G8B8A8_SINT" value="202"/>
+ <value name="R8G8B8A8_UINT" value="203"/>
+ <value name="R16G16_UNORM" value="204"/>
+ <value name="R16G16_SNORM" value="205"/>
+ <value name="R16G16_SINT" value="206"/>
+ <value name="R16G16_UINT" value="207"/>
+ <value name="R16G16_FLOAT" value="208"/>
+ <value name="B10G10R10A2_UNORM" value="209"/>
+ <value name="B10G10R10A2_UNORM_SRGB" value="210"/>
+ <value name="R11G11B10_FLOAT" value="211"/>
+ <value name="R32_SINT" value="214"/>
+ <value name="R32_UINT" value="215"/>
+ <value name="R32_FLOAT" value="216"/>
+ <value name="R24_UNORM_X8_TYPELESS" value="217"/>
+ <value name="X24_TYPELESS_G8_UINT" value="218"/>
+ <value name="L32_UNORM" value="221"/>
+ <value name="A32_UNORM" value="222"/>
+ <value name="L16A16_UNORM" value="223"/>
+ <value name="I24X8_UNORM" value="224"/>
+ <value name="L24X8_UNORM" value="225"/>
+ <value name="A24X8_UNORM" value="226"/>
+ <value name="I32_FLOAT" value="227"/>
+ <value name="L32_FLOAT" value="228"/>
+ <value name="A32_FLOAT" value="229"/>
+ <value name="X8B8_UNORM_G8R8_SNORM" value="230"/>
+ <value name="A8X8_UNORM_G8R8_SNORM" value="231"/>
+ <value name="B8X8_UNORM_G8R8_SNORM" value="232"/>
+ <value name="B8G8R8X8_UNORM" value="233"/>
+ <value name="B8G8R8X8_UNORM_SRGB" value="234"/>
+ <value name="R8G8B8X8_UNORM" value="235"/>
+ <value name="R8G8B8X8_UNORM_SRGB" value="236"/>
+ <value name="R9G9B9E5_SHAREDEXP" value="237"/>
+ <value name="B10G10R10X2_UNORM" value="238"/>
+ <value name="L16A16_FLOAT" value="240"/>
+ <value name="R32_UNORM" value="241"/>
+ <value name="R32_SNORM" value="242"/>
+ <value name="R10G10B10X2_USCALED" value="243"/>
+ <value name="R8G8B8A8_SSCALED" value="244"/>
+ <value name="R8G8B8A8_USCALED" value="245"/>
+ <value name="R16G16_SSCALED" value="246"/>
+ <value name="R16G16_USCALED" value="247"/>
+ <value name="R32_SSCALED" value="248"/>
+ <value name="R32_USCALED" value="249"/>
+ <value name="B5G6R5_UNORM" value="256"/>
+ <value name="B5G6R5_UNORM_SRGB" value="257"/>
+ <value name="B5G5R5A1_UNORM" value="258"/>
+ <value name="B5G5R5A1_UNORM_SRGB" value="259"/>
+ <value name="B4G4R4A4_UNORM" value="260"/>
+ <value name="B4G4R4A4_UNORM_SRGB" value="261"/>
+ <value name="R8G8_UNORM" value="262"/>
+ <value name="R8G8_SNORM" value="263"/>
+ <value name="R8G8_SINT" value="264"/>
+ <value name="R8G8_UINT" value="265"/>
+ <value name="R16_UNORM" value="266"/>
+ <value name="R16_SNORM" value="267"/>
+ <value name="R16_SINT" value="268"/>
+ <value name="R16_UINT" value="269"/>
+ <value name="R16_FLOAT" value="270"/>
+ <value name="A8P8_UNORM_PALETTE0" value="271"/>
+ <value name="A8P8_UNORM_PALETTE1" value="272"/>
+ <value name="I16_UNORM" value="273"/>
+ <value name="L16_UNORM" value="274"/>
+ <value name="A16_UNORM" value="275"/>
+ <value name="L8A8_UNORM" value="276"/>
+ <value name="I16_FLOAT" value="277"/>
+ <value name="L16_FLOAT" value="278"/>
+ <value name="A16_FLOAT" value="279"/>
+ <value name="L8A8_UNORM_SRGB" value="280"/>
+ <value name="R5G5_SNORM_B6_UNORM" value="281"/>
+ <value name="B5G5R5X1_UNORM" value="282"/>
+ <value name="B5G5R5X1_UNORM_SRGB" value="283"/>
+ <value name="R8G8_SSCALED" value="284"/>
+ <value name="R8G8_USCALED" value="285"/>
+ <value name="R16_SSCALED" value="286"/>
+ <value name="R16_USCALED" value="287"/>
+ <value name="P8A8_UNORM_PALETTE0" value="290"/>
+ <value name="P8A8_UNORM_PALETTE1" value="291"/>
+ <value name="A1B5G5R5_UNORM" value="292"/>
+ <value name="A4B4G4R4_UNORM" value="293"/>
+ <value name="L8A8_UINT" value="294"/>
+ <value name="L8A8_SINT" value="295"/>
+ <value name="R8_UNORM" value="320"/>
+ <value name="R8_SNORM" value="321"/>
+ <value name="R8_SINT" value="322"/>
+ <value name="R8_UINT" value="323"/>
+ <value name="A8_UNORM" value="324"/>
+ <value name="I8_UNORM" value="325"/>
+ <value name="L8_UNORM" value="326"/>
+ <value name="P4A4_UNORM_PALETTE0" value="327"/>
+ <value name="A4P4_UNORM_PALETTE0" value="328"/>
+ <value name="R8_SSCALED" value="329"/>
+ <value name="R8_USCALED" value="330"/>
+ <value name="P8_UNORM_PALETTE0" value="331"/>
+ <value name="L8_UNORM_SRGB" value="332"/>
+ <value name="P8_UNORM_PALETTE1" value="333"/>
+ <value name="P4A4_UNORM_PALETTE1" value="334"/>
+ <value name="A4P4_UNORM_PALETTE1" value="335"/>
+ <value name="Y8_UNORM" value="336"/>
+ <value name="L8_UINT" value="338"/>
+ <value name="L8_SINT" value="339"/>
+ <value name="I8_UINT" value="340"/>
+ <value name="I8_SINT" value="341"/>
+ <value name="DXT1_RGB_SRGB" value="384"/>
+ <value name="R1_UNORM" value="385"/>
+ <value name="YCRCB_NORMAL" value="386"/>
+ <value name="YCRCB_SWAPUVY" value="387"/>
+ <value name="P2_UNORM_PALETTE0" value="388"/>
+ <value name="P2_UNORM_PALETTE1" value="389"/>
+ <value name="BC1_UNORM" value="390"/>
+ <value name="BC2_UNORM" value="391"/>
+ <value name="BC3_UNORM" value="392"/>
+ <value name="BC4_UNORM" value="393"/>
+ <value name="BC5_UNORM" value="394"/>
+ <value name="BC1_UNORM_SRGB" value="395"/>
+ <value name="BC2_UNORM_SRGB" value="396"/>
+ <value name="BC3_UNORM_SRGB" value="397"/>
+ <value name="MONO8" value="398"/>
+ <value name="YCRCB_SWAPUV" value="399"/>
+ <value name="YCRCB_SWAPY" value="400"/>
+ <value name="DXT1_RGB" value="401"/>
+ <value name="FXT1" value="402"/>
+ <value name="R8G8B8_UNORM" value="403"/>
+ <value name="R8G8B8_SNORM" value="404"/>
+ <value name="R8G8B8_SSCALED" value="405"/>
+ <value name="R8G8B8_USCALED" value="406"/>
+ <value name="R64G64B64A64_FLOAT" value="407"/>
+ <value name="R64G64B64_FLOAT" value="408"/>
+ <value name="BC4_SNORM" value="409"/>
+ <value name="BC5_SNORM" value="410"/>
+ <value name="R16G16B16_FLOAT" value="411"/>
+ <value name="R16G16B16_UNORM" value="412"/>
+ <value name="R16G16B16_SNORM" value="413"/>
+ <value name="R16G16B16_SSCALED" value="414"/>
+ <value name="R16G16B16_USCALED" value="415"/>
+ <value name="BC6H_SF16" value="417"/>
+ <value name="BC7_UNORM" value="418"/>
+ <value name="BC7_UNORM_SRGB" value="419"/>
+ <value name="BC6H_UF16" value="420"/>
+ <value name="PLANAR_420_8" value="421"/>
+ <value name="R8G8B8_UNORM_SRGB" value="424"/>
+ <value name="ETC1_RGB8" value="425"/>
+ <value name="ETC2_RGB8" value="426"/>
+ <value name="EAC_R11" value="427"/>
+ <value name="EAC_RG11" value="428"/>
+ <value name="EAC_SIGNED_R11" value="429"/>
+ <value name="EAC_SIGNED_RG11" value="430"/>
+ <value name="ETC2_SRGB8" value="431"/>
+ <value name="R16G16B16_UINT" value="432"/>
+ <value name="R16G16B16_SINT" value="433"/>
+ <value name="R32_SFIXED" value="434"/>
+ <value name="R10G10B10A2_SNORM" value="435"/>
+ <value name="R10G10B10A2_USCALED" value="436"/>
+ <value name="R10G10B10A2_SSCALED" value="437"/>
+ <value name="R10G10B10A2_SINT" value="438"/>
+ <value name="B10G10R10A2_SNORM" value="439"/>
+ <value name="B10G10R10A2_USCALED" value="440"/>
+ <value name="B10G10R10A2_SSCALED" value="441"/>
+ <value name="B10G10R10A2_UINT" value="442"/>
+ <value name="B10G10R10A2_SINT" value="443"/>
+ <value name="R64G64B64A64_PASSTHRU" value="444"/>
+ <value name="R64G64B64_PASSTHRU" value="445"/>
+ <value name="ETC2_RGB8_PTA" value="448"/>
+ <value name="ETC2_SRGB8_PTA" value="449"/>
+ <value name="ETC2_EAC_RGBA8" value="450"/>
+ <value name="ETC2_EAC_SRGB8_A8" value="451"/>
+ <value name="R8G8B8_UINT" value="456"/>
+ <value name="R8G8B8_SINT" value="457"/>
+ <value name="RAW" value="511"/>
+ </enum>
+
+ <enum name="Shader Channel Select" prefix="SCS">
+ <value name="ZERO" value="0"/>
+ <value name="ONE" value="1"/>
+ <value name="RED" value="4"/>
+ <value name="GREEN" value="5"/>
+ <value name="BLUE" value="6"/>
+ <value name="ALPHA" value="7"/>
+ </enum>
+
+ <enum name="Clear Color">
+ <value name="CC_ZERO" value="0"/>
+ <value name="CC_ONE" value="1"/>
+ </enum>
+
+ <enum name="Texture Coordinate Mode" prefix="TCM">
+ <value name="WRAP" value="0"/>
+ <value name="MIRROR" value="1"/>
+ <value name="CLAMP" value="2"/>
+ <value name="CUBE" value="3"/>
+ <value name="CLAMP_BORDER" value="4"/>
+ <value name="MIRROR_ONCE" value="5"/>
+ <value name="HALF_BORDER" value="6"/>
+ </enum>
+
+ <struct name="3DSTATE_CONSTANT_BODY" length="10">
+ <field name="Constant Buffer 1 Read Length" start="16" end="31" type="uint"/>
+ <field name="Constant Buffer 0 Read Length" start="0" end="15" type="uint"/>
+ <field name="Constant Buffer 3 Read Length" start="48" end="63" type="uint"/>
+ <field name="Constant Buffer 2 Read Length" start="32" end="47" type="uint"/>
+ <field name="Pointer To Constant Buffer 0" start="69" end="127" type="address"/>
+ <field name="Pointer To Constant Buffer 1" start="133" end="191" type="address"/>
+ <field name="Pointer To Constant Buffer 2" start="197" end="255" type="address"/>
+ <field name="Pointer To Constant Buffer 3" start="261" end="319" type="address"/>
+ </struct>
+
+ <struct name="BINDING_TABLE_EDIT_ENTRY" length="1">
+ <field name="Binding Table Index" start="16" end="23" type="uint"/>
+ <field name="Surface State Pointer" start="0" end="15" type="offset"/>
+ </struct>
+
+ <struct name="GATHER_CONSTANT_ENTRY" length="1">
+ <field name="Constant Buffer Offset" start="8" end="15" type="offset"/>
+ <field name="Channel Mask" start="4" end="7" type="uint"/>
+ <field name="Binding Table Index Offset" start="0" end="3" type="uint"/>
+ </struct>
+
+ <struct name="MEMORY_OBJECT_CONTROL_STATE" length="1">
+ <field name="Memory Type:LLC/eLLC Cacheability Control" start="5" end="6" type="uint">
+ <value name=" UC with Fence (if coherent cycle)" value="0"/>
+ <value name="UC (Uncacheable)" value="1"/>
+ <value name="WT" value="2"/>
+ <value name="WB" value="3"/>
</field>
- <field name="Surface Min LOD" start="164" end="167" type="uint"/>
- <field name="MIP Count / LOD" start="160" end="163" type="uint"/>
- <field name="Auxiliary Surface QPitch" start="208" end="222" type="uint"/>
- <field name="Auxiliary Surface Pitch" start="195" end="203" type="uint"/>
- <field name="Auxiliary Surface Mode" start="192" end="194" type="uint">
- <value name="AUX_NONE" value="0"/>
- <value name="AUX_MCS" value="1"/>
- <value name="AUX_APPEND" value="2"/>
- <value name="AUX_HIZ" value="3"/>
+ <field name="Target Cache" start="3" end="4" type="uint">
+ <value name="eLLC Only (when eDRAM is present, else gets allocated in LLC)" value="0"/>
+ <value name="LLC Only" value="1"/>
+ <value name="LLC/eLLC Allowed" value="2"/>
+ <value name="L3 + Defer to PAT for LLC/eLLC selection" value="3"/>
</field>
- <field name="Separate UV Plane Enable" start="223" end="223" type="bool"/>
- <field name="X Offset for U or UV Plane" start="208" end="221" type="uint"/>
- <field name="Y Offset for U or UV Plane" start="192" end="205" type="uint"/>
- <field name="Red Clear Color" start="255" end="255" type="uint"/>
- <field name="Green Clear Color" start="254" end="254" type="uint"/>
- <field name="Blue Clear Color" start="253" end="253" type="uint"/>
- <field name="Alpha Clear Color" start="252" end="252" type="uint"/>
- <field name="Shader Channel Select Red" start="249" end="251" type="uint"/>
- <field name="Shader Channel Select Green" start="246" end="248" type="uint"/>
- <field name="Shader Channel Select Blue" start="243" end="245" type="uint"/>
- <field name="Shader Channel Select Alpha" start="240" end="242" type="uint"/>
- <field name="Resource Min LOD" start="224" end="235" type="u4.8"/>
- <field name="Surface Base Address" start="256" end="319" type="address"/>
- <field name="X Offset for V Plane" start="368" end="381" type="uint"/>
- <field name="Y Offset for V Plane" start="352" end="365" type="uint"/>
- <field name="Auxiliary Table Index for Media Compressed Surface" start="341" end="351" type="uint"/>
- <field name="Auxiliary Surface Base Address" start="332" end="383" type="address"/>
+ <field name="Age for QUADLRU" start="0" end="1" type="uint"/>
</struct>
- <struct name="FILTER_COEFFICIENT" length="1">
- <field name="Filter Coefficient" start="0" end="7" type="s1.6"/>
+ <struct name="VERTEX_BUFFER_STATE" length="4">
+ <field name="Vertex Buffer Index" start="26" end="31" type="uint"/>
+ <field name="Memory Object Control State" start="16" end="22" type="MEMORY_OBJECT_CONTROL_STATE"/>
+ <field name="Vertex Buffer MOCS" start="16" end="22" type="uint"/>
+ <field name="Address Modify Enable" start="14" end="14" type="bool"/>
+ <field name="Null Vertex Buffer" start="13" end="13" type="bool"/>
+ <field name="Buffer Pitch" start="0" end="11" type="uint"/>
+ <field name="Buffer Starting Address" start="32" end="95" type="address"/>
+ <field name="Buffer Size" start="96" end="127" type="uint"/>
</struct>
- <struct name="SAMPLER_BORDER_COLOR_STATE" length="4">
- <field name="Border Color Float Red" start="0" end="31" type="float"/>
- <field name="Border Color Float Green" start="32" end="63" type="float"/>
- <field name="Border Color Float Blue" start="64" end="95" type="float"/>
- <field name="Border Color Float Alpha" start="96" end="127" type="float"/>
+ <struct name="VERTEX_ELEMENT_STATE" length="2">
+ <field name="Vertex Buffer Index" start="26" end="31" type="uint"/>
+ <field name="Valid" start="25" end="25" type="bool"/>
+ <field name="Source Element Format" start="16" end="24" type="uint"/>
+ <field name="Edge Flag Enable" start="15" end="15" type="bool"/>
+ <field name="Source Element Offset" start="0" end="11" type="uint"/>
+ <field name="Component 0 Control" start="60" end="62" type="uint"/>
+ <field name="Component 1 Control" start="56" end="58" type="uint"/>
+ <field name="Component 2 Control" start="52" end="54" type="uint"/>
+ <field name="Component 3 Control" start="48" end="50" type="uint"/>
+ </struct>
- <field name="Border Color 32bit Red" start="0" end="31" type="uint"/>
- <field name="Border Color 32bit Green" start="32" end="63" type="uint"/>
- <field name="Border Color 32bit Blue" start="64" end="95" type="uint"/>
- <field name="Border Color 32bit Alpha" start="96" end="127" type="uint"/>
+ <struct name="SO_DECL" length="1">
+ <field name="Output Buffer Slot" start="12" end="13" type="uint"/>
+ <field name="Hole Flag" start="11" end="11" type="uint"/>
+ <field name="Register Index" start="4" end="9" type="uint"/>
+ <field name="Component Mask" start="0" end="3" type="uint" default="0"/>
</struct>
- <struct name="SAMPLER_STATE" length="4">
- <field name="Sampler Disable" start="31" end="31" type="bool"/>
- <field name="Texture Border Color Mode" start="29" end="29" type="uint">
- <value name="DX10/OGL" value="0"/>
- <value name="DX9" value="1"/>
- </field>
- <field name="LOD PreClamp Mode" start="27" end="28" type="uint" prefix="CLAMP_MODE">
- <value name="NONE" value="0"/>
- <value name="OGL" value="2"/>
- </field>
- <field name="Base Mip Level" start="22" end="26" type="u4.1"/>
- <field name="Mip Mode Filter" start="20" end="21" type="uint" prefix="MIPFILTER">
- <value name="NONE" value="0"/>
- <value name="NEAREST" value="1"/>
- <value name="LINEAR" value="3"/>
- </field>
- <field name="Mag Mode Filter" start="17" end="19" type="uint" prefix="MAPFILTER">
- <value name="NEAREST" value="0"/>
- <value name="LINEAR" value="1"/>
- <value name="ANISOTROPIC" value="2"/>
- <value name="MONO" value="6"/>
- </field>
- <field name="Min Mode Filter" start="14" end="16" type="uint" prefix="MAPFILTER">
- <value name="NEAREST" value="0"/>
- <value name="LINEAR" value="1"/>
- <value name="ANISOTROPIC" value="2"/>
- <value name="MONO" value="6"/>
- </field>
- <field name="Texture LOD Bias" start="1" end="13" type="s4.8"/>
- <field name="Anisotropic Algorithm" start="0" end="0" type="uint">
- <value name="LEGACY" value="0"/>
- <value name="EWA Approximation" value="1"/>
- </field>
- <field name="Min LOD" start="52" end="63" type="u4.8"/>
- <field name="Max LOD" start="40" end="51" type="u4.8"/>
- <field name="ChromaKey Enable" start="39" end="39" type="bool"/>
- <field name="ChromaKey Index" start="37" end="38" type="uint"/>
- <field name="ChromaKey Mode" start="36" end="36" type="uint">
- <value name="KEYFILTER_KILL_ON_ANY_MATCH" value="0"/>
- <value name="KEYFILTER_REPLACE_BLACK" value="1"/>
- </field>
- <field name="Shadow Function" start="33" end="35" type="uint">
- <value name="PREFILTEROP ALWAYS" value="0"/>
- <value name="PREFILTEROP NEVER" value="1"/>
- <value name="PREFILTEROP LESS" value="2"/>
- <value name="PREFILTEROP EQUAL" value="3"/>
- <value name="PREFILTEROP LEQUAL" value="4"/>
- <value name="PREFILTEROP GREATER" value="5"/>
- <value name="PREFILTEROP NOTEQUAL" value="6"/>
- <value name="PREFILTEROP GEQUAL" value="7"/>
- </field>
- <field name="Cube Surface Control Mode" start="32" end="32" type="uint">
- <value name="PROGRAMMED" value="0"/>
- <value name="OVERRIDE" value="1"/>
- </field>
- <field name="Border Color Pointer" start="70" end="87" type="offset"/>
- <field name="LOD Clamp Magnification Mode" start="64" end="64" type="uint">
- <value name="MIPNONE" value="0"/>
- <value name="MIPFILTER" value="1"/>
- </field>
- <field name="Maximum Anisotropy" start="115" end="117" type="uint">
- <value name="RATIO 2:1" value="0"/>
- <value name="RATIO 4:1" value="1"/>
- <value name="RATIO 6:1" value="2"/>
- <value name="RATIO 8:1" value="3"/>
- <value name="RATIO 10:1" value="4"/>
- <value name="RATIO 12:1" value="5"/>
- <value name="RATIO 14:1" value="6"/>
- <value name="RATIO 16:1" value="7"/>
- </field>
- <field name="R Address Min Filter Rounding Enable" start="109" end="109" type="bool"/>
- <field name="R Address Mag Filter Rounding Enable" start="110" end="110" type="bool"/>
- <field name="V Address Min Filter Rounding Enable" start="111" end="111" type="bool"/>
- <field name="V Address Mag Filter Rounding Enable" start="112" end="112" type="bool"/>
- <field name="U Address Min Filter Rounding Enable" start="113" end="113" type="bool"/>
- <field name="U Address Mag Filter Rounding Enable" start="114" end="114" type="bool"/>
- <field name="Trilinear Filter Quality" start="107" end="108" type="uint">
- <value name="FULL" value="0"/>
- <value name="HIGH" value="1"/>
- <value name="MED" value="2"/>
- <value name="LOW" value="3"/>
- </field>
- <field name="Non-normalized Coordinate Enable" start="106" end="106" type="bool"/>
- <field name="TCX Address Control Mode" start="102" end="104" type="uint"/>
- <field name="TCY Address Control Mode" start="99" end="101" type="uint"/>
- <field name="TCZ Address Control Mode" start="96" end="98" type="uint"/>
+ <struct name="SO_DECL_ENTRY" length="2">
+ <field name="Stream 3 Decl" start="48" end="63" type="SO_DECL"/>
+ <field name="Stream 2 Decl" start="32" end="47" type="SO_DECL"/>
+ <field name="Stream 1 Decl" start="16" end="31" type="SO_DECL"/>
+ <field name="Stream 0 Decl" start="0" end="15" type="SO_DECL"/>
</struct>
- <struct name="SAMPLER_STATE_8X8_AVS_COEFFICIENTS" length="8">
- <field name="Table 0Y Filter Coefficient[n,1]" start="24" end="31" type="s1.6"/>
- <field name="Table 0X Filter Coefficient[n,1]" start="16" end="23" type="s1.6"/>
- <field name="Table 0Y Filter Coefficient[n,0]" start="8" end="15" type="s1.6"/>
- <field name="Table 0X Filter Coefficient[n,0]" start="0" end="7" type="s1.6"/>
- <field name="Table 0Y Filter Coefficient[n,3]" start="56" end="63" type="s1.6"/>
- <field name="Table 0X Filter Coefficient[n,3]" start="48" end="55" type="s1.6"/>
- <field name="Table 0Y Filter Coefficient[n,2]" start="40" end="47" type="s1.6"/>
- <field name="Table 0X Filter Coefficient[n,2]" start="32" end="39" type="s1.6"/>
- <field name="Table 0Y Filter Coefficient[n,5]" start="88" end="95" type="s1.6"/>
- <field name="Table 0X Filter Coefficient[n,5]" start="80" end="87" type="s1.6"/>
- <field name="Table 0Y Filter Coefficient[n,4]" start="72" end="79" type="s1.6"/>
- <field name="Table 0X Filter Coefficient[n,4]" start="64" end="71" type="s1.6"/>
- <field name="Table 0Y Filter Coefficient[n,7]" start="120" end="127" type="s1.6"/>
- <field name="Table 0X Filter Coefficient[n,7]" start="112" end="119" type="s1.6"/>
- <field name="Table 0Y Filter Coefficient[n,6]" start="104" end="111" type="s1.6"/>
- <field name="Table 0X Filter Coefficient[n,6]" start="96" end="103" type="s1.6"/>
- <field name="Table 1X Filter Coefficient[n,3]" start="152" end="159" type="s1.6"/>
- <field name="Table 1X Filter Coefficient[n,2]" start="144" end="151" type="s1.6"/>
- <field name="Table 1X Filter Coefficient[n,5]" start="168" end="175" type="s1.6"/>
- <field name="Table 1X Filter Coefficient[n,4]" start="160" end="167" type="s1.6"/>
- <field name="Table 1Y Filter Coefficient[n,3]" start="216" end="223" type="s1.6"/>
- <field name="Table 1Y Filter Coefficient[n,2]" start="208" end="215" type="s1.6"/>
- <field name="Table 1Y Filter Coefficient[n,5]" start="232" end="239" type="s1.6"/>
- <field name="Table 1Y Filter Coefficient[n,4]" start="224" end="231" type="s1.6"/>
+ <struct name="SF_OUTPUT_ATTRIBUTE_DETAIL" length="1">
+ <field name="Component Override W" start="15" end="15" type="bool"/>
+ <field name="Component Override Z" start="14" end="14" type="bool"/>
+ <field name="Component Override Y" start="13" end="13" type="bool"/>
+ <field name="Component Override X" start="12" end="12" type="bool"/>
+ <field name="Swizzle Control Mode" start="11" end="11" type="uint"/>
+ <field name="Constant Source" start="9" end="10" type="uint">
+ <value name="CONST_0000" value="0"/>
+ <value name="CONST_0001_FLOAT" value="1"/>
+ <value name="CONST_1111_FLOAT" value="2"/>
+ <value name="PRIM_ID" value="3"/>
+ </field>
+ <field name="Swizzle Select" start="6" end="7" type="uint">
+ <value name="INPUTATTR" value="0"/>
+ <value name="INPUTATTR_FACING" value="1"/>
+ <value name="INPUTATTR_W" value="2"/>
+ <value name="INPUTATTR_FACING_W" value="3"/>
+ </field>
+ <field name="Source Attribute" start="0" end="4" type="uint"/>
</struct>
- <enum name="3D_Prim_Topo_Type" prefix="3DPRIM">
- <value name="POINTLIST" value="1"/>
- <value name="LINELIST" value="2"/>
- <value name="LINESTRIP" value="3"/>
- <value name="TRILIST" value="4"/>
- <value name="TRISTRIP" value="5"/>
- <value name="TRIFAN" value="6"/>
- <value name="QUADLIST" value="7"/>
- <value name="QUADSTRIP" value="8"/>
- <value name="LINELIST_ADJ" value="9"/>
- <value name="LINESTRIP_ADJ" value="10"/>
- <value name="TRILIST_ADJ" value="11"/>
- <value name="TRISTRIP_ADJ" value="12"/>
- <value name="TRISTRIP_REVERSE" value="13"/>
- <value name="POLYGON" value="14"/>
- <value name="RECTLIST" value="15"/>
- <value name="LINELOOP" value="16"/>
- <value name="POINTLIST _BF" value="17"/>
- <value name="LINESTRIP_CONT" value="18"/>
- <value name="LINESTRIP_BF" value="19"/>
- <value name="LINESTRIP_CONT_BF" value="20"/>
- <value name="TRIFAN_NOSTIPPLE" value="22"/>
- <value name="PATCHLIST_1" value="32"/>
- <value name="PATCHLIST_2" value="33"/>
- <value name="PATCHLIST_3" value="34"/>
- <value name="PATCHLIST_4" value="35"/>
- <value name="PATCHLIST_5" value="36"/>
- <value name="PATCHLIST_6" value="37"/>
- <value name="PATCHLIST_7" value="38"/>
- <value name="PATCHLIST_8" value="39"/>
- <value name="PATCHLIST_9" value="40"/>
- <value name="PATCHLIST_10" value="41"/>
- <value name="PATCHLIST_11" value="42"/>
- <value name="PATCHLIST_12" value="43"/>
- <value name="PATCHLIST_13" value="44"/>
- <value name="PATCHLIST_14" value="45"/>
- <value name="PATCHLIST_15" value="46"/>
- <value name="PATCHLIST_16" value="47"/>
- <value name="PATCHLIST_17" value="48"/>
- <value name="PATCHLIST_18" value="49"/>
- <value name="PATCHLIST_19" value="50"/>
- <value name="PATCHLIST_20" value="51"/>
- <value name="PATCHLIST_21" value="52"/>
- <value name="PATCHLIST_22" value="53"/>
- <value name="PATCHLIST_23" value="54"/>
- <value name="PATCHLIST_24" value="55"/>
- <value name="PATCHLIST_25" value="56"/>
- <value name="PATCHLIST_26" value="57"/>
- <value name="PATCHLIST_27" value="58"/>
- <value name="PATCHLIST_28" value="59"/>
- <value name="PATCHLIST_29" value="60"/>
- <value name="PATCHLIST_30" value="61"/>
- <value name="PATCHLIST_31" value="62"/>
- <value name="PATCHLIST_32" value="63"/>
- </enum>
+ <struct name="SCISSOR_RECT" length="2">
+ <field name="Scissor Rectangle Y Min" start="16" end="31" type="uint"/>
+ <field name="Scissor Rectangle X Min" start="0" end="15" type="uint"/>
+ <field name="Scissor Rectangle Y Max" start="48" end="63" type="uint"/>
+ <field name="Scissor Rectangle X Max" start="32" end="47" type="uint"/>
+ </struct>
- <enum name="3D_Vertex_Component_Control" prefix="VFCOMP">
- <value name="NOSTORE" value="0"/>
- <value name="STORE_SRC" value="1"/>
- <value name="STORE_0" value="2"/>
- <value name="STORE_1_FP" value="3"/>
- <value name="STORE_1_INT" value="4"/>
- <value name="STORE_PID" value="7"/>
- </enum>
+ <struct name="SF_CLIP_VIEWPORT" length="16">
+ <field name="Viewport Matrix Element m00" start="0" end="31" type="float"/>
+ <field name="Viewport Matrix Element m11" start="32" end="63" type="float"/>
+ <field name="Viewport Matrix Element m22" start="64" end="95" type="float"/>
+ <field name="Viewport Matrix Element m30" start="96" end="127" type="float"/>
+ <field name="Viewport Matrix Element m31" start="128" end="159" type="float"/>
+ <field name="Viewport Matrix Element m32" start="160" end="191" type="float"/>
+ <field name="X Min Clip Guardband" start="256" end="287" type="float"/>
+ <field name="X Max Clip Guardband" start="288" end="319" type="float"/>
+ <field name="Y Min Clip Guardband" start="320" end="351" type="float"/>
+ <field name="Y Max Clip Guardband" start="352" end="383" type="float"/>
+ <field name="X Min ViewPort" start="384" end="415" type="float"/>
+ <field name="X Max ViewPort" start="416" end="447" type="float"/>
+ <field name="Y Min ViewPort" start="448" end="479" type="float"/>
+ <field name="Y Max ViewPort" start="480" end="511" type="float"/>
+ </struct>
- <enum name="WRAP_SHORTEST_ENABLE" prefix="WSE">
- <value name="X" value="1"/>
- <value name="Y" value="2"/>
- <value name="XY" value="3"/>
- <value name="Z" value="4"/>
- <value name="XZ" value="5"/>
- <value name="YZ" value="6"/>
- <value name="XYZ" value="7"/>
- <value name="W" value="8"/>
- <value name="XW" value="9"/>
- <value name="YW" value="10"/>
- <value name="XYW" value="11"/>
- <value name="ZW" value="12"/>
- <value name="XZW" value="13"/>
- <value name="YZW" value="14"/>
- <value name="XYZW" value="15"/>
- </enum>
+ <struct name="BLEND_STATE_ENTRY" length="2">
+ <field name="Logic Op Enable" start="63" end="63" type="bool"/>
+ <field name="Logic Op Function" start="59" end="62" type="uint"/>
+ <field name="Pre-Blend Source Only Clamp Enable" start="36" end="36" type="bool"/>
+ <field name="Color Clamp Range" start="34" end="35" type="uint">
+ <value name="COLORCLAMP_UNORM" value="0"/>
+ <value name="COLORCLAMP_SNORM" value="1"/>
+ <value name="COLORCLAMP_RTFORMAT" value="2"/>
+ </field>
+ <field name="Pre-Blend Color Clamp Enable" start="33" end="33" type="bool"/>
+ <field name="Post-Blend Color Clamp Enable" start="32" end="32" type="bool"/>
+ <field name="Color Buffer Blend Enable" start="31" end="31" type="bool"/>
+ <field name="Source Blend Factor" start="26" end="30" type="uint"/>
+ <field name="Destination Blend Factor" start="21" end="25" type="uint"/>
+ <field name="Color Blend Function" start="18" end="20" type="uint"/>
+ <field name="Source Alpha Blend Factor" start="13" end="17" type="uint"/>
+ <field name="Destination Alpha Blend Factor" start="8" end="12" type="uint"/>
+ <field name="Alpha Blend Function" start="5" end="7" type="uint"/>
+ <field name="Write Disable Alpha" start="3" end="3" type="bool"/>
+ <field name="Write Disable Red" start="2" end="2" type="bool"/>
+ <field name="Write Disable Green" start="1" end="1" type="bool"/>
+ <field name="Write Disable Blue" start="0" end="0" type="bool"/>
+ </struct>
- <enum name="3D_Stencil_Operation" prefix="STENCILOP">
- <value name="KEEP" value="0"/>
- <value name="ZERO" value="1"/>
- <value name="REPLACE" value="2"/>
- <value name="INCRSAT" value="3"/>
- <value name="DECRSAT" value="4"/>
- <value name="INCR" value="5"/>
- <value name="DECR" value="6"/>
- <value name="INVERT" value="7"/>
- </enum>
+ <struct name="BLEND_STATE" length="17">
+ <field name="Alpha To Coverage Enable" start="31" end="31" type="bool"/>
+ <field name="Independent Alpha Blend Enable" start="30" end="30" type="bool"/>
+ <field name="Alpha To One Enable" start="29" end="29" type="bool"/>
+ <field name="Alpha To Coverage Dither Enable" start="28" end="28" type="bool"/>
+ <field name="Alpha Test Enable" start="27" end="27" type="bool"/>
+ <field name="Alpha Test Function" start="24" end="26" type="uint"/>
+ <field name="Color Dither Enable" start="23" end="23" type="bool"/>
+ <field name="X Dither Offset" start="21" end="22" type="uint"/>
+ <field name="Y Dither Offset" start="19" end="20" type="uint"/>
+ <group count="8" start="32" size="64">
+ <field name="Entry" start="0" end="63" type="BLEND_STATE_ENTRY"/>
+ </group>
+ </struct>
- <enum name="3D_Color_Buffer_Blend_Factor" prefix="BLENDFACTOR">
- <value name="ONE" value="1"/>
- <value name="SRC_COLOR" value="2"/>
- <value name="SRC_ALPHA" value="3"/>
- <value name="DST_ALPHA" value="4"/>
- <value name="DST_COLOR" value="5"/>
- <value name="SRC_ALPHA_SATURATE" value="6"/>
- <value name="CONST_COLOR" value="7"/>
- <value name="CONST_ALPHA" value="8"/>
- <value name="SRC1_COLOR" value="9"/>
- <value name="SRC1_ALPHA" value="10"/>
- <value name="ZERO" value="17"/>
- <value name="INV_SRC_COLOR" value="18"/>
- <value name="INV_SRC_ALPHA" value="19"/>
- <value name="INV_DST_ALPHA" value="20"/>
- <value name="INV_DST_COLOR" value="21"/>
- <value name="INV_CONST_COLOR" value="23"/>
- <value name="INV_CONST_ALPHA" value="24"/>
- <value name="INV_SRC1_COLOR" value="25"/>
- <value name="INV_SRC1_ALPHA" value="26"/>
- </enum>
+ <struct name="CC_VIEWPORT" length="2">
+ <field name="Minimum Depth" start="0" end="31" type="float"/>
+ <field name="Maximum Depth" start="32" end="63" type="float"/>
+ </struct>
- <enum name="3D_Color_Buffer_Blend_Function" prefix="BLENDFUNCTION">
- <value name="ADD" value="0"/>
- <value name="SUBTRACT" value="1"/>
- <value name="REVERSE_SUBTRACT" value="2"/>
- <value name="MIN" value="3"/>
- <value name="MAX" value="4"/>
- </enum>
+ <struct name="COLOR_CALC_STATE" length="6">
+ <field name="Stencil Reference Value" start="24" end="31" type="uint"/>
+ <field name="BackFace Stencil Reference Value" start="16" end="23" type="uint"/>
+ <field name="Round Disable Function Disable" start="15" end="15" type="bool"/>
+ <field name="Alpha Test Format" start="0" end="0" type="uint">
+ <value name="ALPHATEST_UNORM8" value="0"/>
+ <value name="ALPHATEST_FLOAT32" value="1"/>
+ </field>
+ <field name="Alpha Reference Value As UNORM8" start="32" end="63" type="uint"/>
+ <field name="Alpha Reference Value As FLOAT32" start="32" end="63" type="float"/>
+ <field name="Blend Constant Color Red" start="64" end="95" type="float"/>
+ <field name="Blend Constant Color Green" start="96" end="127" type="float"/>
+ <field name="Blend Constant Color Blue" start="128" end="159" type="float"/>
+ <field name="Blend Constant Color Alpha" start="160" end="191" type="float"/>
+ </struct>
- <enum name="3D_Compare_Function" prefix="COMPAREFUNCTION">
- <value name="ALWAYS" value="0"/>
- <value name="NEVER" value="1"/>
- <value name="LESS" value="2"/>
- <value name="EQUAL" value="3"/>
- <value name="LEQUAL" value="4"/>
- <value name="GREATER" value="5"/>
- <value name="NOTEQUAL" value="6"/>
- <value name="GEQUAL" value="7"/>
- </enum>
+ <struct name="BLACK_LEVEL_CORRECTION_STATE_-_DW75..76" length="2">
+ <field name="Black Point Offset R" start="0" end="12" type="int" default="0"/>
+ <field name="Black Point Offset G" start="45" end="57" type="int"/>
+ <field name="Black Point Offset B" start="32" end="44" type="int"/>
+ </struct>
+
+ <struct name="INTERFACE_DESCRIPTOR_DATA" length="8">
+ <field name="Kernel Start Pointer" start="6" end="31" type="offset"/>
+ <field name="Kernel Start Pointer High" start="32" end="47" type="offset"/>
+ <field name="Denorm Mode" start="83" end="83" type="uint">
+ <value name="Ftz" value="0"/>
+ <value name="SetByKernel" value="1"/>
+ </field>
+ <field name="Single Program Flow" start="82" end="82" type="bool"/>
+ <field name="Thread Priority" start="81" end="81" type="uint">
+ <value name="Normal Priority" value="0"/>
+ <value name="High Priority" value="1"/>
+ </field>
+ <field name="Floating Point Mode" start="80" end="80" type="uint">
+ <value name="IEEE-754" value="0"/>
+ <value name="Alternate" value="1"/>
+ </field>
+ <field name="Illegal Opcode Exception Enable" start="77" end="77" type="bool"/>
+ <field name="Mask Stack Exception Enable" start="75" end="75" type="bool"/>
+ <field name="Software Exception Enable" start="71" end="71" type="bool"/>
+ <field name="Sampler State Pointer" start="101" end="127" type="offset"/>
+ <field name="Sampler Count" start="98" end="100" type="uint">
+ <value name="No samplers used" value="0"/>
+ <value name="Between 1 and 4 samplers used" value="1"/>
+ <value name="Between 5 and 8 samplers used" value="2"/>
+ <value name="Between 9 and 12 samplers used" value="3"/>
+ <value name="Between 13 and 16 samplers used" value="4"/>
+ </field>
+ <field name="Binding Table Pointer" start="133" end="143" type="offset"/>
+ <field name="Binding Table Entry Count" start="128" end="132" type="uint"/>
+ <field name="Constant URB Entry Read Length" start="176" end="191" type="uint"/>
+ <field name="Constant URB Entry Read Offset" start="160" end="175" type="uint"/>
+ <field name="Rounding Mode" start="214" end="215" type="uint">
+ <value name="RTNE" value="0"/>
+ <value name="RU" value="1"/>
+ <value name="RD" value="2"/>
+ <value name="RTZ" value="3"/>
+ </field>
+ <field name="Barrier Enable" start="213" end="213" type="bool"/>
+ <field name="Shared Local Memory Size" start="208" end="212" type="uint">
+ <value name="Encodes 0k" value="0"/>
+ <value name="Encodes 4k" value="1"/>
+ <value name="Encodes 8k" value="2"/>
+ <value name="Encodes 16k" value="4"/>
+ <value name="Encodes 32k" value="8"/>
+ <value name="Encodes 64k" value="16"/>
+ </field>
+ <field name="Number of Threads in GPGPU Thread Group" start="192" end="201" type="uint"/>
+ <field name="Cross-Thread Constant Data Read Length" start="224" end="231" type="uint"/>
+ </struct>
- <enum name="3D_Logic_Op_Function" prefix="LOGICOP">
- <value name="CLEAR" value="0"/>
- <value name="NOR" value="1"/>
- <value name="AND_INVERTED" value="2"/>
- <value name="COPY_INVERTED" value="3"/>
- <value name="AND_REVERSE" value="4"/>
- <value name="INVERT" value="5"/>
- <value name="XOR" value="6"/>
- <value name="NAND" value="7"/>
- <value name="AND" value="8"/>
- <value name="EQUIV" value="9"/>
- <value name="NOOP" value="10"/>
- <value name="OR_INVERTED" value="11"/>
- <value name="COPY" value="12"/>
- <value name="OR_REVERSE" value="13"/>
- <value name="OR" value="14"/>
- <value name="SET" value="15"/>
- </enum>
+ <struct name="PALETTE_ENTRY" length="1">
+ <field name="Alpha" start="24" end="31" type="uint"/>
+ <field name="Red" start="16" end="23" type="uint"/>
+ <field name="Green" start="8" end="15" type="uint"/>
+ <field name="Blue" start="0" end="7" type="uint"/>
+ </struct>
- <enum name="SURFACE_FORMAT" prefix="SF">
- <value name="R32G32B32A32_FLOAT" value="0"/>
- <value name="R32G32B32A32_SINT" value="1"/>
- <value name="R32G32B32A32_UINT" value="2"/>
- <value name="R32G32B32A32_UNORM" value="3"/>
- <value name="R32G32B32A32_SNORM" value="4"/>
- <value name="R64G64_FLOAT" value="5"/>
- <value name="R32G32B32X32_FLOAT" value="6"/>
- <value name="R32G32B32A32_SSCALED" value="7"/>
- <value name="R32G32B32A32_USCALED" value="8"/>
- <value name="R32G32B32A32_SFIXED" value="32"/>
- <value name="R64G64_PASSTHRU" value="33"/>
- <value name="R32G32B32_FLOAT" value="64"/>
- <value name="R32G32B32_SINT" value="65"/>
- <value name="R32G32B32_UINT" value="66"/>
- <value name="R32G32B32_UNORM" value="67"/>
- <value name="R32G32B32_SNORM" value="68"/>
- <value name="R32G32B32_SSCALED" value="69"/>
- <value name="R32G32B32_USCALED" value="70"/>
- <value name="R32G32B32_SFIXED" value="80"/>
- <value name="R16G16B16A16_UNORM" value="128"/>
- <value name="R16G16B16A16_SNORM" value="129"/>
- <value name="R16G16B16A16_SINT" value="130"/>
- <value name="R16G16B16A16_UINT" value="131"/>
- <value name="R16G16B16A16_FLOAT" value="132"/>
- <value name="R32G32_FLOAT" value="133"/>
- <value name="R32G32_SINT" value="134"/>
- <value name="R32G32_UINT" value="135"/>
- <value name="R32_FLOAT_X8X24_TYPELESS" value="136"/>
- <value name="X32_TYPELESS_G8X24_UINT" value="137"/>
- <value name="L32A32_FLOAT" value="138"/>
- <value name="R32G32_UNORM" value="139"/>
- <value name="R32G32_SNORM" value="140"/>
- <value name="R64_FLOAT" value="141"/>
- <value name="R16G16B16X16_UNORM" value="142"/>
- <value name="R16G16B16X16_FLOAT" value="143"/>
- <value name="A32X32_FLOAT" value="144"/>
- <value name="L32X32_FLOAT" value="145"/>
- <value name="I32X32_FLOAT" value="146"/>
- <value name="R16G16B16A16_SSCALED" value="147"/>
- <value name="R16G16B16A16_USCALED" value="148"/>
- <value name="R32G32_SSCALED" value="149"/>
- <value name="R32G32_USCALED" value="150"/>
- <value name="R32G32_SFIXED" value="160"/>
- <value name="R64_PASSTHRU" value="161"/>
- <value name="B8G8R8A8_UNORM" value="192"/>
- <value name="B8G8R8A8_UNORM_SRGB" value="193"/>
- <value name="R10G10B10A2_UNORM" value="194"/>
- <value name="R10G10B10A2_UNORM_SRGB" value="195"/>
- <value name="R10G10B10A2_UINT" value="196"/>
- <value name="R10G10B10_SNORM_A2_UNORM" value="197"/>
- <value name="R8G8B8A8_UNORM" value="199"/>
- <value name="R8G8B8A8_UNORM_SRGB" value="200"/>
- <value name="R8G8B8A8_SNORM" value="201"/>
- <value name="R8G8B8A8_SINT" value="202"/>
- <value name="R8G8B8A8_UINT" value="203"/>
- <value name="R16G16_UNORM" value="204"/>
- <value name="R16G16_SNORM" value="205"/>
- <value name="R16G16_SINT" value="206"/>
- <value name="R16G16_UINT" value="207"/>
- <value name="R16G16_FLOAT" value="208"/>
- <value name="B10G10R10A2_UNORM" value="209"/>
- <value name="B10G10R10A2_UNORM_SRGB" value="210"/>
- <value name="R11G11B10_FLOAT" value="211"/>
- <value name="R32_SINT" value="214"/>
- <value name="R32_UINT" value="215"/>
- <value name="R32_FLOAT" value="216"/>
- <value name="R24_UNORM_X8_TYPELESS" value="217"/>
- <value name="X24_TYPELESS_G8_UINT" value="218"/>
- <value name="L32_UNORM" value="221"/>
- <value name="A32_UNORM" value="222"/>
- <value name="L16A16_UNORM" value="223"/>
- <value name="I24X8_UNORM" value="224"/>
- <value name="L24X8_UNORM" value="225"/>
- <value name="A24X8_UNORM" value="226"/>
- <value name="I32_FLOAT" value="227"/>
- <value name="L32_FLOAT" value="228"/>
- <value name="A32_FLOAT" value="229"/>
- <value name="X8B8_UNORM_G8R8_SNORM" value="230"/>
- <value name="A8X8_UNORM_G8R8_SNORM" value="231"/>
- <value name="B8X8_UNORM_G8R8_SNORM" value="232"/>
- <value name="B8G8R8X8_UNORM" value="233"/>
- <value name="B8G8R8X8_UNORM_SRGB" value="234"/>
- <value name="R8G8B8X8_UNORM" value="235"/>
- <value name="R8G8B8X8_UNORM_SRGB" value="236"/>
- <value name="R9G9B9E5_SHAREDEXP" value="237"/>
- <value name="B10G10R10X2_UNORM" value="238"/>
- <value name="L16A16_FLOAT" value="240"/>
- <value name="R32_UNORM" value="241"/>
- <value name="R32_SNORM" value="242"/>
- <value name="R10G10B10X2_USCALED" value="243"/>
- <value name="R8G8B8A8_SSCALED" value="244"/>
- <value name="R8G8B8A8_USCALED" value="245"/>
- <value name="R16G16_SSCALED" value="246"/>
- <value name="R16G16_USCALED" value="247"/>
- <value name="R32_SSCALED" value="248"/>
- <value name="R32_USCALED" value="249"/>
- <value name="B5G6R5_UNORM" value="256"/>
- <value name="B5G6R5_UNORM_SRGB" value="257"/>
- <value name="B5G5R5A1_UNORM" value="258"/>
- <value name="B5G5R5A1_UNORM_SRGB" value="259"/>
- <value name="B4G4R4A4_UNORM" value="260"/>
- <value name="B4G4R4A4_UNORM_SRGB" value="261"/>
- <value name="R8G8_UNORM" value="262"/>
- <value name="R8G8_SNORM" value="263"/>
- <value name="R8G8_SINT" value="264"/>
- <value name="R8G8_UINT" value="265"/>
- <value name="R16_UNORM" value="266"/>
- <value name="R16_SNORM" value="267"/>
- <value name="R16_SINT" value="268"/>
- <value name="R16_UINT" value="269"/>
- <value name="R16_FLOAT" value="270"/>
- <value name="A8P8_UNORM_PALETTE0" value="271"/>
- <value name="A8P8_UNORM_PALETTE1" value="272"/>
- <value name="I16_UNORM" value="273"/>
- <value name="L16_UNORM" value="274"/>
- <value name="A16_UNORM" value="275"/>
- <value name="L8A8_UNORM" value="276"/>
- <value name="I16_FLOAT" value="277"/>
- <value name="L16_FLOAT" value="278"/>
- <value name="A16_FLOAT" value="279"/>
- <value name="L8A8_UNORM_SRGB" value="280"/>
- <value name="R5G5_SNORM_B6_UNORM" value="281"/>
- <value name="B5G5R5X1_UNORM" value="282"/>
- <value name="B5G5R5X1_UNORM_SRGB" value="283"/>
- <value name="R8G8_SSCALED" value="284"/>
- <value name="R8G8_USCALED" value="285"/>
- <value name="R16_SSCALED" value="286"/>
- <value name="R16_USCALED" value="287"/>
- <value name="P8A8_UNORM_PALETTE0" value="290"/>
- <value name="P8A8_UNORM_PALETTE1" value="291"/>
- <value name="A1B5G5R5_UNORM" value="292"/>
- <value name="A4B4G4R4_UNORM" value="293"/>
- <value name="L8A8_UINT" value="294"/>
- <value name="L8A8_SINT" value="295"/>
- <value name="R8_UNORM" value="320"/>
- <value name="R8_SNORM" value="321"/>
- <value name="R8_SINT" value="322"/>
- <value name="R8_UINT" value="323"/>
- <value name="A8_UNORM" value="324"/>
- <value name="I8_UNORM" value="325"/>
- <value name="L8_UNORM" value="326"/>
- <value name="P4A4_UNORM_PALETTE0" value="327"/>
- <value name="A4P4_UNORM_PALETTE0" value="328"/>
- <value name="R8_SSCALED" value="329"/>
- <value name="R8_USCALED" value="330"/>
- <value name="P8_UNORM_PALETTE0" value="331"/>
- <value name="L8_UNORM_SRGB" value="332"/>
- <value name="P8_UNORM_PALETTE1" value="333"/>
- <value name="P4A4_UNORM_PALETTE1" value="334"/>
- <value name="A4P4_UNORM_PALETTE1" value="335"/>
- <value name="Y8_UNORM" value="336"/>
- <value name="L8_UINT" value="338"/>
- <value name="L8_SINT" value="339"/>
- <value name="I8_UINT" value="340"/>
- <value name="I8_SINT" value="341"/>
- <value name="DXT1_RGB_SRGB" value="384"/>
- <value name="R1_UNORM" value="385"/>
- <value name="YCRCB_NORMAL" value="386"/>
- <value name="YCRCB_SWAPUVY" value="387"/>
- <value name="P2_UNORM_PALETTE0" value="388"/>
- <value name="P2_UNORM_PALETTE1" value="389"/>
- <value name="BC1_UNORM" value="390"/>
- <value name="BC2_UNORM" value="391"/>
- <value name="BC3_UNORM" value="392"/>
- <value name="BC4_UNORM" value="393"/>
- <value name="BC5_UNORM" value="394"/>
- <value name="BC1_UNORM_SRGB" value="395"/>
- <value name="BC2_UNORM_SRGB" value="396"/>
- <value name="BC3_UNORM_SRGB" value="397"/>
- <value name="MONO8" value="398"/>
- <value name="YCRCB_SWAPUV" value="399"/>
- <value name="YCRCB_SWAPY" value="400"/>
- <value name="DXT1_RGB" value="401"/>
- <value name="FXT1" value="402"/>
- <value name="R8G8B8_UNORM" value="403"/>
- <value name="R8G8B8_SNORM" value="404"/>
- <value name="R8G8B8_SSCALED" value="405"/>
- <value name="R8G8B8_USCALED" value="406"/>
- <value name="R64G64B64A64_FLOAT" value="407"/>
- <value name="R64G64B64_FLOAT" value="408"/>
- <value name="BC4_SNORM" value="409"/>
- <value name="BC5_SNORM" value="410"/>
- <value name="R16G16B16_FLOAT" value="411"/>
- <value name="R16G16B16_UNORM" value="412"/>
- <value name="R16G16B16_SNORM" value="413"/>
- <value name="R16G16B16_SSCALED" value="414"/>
- <value name="R16G16B16_USCALED" value="415"/>
- <value name="BC6H_SF16" value="417"/>
- <value name="BC7_UNORM" value="418"/>
- <value name="BC7_UNORM_SRGB" value="419"/>
- <value name="BC6H_UF16" value="420"/>
- <value name="PLANAR_420_8" value="421"/>
- <value name="R8G8B8_UNORM_SRGB" value="424"/>
- <value name="ETC1_RGB8" value="425"/>
- <value name="ETC2_RGB8" value="426"/>
- <value name="EAC_R11" value="427"/>
- <value name="EAC_RG11" value="428"/>
- <value name="EAC_SIGNED_R11" value="429"/>
- <value name="EAC_SIGNED_RG11" value="430"/>
- <value name="ETC2_SRGB8" value="431"/>
- <value name="R16G16B16_UINT" value="432"/>
- <value name="R16G16B16_SINT" value="433"/>
- <value name="R32_SFIXED" value="434"/>
- <value name="R10G10B10A2_SNORM" value="435"/>
- <value name="R10G10B10A2_USCALED" value="436"/>
- <value name="R10G10B10A2_SSCALED" value="437"/>
- <value name="R10G10B10A2_SINT" value="438"/>
- <value name="B10G10R10A2_SNORM" value="439"/>
- <value name="B10G10R10A2_USCALED" value="440"/>
- <value name="B10G10R10A2_SSCALED" value="441"/>
- <value name="B10G10R10A2_UINT" value="442"/>
- <value name="B10G10R10A2_SINT" value="443"/>
- <value name="R64G64B64A64_PASSTHRU" value="444"/>
- <value name="R64G64B64_PASSTHRU" value="445"/>
- <value name="ETC2_RGB8_PTA" value="448"/>
- <value name="ETC2_SRGB8_PTA" value="449"/>
- <value name="ETC2_EAC_RGBA8" value="450"/>
- <value name="ETC2_EAC_SRGB8_A8" value="451"/>
- <value name="R8G8B8_UINT" value="456"/>
- <value name="R8G8B8_SINT" value="457"/>
- <value name="RAW" value="511"/>
- </enum>
+ <struct name="BINDING_TABLE_STATE" length="1">
+ <field name="Surface State Pointer" start="6" end="31" type="offset"/>
+ </struct>
+
+ <struct name="RENDER_SURFACE_STATE" length="16">
+ <field name="Surface Type" start="29" end="31" type="uint">
+ <value name="SURFTYPE_1D" value="0"/>
+ <value name="SURFTYPE_2D" value="1"/>
+ <value name="SURFTYPE_3D" value="2"/>
+ <value name="SURFTYPE_CUBE" value="3"/>
+ <value name="SURFTYPE_BUFFER" value="4"/>
+ <value name="SURFTYPE_STRBUF" value="5"/>
+ <value name="SURFTYPE_NULL" value="7"/>
+ </field>
+ <field name="Surface Array" start="28" end="28" type="bool"/>
+ <field name="Surface Format" start="18" end="26" type="uint"/>
+ <field name="Surface Vertical Alignment" start="16" end="17" type="uint">
+ <value name="VALIGN 4" value="1"/>
+ <value name="VALIGN 8" value="2"/>
+ <value name="VALIGN 16" value="3"/>
+ </field>
+ <field name="Surface Horizontal Alignment" start="14" end="15" type="uint">
+ <value name="HALIGN 4" value="1"/>
+ <value name="HALIGN 8" value="2"/>
+ <value name="HALIGN 16" value="3"/>
+ </field>
+ <field name="Tile Mode" start="12" end="13" type="uint">
+ <value name="LINEAR" value="0"/>
+ <value name="WMAJOR" value="1"/>
+ <value name="XMAJOR" value="2"/>
+ <value name="YMAJOR" value="3"/>
+ </field>
+ <field name="Vertical Line Stride" start="11" end="11" type="uint"/>
+ <field name="Vertical Line Stride Offset" start="10" end="10" type="uint"/>
+ <field name="Sampler L2 Bypass Mode Disable" start="9" end="9" type="bool"/>
+ <field name="Render Cache Read Write Mode" start="8" end="8" type="uint">
+ <value name="Write-Only Cache" value="0"/>
+ <value name="Read-Write Cache" value="1"/>
+ </field>
+ <field name="Media Boundary Pixel Mode" start="6" end="7" type="uint">
+ <value name="NORMAL_MODE" value="0"/>
+ <value name="PROGRESSIVE_FRAME" value="2"/>
+ <value name="INTERLACED_FRAME" value="3"/>
+ </field>
+ <field name="Cube Face Enable - Positive Z" start="0" end="0" type="bool"/>
+ <field name="Cube Face Enable - Negative Z" start="1" end="1" type="bool"/>
+ <field name="Cube Face Enable - Positive Y" start="2" end="2" type="bool"/>
+ <field name="Cube Face Enable - Negative Y" start="3" end="3" type="bool"/>
+ <field name="Cube Face Enable - Positive X" start="4" end="4" type="bool"/>
+ <field name="Cube Face Enable - Negative X" start="5" end="5" type="bool"/>
+ <field name="Memory Object Control State" start="56" end="62" type="MEMORY_OBJECT_CONTROL_STATE"/>
+ <field name="MOCS" start="56" end="62" type="uint"/>
+ <field name="Base Mip Level" start="51" end="55" type="u4.1"/>
+ <field name="Surface QPitch" start="32" end="46" type="uint"/>
+ <field name="Height" start="80" end="93" type="uint"/>
+ <field name="Width" start="64" end="77" type="uint"/>
+ <field name="Depth" start="117" end="127" type="uint"/>
+ <field name="Surface Pitch" start="96" end="113" type="uint"/>
+ <field name="Render Target And Sample Unorm Rotation" start="157" end="158" type="uint">
+ <value name="0DEG" value="0"/>
+ <value name="90DEG" value="1"/>
+ <value name="270DEG" value="3"/>
+ </field>
+ <field name="Minimum Array Element" start="146" end="156" type="uint"/>
+ <field name="Render Target View Extent" start="135" end="145" type="uint"/>
+ <field name="Multisampled Surface Storage Format" start="134" end="134" type="uint">
+ <value name="MSFMT_MSS" value="0"/>
+ <value name="MSFMT_DEPTH_STENCIL" value="1"/>
+ </field>
+ <field name="Number of Multisamples" start="131" end="133" type="uint">
+ <value name="MULTISAMPLECOUNT_1" value="0"/>
+ <value name="MULTISAMPLECOUNT_2" value="1"/>
+ <value name="MULTISAMPLECOUNT_4" value="2"/>
+ <value name="MULTISAMPLECOUNT_8" value="3"/>
+ </field>
+ <field name="Multisample Position Palette Index" start="128" end="130" type="uint"/>
+ <field name="X Offset" start="185" end="191" type="uint"/>
+ <field name="Y Offset" start="181" end="183" type="uint"/>
+ <field name="EWA Disable For Cube" start="180" end="180" type="bool"/>
+ <field name="Coherency Type" start="174" end="174" type="uint">
+ <value name="GPU coherent" value="0"/>
+ <value name="IA coherent" value="1"/>
+ </field>
+ <field name="Surface Min LOD" start="164" end="167" type="uint"/>
+ <field name="MIP Count / LOD" start="160" end="163" type="uint"/>
+ <field name="Auxiliary Surface QPitch" start="208" end="222" type="uint"/>
+ <field name="Auxiliary Surface Pitch" start="195" end="203" type="uint"/>
+ <field name="Auxiliary Surface Mode" start="192" end="194" type="uint">
+ <value name="AUX_NONE" value="0"/>
+ <value name="AUX_MCS" value="1"/>
+ <value name="AUX_APPEND" value="2"/>
+ <value name="AUX_HIZ" value="3"/>
+ </field>
+ <field name="Separate UV Plane Enable" start="223" end="223" type="bool"/>
+ <field name="X Offset for U or UV Plane" start="208" end="221" type="uint"/>
+ <field name="Y Offset for U or UV Plane" start="192" end="205" type="uint"/>
+ <field name="Red Clear Color" start="255" end="255" type="uint"/>
+ <field name="Green Clear Color" start="254" end="254" type="uint"/>
+ <field name="Blue Clear Color" start="253" end="253" type="uint"/>
+ <field name="Alpha Clear Color" start="252" end="252" type="uint"/>
+ <field name="Shader Channel Select Red" start="249" end="251" type="uint"/>
+ <field name="Shader Channel Select Green" start="246" end="248" type="uint"/>
+ <field name="Shader Channel Select Blue" start="243" end="245" type="uint"/>
+ <field name="Shader Channel Select Alpha" start="240" end="242" type="uint"/>
+ <field name="Resource Min LOD" start="224" end="235" type="u4.8"/>
+ <field name="Surface Base Address" start="256" end="319" type="address"/>
+ <field name="X Offset for V Plane" start="368" end="381" type="uint"/>
+ <field name="Y Offset for V Plane" start="352" end="365" type="uint"/>
+ <field name="Auxiliary Table Index for Media Compressed Surface" start="341" end="351" type="uint"/>
+ <field name="Auxiliary Surface Base Address" start="332" end="383" type="address"/>
+ </struct>
- <enum name="Shader Channel Select" prefix="SCS">
- <value name="ZERO" value="0"/>
- <value name="ONE" value="1"/>
- <value name="RED" value="4"/>
- <value name="GREEN" value="5"/>
- <value name="BLUE" value="6"/>
- <value name="ALPHA" value="7"/>
- </enum>
+ <struct name="FILTER_COEFFICIENT" length="1">
+ <field name="Filter Coefficient" start="0" end="7" type="s1.6"/>
+ </struct>
- <enum name="Clear Color">
- <value name="CC_ZERO" value="0"/>
- <value name="CC_ONE" value="1"/>
- </enum>
+ <struct name="SAMPLER_BORDER_COLOR_STATE" length="4">
+ <field name="Border Color Float Red" start="0" end="31" type="float"/>
+ <field name="Border Color Float Green" start="32" end="63" type="float"/>
+ <field name="Border Color Float Blue" start="64" end="95" type="float"/>
+ <field name="Border Color Float Alpha" start="96" end="127" type="float"/>
- <enum name="Texture Coordinate Mode" prefix="TCM">
- <value name="WRAP" value="0"/>
- <value name="MIRROR" value="1"/>
- <value name="CLAMP" value="2"/>
- <value name="CUBE" value="3"/>
- <value name="CLAMP_BORDER" value="4"/>
- <value name="MIRROR_ONCE" value="5"/>
- <value name="HALF_BORDER" value="6"/>
- </enum>
+ <field name="Border Color 32bit Red" start="0" end="31" type="uint"/>
+ <field name="Border Color 32bit Green" start="32" end="63" type="uint"/>
+ <field name="Border Color 32bit Blue" start="64" end="95" type="uint"/>
+ <field name="Border Color 32bit Alpha" start="96" end="127" type="uint"/>
+ </struct>
+
+ <struct name="SAMPLER_STATE" length="4">
+ <field name="Sampler Disable" start="31" end="31" type="bool"/>
+ <field name="Texture Border Color Mode" start="29" end="29" type="uint">
+ <value name="DX10/OGL" value="0"/>
+ <value name="DX9" value="1"/>
+ </field>
+ <field name="LOD PreClamp Mode" start="27" end="28" type="uint" prefix="CLAMP_MODE">
+ <value name="NONE" value="0"/>
+ <value name="OGL" value="2"/>
+ </field>
+ <field name="Base Mip Level" start="22" end="26" type="u4.1"/>
+ <field name="Mip Mode Filter" start="20" end="21" type="uint" prefix="MIPFILTER">
+ <value name="NONE" value="0"/>
+ <value name="NEAREST" value="1"/>
+ <value name="LINEAR" value="3"/>
+ </field>
+ <field name="Mag Mode Filter" start="17" end="19" type="uint" prefix="MAPFILTER">
+ <value name="NEAREST" value="0"/>
+ <value name="LINEAR" value="1"/>
+ <value name="ANISOTROPIC" value="2"/>
+ <value name="MONO" value="6"/>
+ </field>
+ <field name="Min Mode Filter" start="14" end="16" type="uint" prefix="MAPFILTER">
+ <value name="NEAREST" value="0"/>
+ <value name="LINEAR" value="1"/>
+ <value name="ANISOTROPIC" value="2"/>
+ <value name="MONO" value="6"/>
+ </field>
+ <field name="Texture LOD Bias" start="1" end="13" type="s4.8"/>
+ <field name="Anisotropic Algorithm" start="0" end="0" type="uint">
+ <value name="LEGACY" value="0"/>
+ <value name="EWA Approximation" value="1"/>
+ </field>
+ <field name="Min LOD" start="52" end="63" type="u4.8"/>
+ <field name="Max LOD" start="40" end="51" type="u4.8"/>
+ <field name="ChromaKey Enable" start="39" end="39" type="bool"/>
+ <field name="ChromaKey Index" start="37" end="38" type="uint"/>
+ <field name="ChromaKey Mode" start="36" end="36" type="uint">
+ <value name="KEYFILTER_KILL_ON_ANY_MATCH" value="0"/>
+ <value name="KEYFILTER_REPLACE_BLACK" value="1"/>
+ </field>
+ <field name="Shadow Function" start="33" end="35" type="uint">
+ <value name="PREFILTEROP ALWAYS" value="0"/>
+ <value name="PREFILTEROP NEVER" value="1"/>
+ <value name="PREFILTEROP LESS" value="2"/>
+ <value name="PREFILTEROP EQUAL" value="3"/>
+ <value name="PREFILTEROP LEQUAL" value="4"/>
+ <value name="PREFILTEROP GREATER" value="5"/>
+ <value name="PREFILTEROP NOTEQUAL" value="6"/>
+ <value name="PREFILTEROP GEQUAL" value="7"/>
+ </field>
+ <field name="Cube Surface Control Mode" start="32" end="32" type="uint">
+ <value name="PROGRAMMED" value="0"/>
+ <value name="OVERRIDE" value="1"/>
+ </field>
+ <field name="Border Color Pointer" start="70" end="87" type="offset"/>
+ <field name="LOD Clamp Magnification Mode" start="64" end="64" type="uint">
+ <value name="MIPNONE" value="0"/>
+ <value name="MIPFILTER" value="1"/>
+ </field>
+ <field name="Maximum Anisotropy" start="115" end="117" type="uint">
+ <value name="RATIO 2:1" value="0"/>
+ <value name="RATIO 4:1" value="1"/>
+ <value name="RATIO 6:1" value="2"/>
+ <value name="RATIO 8:1" value="3"/>
+ <value name="RATIO 10:1" value="4"/>
+ <value name="RATIO 12:1" value="5"/>
+ <value name="RATIO 14:1" value="6"/>
+ <value name="RATIO 16:1" value="7"/>
+ </field>
+ <field name="R Address Min Filter Rounding Enable" start="109" end="109" type="bool"/>
+ <field name="R Address Mag Filter Rounding Enable" start="110" end="110" type="bool"/>
+ <field name="V Address Min Filter Rounding Enable" start="111" end="111" type="bool"/>
+ <field name="V Address Mag Filter Rounding Enable" start="112" end="112" type="bool"/>
+ <field name="U Address Min Filter Rounding Enable" start="113" end="113" type="bool"/>
+ <field name="U Address Mag Filter Rounding Enable" start="114" end="114" type="bool"/>
+ <field name="Trilinear Filter Quality" start="107" end="108" type="uint">
+ <value name="FULL" value="0"/>
+ <value name="HIGH" value="1"/>
+ <value name="MED" value="2"/>
+ <value name="LOW" value="3"/>
+ </field>
+ <field name="Non-normalized Coordinate Enable" start="106" end="106" type="bool"/>
+ <field name="TCX Address Control Mode" start="102" end="104" type="uint"/>
+ <field name="TCY Address Control Mode" start="99" end="101" type="uint"/>
+ <field name="TCZ Address Control Mode" start="96" end="98" type="uint"/>
+ </struct>
+
+ <struct name="SAMPLER_STATE_8X8_AVS_COEFFICIENTS" length="8">
+ <field name="Table 0Y Filter Coefficient[n,1]" start="24" end="31" type="s1.6"/>
+ <field name="Table 0X Filter Coefficient[n,1]" start="16" end="23" type="s1.6"/>
+ <field name="Table 0Y Filter Coefficient[n,0]" start="8" end="15" type="s1.6"/>
+ <field name="Table 0X Filter Coefficient[n,0]" start="0" end="7" type="s1.6"/>
+ <field name="Table 0Y Filter Coefficient[n,3]" start="56" end="63" type="s1.6"/>
+ <field name="Table 0X Filter Coefficient[n,3]" start="48" end="55" type="s1.6"/>
+ <field name="Table 0Y Filter Coefficient[n,2]" start="40" end="47" type="s1.6"/>
+ <field name="Table 0X Filter Coefficient[n,2]" start="32" end="39" type="s1.6"/>
+ <field name="Table 0Y Filter Coefficient[n,5]" start="88" end="95" type="s1.6"/>
+ <field name="Table 0X Filter Coefficient[n,5]" start="80" end="87" type="s1.6"/>
+ <field name="Table 0Y Filter Coefficient[n,4]" start="72" end="79" type="s1.6"/>
+ <field name="Table 0X Filter Coefficient[n,4]" start="64" end="71" type="s1.6"/>
+ <field name="Table 0Y Filter Coefficient[n,7]" start="120" end="127" type="s1.6"/>
+ <field name="Table 0X Filter Coefficient[n,7]" start="112" end="119" type="s1.6"/>
+ <field name="Table 0Y Filter Coefficient[n,6]" start="104" end="111" type="s1.6"/>
+ <field name="Table 0X Filter Coefficient[n,6]" start="96" end="103" type="s1.6"/>
+ <field name="Table 1X Filter Coefficient[n,3]" start="152" end="159" type="s1.6"/>
+ <field name="Table 1X Filter Coefficient[n,2]" start="144" end="151" type="s1.6"/>
+ <field name="Table 1X Filter Coefficient[n,5]" start="168" end="175" type="s1.6"/>
+ <field name="Table 1X Filter Coefficient[n,4]" start="160" end="167" type="s1.6"/>
+ <field name="Table 1Y Filter Coefficient[n,3]" start="216" end="223" type="s1.6"/>
+ <field name="Table 1Y Filter Coefficient[n,2]" start="208" end="215" type="s1.6"/>
+ <field name="Table 1Y Filter Coefficient[n,5]" start="232" end="239" type="s1.6"/>
+ <field name="Table 1Y Filter Coefficient[n,4]" start="224" end="231" type="s1.6"/>
+ </struct>
<instruction name="3DPRIMITIVE" bias="2" length="7">
<field name="Command Type" start="29" end="31" type="uint" default="3"/>
<genxml name="SKL" gen="9">
- <struct name="3DSTATE_CONSTANT_BODY" length="10">
- <field name="Constant Buffer 1 Read Length" start="16" end="31" type="uint"/>
- <field name="Constant Buffer 0 Read Length" start="0" end="15" type="uint"/>
- <field name="Constant Buffer 3 Read Length" start="48" end="63" type="uint"/>
- <field name="Constant Buffer 2 Read Length" start="32" end="47" type="uint"/>
- <field name="Pointer To Constant Buffer 0" start="69" end="127" type="address"/>
- <field name="Pointer To Constant Buffer 1" start="133" end="191" type="address"/>
- <field name="Pointer To Constant Buffer 2" start="197" end="255" type="address"/>
- <field name="Pointer To Constant Buffer 3" start="261" end="319" type="address"/>
- </struct>
+ <enum name="3D_Prim_Topo_Type" prefix="3DPRIM">
+ <value name="POINTLIST" value="1"/>
+ <value name="LINELIST" value="2"/>
+ <value name="LINESTRIP" value="3"/>
+ <value name="TRILIST" value="4"/>
+ <value name="TRISTRIP" value="5"/>
+ <value name="TRIFAN" value="6"/>
+ <value name="QUADLIST" value="7"/>
+ <value name="QUADSTRIP" value="8"/>
+ <value name="LINELIST_ADJ" value="9"/>
+ <value name="LINESTRIP_ADJ" value="10"/>
+ <value name="TRILIST_ADJ" value="11"/>
+ <value name="TRISTRIP_ADJ" value="12"/>
+ <value name="TRISTRIP_REVERSE" value="13"/>
+ <value name="POLYGON" value="14"/>
+ <value name="RECTLIST" value="15"/>
+ <value name="LINELOOP" value="16"/>
+ <value name="POINTLIST _BF" value="17"/>
+ <value name="LINESTRIP_CONT" value="18"/>
+ <value name="LINESTRIP_BF" value="19"/>
+ <value name="LINESTRIP_CONT_BF" value="20"/>
+ <value name="TRIFAN_NOSTIPPLE" value="22"/>
+ <value name="PATCHLIST_1" value="32"/>
+ <value name="PATCHLIST_2" value="33"/>
+ <value name="PATCHLIST_3" value="34"/>
+ <value name="PATCHLIST_4" value="35"/>
+ <value name="PATCHLIST_5" value="36"/>
+ <value name="PATCHLIST_6" value="37"/>
+ <value name="PATCHLIST_7" value="38"/>
+ <value name="PATCHLIST_8" value="39"/>
+ <value name="PATCHLIST_9" value="40"/>
+ <value name="PATCHLIST_10" value="41"/>
+ <value name="PATCHLIST_11" value="42"/>
+ <value name="PATCHLIST_12" value="43"/>
+ <value name="PATCHLIST_13" value="44"/>
+ <value name="PATCHLIST_14" value="45"/>
+ <value name="PATCHLIST_15" value="46"/>
+ <value name="PATCHLIST_16" value="47"/>
+ <value name="PATCHLIST_17" value="48"/>
+ <value name="PATCHLIST_18" value="49"/>
+ <value name="PATCHLIST_19" value="50"/>
+ <value name="PATCHLIST_20" value="51"/>
+ <value name="PATCHLIST_21" value="52"/>
+ <value name="PATCHLIST_22" value="53"/>
+ <value name="PATCHLIST_23" value="54"/>
+ <value name="PATCHLIST_24" value="55"/>
+ <value name="PATCHLIST_25" value="56"/>
+ <value name="PATCHLIST_26" value="57"/>
+ <value name="PATCHLIST_27" value="58"/>
+ <value name="PATCHLIST_28" value="59"/>
+ <value name="PATCHLIST_29" value="60"/>
+ <value name="PATCHLIST_30" value="61"/>
+ <value name="PATCHLIST_31" value="62"/>
+ <value name="PATCHLIST_32" value="63"/>
+ </enum>
- <struct name="BINDING_TABLE_EDIT_ENTRY" length="1">
- <field name="Binding Table Index" start="16" end="23" type="uint"/>
- <field name="Surface State Pointer" start="0" end="15" type="offset"/>
- </struct>
+ <enum name="3D_Vertex_Component_Control" prefix="VFCOMP">
+ <value name="NOSTORE" value="0"/>
+ <value name="STORE_SRC" value="1"/>
+ <value name="STORE_0" value="2"/>
+ <value name="STORE_1_FP" value="3"/>
+ <value name="STORE_1_INT" value="4"/>
+ <value name="STORE_PID" value="7"/>
+ </enum>
- <struct name="GATHER_CONSTANT_ENTRY" length="1">
- <field name="Constant Buffer Offset" start="8" end="15" type="offset"/>
- <field name="Channel Mask" start="4" end="7" type="uint"/>
- <field name="Binding Table Index Offset" start="0" end="3" type="uint"/>
- </struct>
+ <enum name="COMPONENT_ENABLES" prefix="CE">
+ <value name="NONE" value="0"/>
+ <value name="X" value="1"/>
+ <value name="Y" value="2"/>
+ <value name="XY" value="3"/>
+ <value name="Z" value="4"/>
+ <value name="XZ" value="5"/>
+ <value name="YZ" value="6"/>
+ <value name="XYZ" value="7"/>
+ <value name="W" value="8"/>
+ <value name="XW" value="9"/>
+ <value name="YW" value="10"/>
+ <value name="XYW" value="11"/>
+ <value name="ZW" value="12"/>
+ <value name="XZW" value="13"/>
+ <value name="YZW" value="14"/>
+ <value name="XYZW" value="15"/>
+ </enum>
- <struct name="MEMORY_OBJECT_CONTROL_STATE" length="1">
- <field name="Index to MOCS Tables" start="1" end="6" type="uint"/>
- </struct>
+ <enum name="Attribute_Component_Format" prefix="ACF">
+ <value name="disabled" value="0"/>
+ <value name=".xy" value="1"/>
+ <value name=".xyz" value="2"/>
+ <value name=".xyzw" value="3"/>
+ </enum>
- <struct name="VERTEX_BUFFER_STATE" length="4">
- <field name="Vertex Buffer Index" start="26" end="31" type="uint"/>
- <field name="Memory Object Control State" start="16" end="22" type="MEMORY_OBJECT_CONTROL_STATE"/>
- <field name="Vertex Buffer MOCS" start="16" end="22" type="uint"/>
- <field name="Address Modify Enable" start="14" end="14" type="bool"/>
- <field name="Null Vertex Buffer" start="13" end="13" type="bool"/>
- <field name="Buffer Pitch" start="0" end="11" type="uint"/>
- <field name="Buffer Starting Address" start="32" end="95" type="address"/>
- <field name="Buffer Size" start="96" end="127" type="uint"/>
- </struct>
+ <enum name="WRAP_SHORTEST_ENABLE" prefix="WSE">
+ <value name="X" value="1"/>
+ <value name="Y" value="2"/>
+ <value name="XY" value="3"/>
+ <value name="Z" value="4"/>
+ <value name="XZ" value="5"/>
+ <value name="YZ" value="6"/>
+ <value name="XYZ" value="7"/>
+ <value name="W" value="8"/>
+ <value name="XW" value="9"/>
+ <value name="YW" value="10"/>
+ <value name="XYW" value="11"/>
+ <value name="ZW" value="12"/>
+ <value name="XZW" value="13"/>
+ <value name="YZW" value="14"/>
+ <value name="XYZW" value="15"/>
+ </enum>
- <struct name="VERTEX_ELEMENT_STATE" length="2">
- <field name="Vertex Buffer Index" start="26" end="31" type="uint"/>
- <field name="Valid" start="25" end="25" type="bool"/>
- <field name="Source Element Format" start="16" end="24" type="uint"/>
- <field name="Edge Flag Enable" start="15" end="15" type="bool"/>
- <field name="Source Element Offset" start="0" end="11" type="uint"/>
- <field name="Component 0 Control" start="60" end="62" type="uint"/>
- <field name="Component 1 Control" start="56" end="58" type="uint"/>
- <field name="Component 2 Control" start="52" end="54" type="uint"/>
- <field name="Component 3 Control" start="48" end="50" type="uint"/>
- </struct>
+ <enum name="3D_Stencil_Operation" prefix="STENCILOP">
+ <value name="KEEP" value="0"/>
+ <value name="ZERO" value="1"/>
+ <value name="REPLACE" value="2"/>
+ <value name="INCRSAT" value="3"/>
+ <value name="DECRSAT" value="4"/>
+ <value name="INCR" value="5"/>
+ <value name="DECR" value="6"/>
+ <value name="INVERT" value="7"/>
+ </enum>
- <struct name="SO_DECL" length="1">
- <field name="Output Buffer Slot" start="12" end="13" type="uint"/>
- <field name="Hole Flag" start="11" end="11" type="uint"/>
- <field name="Register Index" start="4" end="9" type="uint"/>
- <field name="Component Mask" start="0" end="3" type="uint" default="0"/>
- </struct>
+ <enum name="3D_Color_Buffer_Blend_Factor" prefix="BLENDFACTOR">
+ <value name="ONE" value="1"/>
+ <value name="SRC_COLOR" value="2"/>
+ <value name="SRC_ALPHA" value="3"/>
+ <value name="DST_ALPHA" value="4"/>
+ <value name="DST_COLOR" value="5"/>
+ <value name="SRC_ALPHA_SATURATE" value="6"/>
+ <value name="CONST_COLOR" value="7"/>
+ <value name="CONST_ALPHA" value="8"/>
+ <value name="SRC1_COLOR" value="9"/>
+ <value name="SRC1_ALPHA" value="10"/>
+ <value name="ZERO" value="17"/>
+ <value name="INV_SRC_COLOR" value="18"/>
+ <value name="INV_SRC_ALPHA" value="19"/>
+ <value name="INV_DST_ALPHA" value="20"/>
+ <value name="INV_DST_COLOR" value="21"/>
+ <value name="INV_CONST_COLOR" value="23"/>
+ <value name="INV_CONST_ALPHA" value="24"/>
+ <value name="INV_SRC1_COLOR" value="25"/>
+ <value name="INV_SRC1_ALPHA" value="26"/>
+ </enum>
- <struct name="SO_DECL_ENTRY" length="2">
- <field name="Stream 3 Decl" start="48" end="63" type="SO_DECL"/>
- <field name="Stream 2 Decl" start="32" end="47" type="SO_DECL"/>
- <field name="Stream 1 Decl" start="16" end="31" type="SO_DECL"/>
- <field name="Stream 0 Decl" start="0" end="15" type="SO_DECL"/>
- </struct>
+ <enum name="3D_Color_Buffer_Blend_Function" prefix="BLENDFUNCTION">
+ <value name="ADD" value="0"/>
+ <value name="SUBTRACT" value="1"/>
+ <value name="REVERSE_SUBTRACT" value="2"/>
+ <value name="MIN" value="3"/>
+ <value name="MAX" value="4"/>
+ </enum>
- <struct name="SF_OUTPUT_ATTRIBUTE_DETAIL" length="1">
- <field name="Component Override W" start="15" end="15" type="bool"/>
- <field name="Component Override Z" start="14" end="14" type="bool"/>
- <field name="Component Override Y" start="13" end="13" type="bool"/>
- <field name="Component Override X" start="12" end="12" type="bool"/>
- <field name="Swizzle Control Mode" start="11" end="11" type="uint"/>
- <field name="Constant Source" start="9" end="10" type="uint">
- <value name="CONST_0000" value="0"/>
- <value name="CONST_0001_FLOAT" value="1"/>
- <value name="CONST_1111_FLOAT" value="2"/>
- <value name="PRIM_ID" value="3"/>
- </field>
- <field name="Swizzle Select" start="6" end="7" type="uint">
- <value name="INPUTATTR" value="0"/>
- <value name="INPUTATTR_FACING" value="1"/>
- <value name="INPUTATTR_W" value="2"/>
- <value name="INPUTATTR_FACING_W" value="3"/>
- </field>
- <field name="Source Attribute" start="0" end="4" type="uint"/>
- </struct>
+ <enum name="3D_Compare_Function" prefix="COMPAREFUNCTION">
+ <value name="ALWAYS" value="0"/>
+ <value name="NEVER" value="1"/>
+ <value name="LESS" value="2"/>
+ <value name="EQUAL" value="3"/>
+ <value name="LEQUAL" value="4"/>
+ <value name="GREATER" value="5"/>
+ <value name="NOTEQUAL" value="6"/>
+ <value name="GEQUAL" value="7"/>
+ </enum>
- <struct name="SCISSOR_RECT" length="2">
- <field name="Scissor Rectangle Y Min" start="16" end="31" type="uint"/>
- <field name="Scissor Rectangle X Min" start="0" end="15" type="uint"/>
- <field name="Scissor Rectangle Y Max" start="48" end="63" type="uint"/>
- <field name="Scissor Rectangle X Max" start="32" end="47" type="uint"/>
- </struct>
+ <enum name="3D_Logic_Op_Function" prefix="LOGICOP">
+ <value name="CLEAR" value="0"/>
+ <value name="NOR" value="1"/>
+ <value name="AND_INVERTED" value="2"/>
+ <value name="COPY_INVERTED" value="3"/>
+ <value name="AND_REVERSE" value="4"/>
+ <value name="INVERT" value="5"/>
+ <value name="XOR" value="6"/>
+ <value name="NAND" value="7"/>
+ <value name="AND" value="8"/>
+ <value name="EQUIV" value="9"/>
+ <value name="NOOP" value="10"/>
+ <value name="OR_INVERTED" value="11"/>
+ <value name="COPY" value="12"/>
+ <value name="OR_REVERSE" value="13"/>
+ <value name="OR" value="14"/>
+ <value name="SET" value="15"/>
+ </enum>
- <struct name="SF_CLIP_VIEWPORT" length="16">
- <field name="Viewport Matrix Element m00" start="0" end="31" type="float"/>
- <field name="Viewport Matrix Element m11" start="32" end="63" type="float"/>
- <field name="Viewport Matrix Element m22" start="64" end="95" type="float"/>
- <field name="Viewport Matrix Element m30" start="96" end="127" type="float"/>
- <field name="Viewport Matrix Element m31" start="128" end="159" type="float"/>
- <field name="Viewport Matrix Element m32" start="160" end="191" type="float"/>
- <field name="X Min Clip Guardband" start="256" end="287" type="float"/>
- <field name="X Max Clip Guardband" start="288" end="319" type="float"/>
- <field name="Y Min Clip Guardband" start="320" end="351" type="float"/>
- <field name="Y Max Clip Guardband" start="352" end="383" type="float"/>
- <field name="X Min ViewPort" start="384" end="415" type="float"/>
- <field name="X Max ViewPort" start="416" end="447" type="float"/>
- <field name="Y Min ViewPort" start="448" end="479" type="float"/>
- <field name="Y Max ViewPort" start="480" end="511" type="float"/>
- </struct>
-
- <struct name="BLEND_STATE_ENTRY" length="2">
- <field name="Logic Op Enable" start="63" end="63" type="bool"/>
- <field name="Logic Op Function" start="59" end="62" type="uint"/>
- <field name="Pre-Blend Source Only Clamp Enable" start="36" end="36" type="bool"/>
- <field name="Color Clamp Range" start="34" end="35" type="uint">
- <value name="COLORCLAMP_UNORM" value="0"/>
- <value name="COLORCLAMP_SNORM" value="1"/>
- <value name="COLORCLAMP_RTFORMAT" value="2"/>
- </field>
- <field name="Pre-Blend Color Clamp Enable" start="33" end="33" type="bool"/>
- <field name="Post-Blend Color Clamp Enable" start="32" end="32" type="bool"/>
- <field name="Color Buffer Blend Enable" start="31" end="31" type="bool"/>
- <field name="Source Blend Factor" start="26" end="30" type="uint"/>
- <field name="Destination Blend Factor" start="21" end="25" type="uint"/>
- <field name="Color Blend Function" start="18" end="20" type="uint"/>
- <field name="Source Alpha Blend Factor" start="13" end="17" type="uint"/>
- <field name="Destination Alpha Blend Factor" start="8" end="12" type="uint"/>
- <field name="Alpha Blend Function" start="5" end="7" type="uint"/>
- <field name="Write Disable Alpha" start="3" end="3" type="bool"/>
- <field name="Write Disable Red" start="2" end="2" type="bool"/>
- <field name="Write Disable Green" start="1" end="1" type="bool"/>
- <field name="Write Disable Blue" start="0" end="0" type="bool"/>
- </struct>
-
- <struct name="BLEND_STATE" length="17">
- <field name="Alpha To Coverage Enable" start="31" end="31" type="bool"/>
- <field name="Independent Alpha Blend Enable" start="30" end="30" type="bool"/>
- <field name="Alpha To One Enable" start="29" end="29" type="bool"/>
- <field name="Alpha To Coverage Dither Enable" start="28" end="28" type="bool"/>
- <field name="Alpha Test Enable" start="27" end="27" type="bool"/>
- <field name="Alpha Test Function" start="24" end="26" type="uint"/>
- <field name="Color Dither Enable" start="23" end="23" type="bool"/>
- <field name="X Dither Offset" start="21" end="22" type="uint"/>
- <field name="Y Dither Offset" start="19" end="20" type="uint"/>
- <group count="8" start="32" size="64">
- <field name="Entry" start="0" end="63" type="BLEND_STATE_ENTRY"/>
- </group>
- </struct>
-
- <struct name="CC_VIEWPORT" length="2">
- <field name="Minimum Depth" start="0" end="31" type="float"/>
- <field name="Maximum Depth" start="32" end="63" type="float"/>
- </struct>
-
- <struct name="COLOR_CALC_STATE" length="6">
- <field name="Round Disable Function Disable" start="15" end="15" type="bool"/>
- <field name="Alpha Test Format" start="0" end="0" type="uint">
- <value name="ALPHATEST_UNORM8" value="0"/>
- <value name="ALPHATEST_FLOAT32" value="1"/>
- </field>
- <field name="Alpha Reference Value As UNORM8" start="32" end="63" type="uint"/>
- <field name="Alpha Reference Value As FLOAT32" start="32" end="63" type="float"/>
- <field name="Blend Constant Color Red" start="64" end="95" type="float"/>
- <field name="Blend Constant Color Green" start="96" end="127" type="float"/>
- <field name="Blend Constant Color Blue" start="128" end="159" type="float"/>
- <field name="Blend Constant Color Alpha" start="160" end="191" type="float"/>
- </struct>
-
- <struct name="EXECUTION_UNIT_EXTENDED_MESSAGE_DESCRIPTOR" length="1">
- <field name="Extended Message Length" start="6" end="9" type="uint"/>
- <field name="End Of Thread" start="5" end="5" type="uint">
- <value name="No Termination" value="0"/>
- <value name="EOT" value="1"/>
- </field>
- <field name="Target Function ID" start="0" end="3" type="uint"/>
- </struct>
-
- <struct name="INTERFACE_DESCRIPTOR_DATA" length="8">
- <field name="Kernel Start Pointer" start="6" end="31" type="offset"/>
- <field name="Kernel Start Pointer High" start="32" end="47" type="offset"/>
- <field name="Denorm Mode" start="83" end="83" type="uint">
- <value name="Ftz" value="0"/>
- <value name="SetByKernel" value="1"/>
- </field>
- <field name="Single Program Flow" start="82" end="82" type="bool"/>
- <field name="Thread Priority" start="81" end="81" type="uint">
- <value name="Normal Priority" value="0"/>
- <value name="High Priority" value="1"/>
- </field>
- <field name="Floating Point Mode" start="80" end="80" type="uint">
- <value name="IEEE-754" value="0"/>
- <value name="Alternate" value="1"/>
- </field>
- <field name="Illegal Opcode Exception Enable" start="77" end="77" type="bool"/>
- <field name="Mask Stack Exception Enable" start="75" end="75" type="bool"/>
- <field name="Software Exception Enable" start="71" end="71" type="bool"/>
- <field name="Sampler State Pointer" start="101" end="127" type="offset"/>
- <field name="Sampler Count" start="98" end="100" type="uint">
- <value name="No samplers used" value="0"/>
- <value name="Between 1 and 4 samplers used" value="1"/>
- <value name="Between 5 and 8 samplers used" value="2"/>
- <value name="Between 9 and 12 samplers used" value="3"/>
- <value name="Between 13 and 16 samplers used" value="4"/>
- </field>
- <field name="Binding Table Pointer" start="133" end="143" type="offset"/>
- <field name="Binding Table Entry Count" start="128" end="132" type="uint"/>
- <field name="Constant URB Entry Read Length" start="176" end="191" type="uint"/>
- <field name="Constant URB Entry Read Offset" start="160" end="175" type="uint"/>
- <field name="Rounding Mode" start="214" end="215" type="uint">
- <value name="RTNE" value="0"/>
- <value name="RU" value="1"/>
- <value name="RD" value="2"/>
- <value name="RTZ" value="3"/>
- </field>
- <field name="Barrier Enable" start="213" end="213" type="bool"/>
- <field name="Shared Local Memory Size" start="208" end="212" type="uint">
- <value name="Encodes 0K" value="0"/>
- <value name="Encodes 1K" value="1"/>
- <value name="Encodes 2K" value="2"/>
- <value name="Encodes 4K" value="3"/>
- <value name="Encodes 8K" value="4"/>
- <value name="Encodes 16K" value="5"/>
- <value name="Encodes 32K" value="6"/>
- <value name="Encodes 64K" value="7"/>
- </field>
- <field name="Global Barrier Enable" start="207" end="207" type="bool"/>
- <field name="Number of Threads in GPGPU Thread Group" start="192" end="201" type="uint"/>
- <field name="Cross-Thread Constant Data Read Length" start="224" end="231" type="uint"/>
- </struct>
-
- <struct name="ROUNDINGPRECISIONTABLE_3_BITS" length="1">
- <field name="Rounding Precision" start="0" end="2" type="uint">
- <value name="+1/16" value="0"/>
- <value name="+2/16" value="1"/>
- <value name="+3/16" value="2"/>
- <value name="+4/16" value="3"/>
- <value name="+5/16" value="4"/>
- <value name="+6/16" value="5"/>
- <value name="+7/16" value="6"/>
- <value name="+8/16" value="7"/>
- </field>
- </struct>
+ <enum name="SURFACE_FORMAT" prefix="SF">
+ <value name="R32G32B32A32_FLOAT" value="0"/>
+ <value name="R32G32B32A32_SINT" value="1"/>
+ <value name="R32G32B32A32_UINT" value="2"/>
+ <value name="R32G32B32A32_UNORM" value="3"/>
+ <value name="R32G32B32A32_SNORM" value="4"/>
+ <value name="R64G64_FLOAT" value="5"/>
+ <value name="R32G32B32X32_FLOAT" value="6"/>
+ <value name="R32G32B32A32_SSCALED" value="7"/>
+ <value name="R32G32B32A32_USCALED" value="8"/>
+ <value name="R32G32B32A32_SFIXED" value="32"/>
+ <value name="R64G64_PASSTHRU" value="33"/>
+ <value name="R32G32B32_FLOAT" value="64"/>
+ <value name="R32G32B32_SINT" value="65"/>
+ <value name="R32G32B32_UINT" value="66"/>
+ <value name="R32G32B32_UNORM" value="67"/>
+ <value name="R32G32B32_SNORM" value="68"/>
+ <value name="R32G32B32_SSCALED" value="69"/>
+ <value name="R32G32B32_USCALED" value="70"/>
+ <value name="R32G32B32_SFIXED" value="80"/>
+ <value name="R16G16B16A16_UNORM" value="128"/>
+ <value name="R16G16B16A16_SNORM" value="129"/>
+ <value name="R16G16B16A16_SINT" value="130"/>
+ <value name="R16G16B16A16_UINT" value="131"/>
+ <value name="R16G16B16A16_FLOAT" value="132"/>
+ <value name="R32G32_FLOAT" value="133"/>
+ <value name="R32G32_SINT" value="134"/>
+ <value name="R32G32_UINT" value="135"/>
+ <value name="R32_FLOAT_X8X24_TYPELESS" value="136"/>
+ <value name="X32_TYPELESS_G8X24_UINT" value="137"/>
+ <value name="L32A32_FLOAT" value="138"/>
+ <value name="R32G32_UNORM" value="139"/>
+ <value name="R32G32_SNORM" value="140"/>
+ <value name="R64_FLOAT" value="141"/>
+ <value name="R16G16B16X16_UNORM" value="142"/>
+ <value name="R16G16B16X16_FLOAT" value="143"/>
+ <value name="A32X32_FLOAT" value="144"/>
+ <value name="L32X32_FLOAT" value="145"/>
+ <value name="I32X32_FLOAT" value="146"/>
+ <value name="R16G16B16A16_SSCALED" value="147"/>
+ <value name="R16G16B16A16_USCALED" value="148"/>
+ <value name="R32G32_SSCALED" value="149"/>
+ <value name="R32G32_USCALED" value="150"/>
+ <value name="R32G32_SFIXED" value="160"/>
+ <value name="R64_PASSTHRU" value="161"/>
+ <value name="B8G8R8A8_UNORM" value="192"/>
+ <value name="B8G8R8A8_UNORM_SRGB" value="193"/>
+ <value name="R10G10B10A2_UNORM" value="194"/>
+ <value name="R10G10B10A2_UNORM_SRGB" value="195"/>
+ <value name="R10G10B10A2_UINT" value="196"/>
+ <value name="R10G10B10_SNORM_A2_UNORM" value="197"/>
+ <value name="R8G8B8A8_UNORM" value="199"/>
+ <value name="R8G8B8A8_UNORM_SRGB" value="200"/>
+ <value name="R8G8B8A8_SNORM" value="201"/>
+ <value name="R8G8B8A8_SINT" value="202"/>
+ <value name="R8G8B8A8_UINT" value="203"/>
+ <value name="R16G16_UNORM" value="204"/>
+ <value name="R16G16_SNORM" value="205"/>
+ <value name="R16G16_SINT" value="206"/>
+ <value name="R16G16_UINT" value="207"/>
+ <value name="R16G16_FLOAT" value="208"/>
+ <value name="B10G10R10A2_UNORM" value="209"/>
+ <value name="B10G10R10A2_UNORM_SRGB" value="210"/>
+ <value name="R11G11B10_FLOAT" value="211"/>
+ <value name="R32_SINT" value="214"/>
+ <value name="R32_UINT" value="215"/>
+ <value name="R32_FLOAT" value="216"/>
+ <value name="R24_UNORM_X8_TYPELESS" value="217"/>
+ <value name="X24_TYPELESS_G8_UINT" value="218"/>
+ <value name="L32_UNORM" value="221"/>
+ <value name="A32_UNORM" value="222"/>
+ <value name="L16A16_UNORM" value="223"/>
+ <value name="I24X8_UNORM" value="224"/>
+ <value name="L24X8_UNORM" value="225"/>
+ <value name="A24X8_UNORM" value="226"/>
+ <value name="I32_FLOAT" value="227"/>
+ <value name="L32_FLOAT" value="228"/>
+ <value name="A32_FLOAT" value="229"/>
+ <value name="X8B8_UNORM_G8R8_SNORM" value="230"/>
+ <value name="A8X8_UNORM_G8R8_SNORM" value="231"/>
+ <value name="B8X8_UNORM_G8R8_SNORM" value="232"/>
+ <value name="B8G8R8X8_UNORM" value="233"/>
+ <value name="B8G8R8X8_UNORM_SRGB" value="234"/>
+ <value name="R8G8B8X8_UNORM" value="235"/>
+ <value name="R8G8B8X8_UNORM_SRGB" value="236"/>
+ <value name="R9G9B9E5_SHAREDEXP" value="237"/>
+ <value name="B10G10R10X2_UNORM" value="238"/>
+ <value name="L16A16_FLOAT" value="240"/>
+ <value name="R32_UNORM" value="241"/>
+ <value name="R32_SNORM" value="242"/>
+ <value name="R10G10B10X2_USCALED" value="243"/>
+ <value name="R8G8B8A8_SSCALED" value="244"/>
+ <value name="R8G8B8A8_USCALED" value="245"/>
+ <value name="R16G16_SSCALED" value="246"/>
+ <value name="R16G16_USCALED" value="247"/>
+ <value name="R32_SSCALED" value="248"/>
+ <value name="R32_USCALED" value="249"/>
+ <value name="B5G6R5_UNORM" value="256"/>
+ <value name="B5G6R5_UNORM_SRGB" value="257"/>
+ <value name="B5G5R5A1_UNORM" value="258"/>
+ <value name="B5G5R5A1_UNORM_SRGB" value="259"/>
+ <value name="B4G4R4A4_UNORM" value="260"/>
+ <value name="B4G4R4A4_UNORM_SRGB" value="261"/>
+ <value name="R8G8_UNORM" value="262"/>
+ <value name="R8G8_SNORM" value="263"/>
+ <value name="R8G8_SINT" value="264"/>
+ <value name="R8G8_UINT" value="265"/>
+ <value name="R16_UNORM" value="266"/>
+ <value name="R16_SNORM" value="267"/>
+ <value name="R16_SINT" value="268"/>
+ <value name="R16_UINT" value="269"/>
+ <value name="R16_FLOAT" value="270"/>
+ <value name="A8P8_UNORM_PALETTE0" value="271"/>
+ <value name="A8P8_UNORM_PALETTE1" value="272"/>
+ <value name="I16_UNORM" value="273"/>
+ <value name="L16_UNORM" value="274"/>
+ <value name="A16_UNORM" value="275"/>
+ <value name="L8A8_UNORM" value="276"/>
+ <value name="I16_FLOAT" value="277"/>
+ <value name="L16_FLOAT" value="278"/>
+ <value name="A16_FLOAT" value="279"/>
+ <value name="L8A8_UNORM_SRGB" value="280"/>
+ <value name="R5G5_SNORM_B6_UNORM" value="281"/>
+ <value name="B5G5R5X1_UNORM" value="282"/>
+ <value name="B5G5R5X1_UNORM_SRGB" value="283"/>
+ <value name="R8G8_SSCALED" value="284"/>
+ <value name="R8G8_USCALED" value="285"/>
+ <value name="R16_SSCALED" value="286"/>
+ <value name="R16_USCALED" value="287"/>
+ <value name="P8A8_UNORM_PALETTE0" value="290"/>
+ <value name="P8A8_UNORM_PALETTE1" value="291"/>
+ <value name="A1B5G5R5_UNORM" value="292"/>
+ <value name="A4B4G4R4_UNORM" value="293"/>
+ <value name="L8A8_UINT" value="294"/>
+ <value name="L8A8_SINT" value="295"/>
+ <value name="R8_UNORM" value="320"/>
+ <value name="R8_SNORM" value="321"/>
+ <value name="R8_SINT" value="322"/>
+ <value name="R8_UINT" value="323"/>
+ <value name="A8_UNORM" value="324"/>
+ <value name="I8_UNORM" value="325"/>
+ <value name="L8_UNORM" value="326"/>
+ <value name="P4A4_UNORM_PALETTE0" value="327"/>
+ <value name="A4P4_UNORM_PALETTE0" value="328"/>
+ <value name="R8_SSCALED" value="329"/>
+ <value name="R8_USCALED" value="330"/>
+ <value name="P8_UNORM_PALETTE0" value="331"/>
+ <value name="L8_UNORM_SRGB" value="332"/>
+ <value name="P8_UNORM_PALETTE1" value="333"/>
+ <value name="P4A4_UNORM_PALETTE1" value="334"/>
+ <value name="A4P4_UNORM_PALETTE1" value="335"/>
+ <value name="Y8_UNORM" value="336"/>
+ <value name="L8_UINT" value="338"/>
+ <value name="L8_SINT" value="339"/>
+ <value name="I8_UINT" value="340"/>
+ <value name="I8_SINT" value="341"/>
+ <value name="DXT1_RGB_SRGB" value="384"/>
+ <value name="R1_UNORM" value="385"/>
+ <value name="YCRCB_NORMAL" value="386"/>
+ <value name="YCRCB_SWAPUVY" value="387"/>
+ <value name="P2_UNORM_PALETTE0" value="388"/>
+ <value name="P2_UNORM_PALETTE1" value="389"/>
+ <value name="BC1_UNORM" value="390"/>
+ <value name="BC2_UNORM" value="391"/>
+ <value name="BC3_UNORM" value="392"/>
+ <value name="BC4_UNORM" value="393"/>
+ <value name="BC5_UNORM" value="394"/>
+ <value name="BC1_UNORM_SRGB" value="395"/>
+ <value name="BC2_UNORM_SRGB" value="396"/>
+ <value name="BC3_UNORM_SRGB" value="397"/>
+ <value name="MONO8" value="398"/>
+ <value name="YCRCB_SWAPUV" value="399"/>
+ <value name="YCRCB_SWAPY" value="400"/>
+ <value name="DXT1_RGB" value="401"/>
+ <value name="FXT1" value="402"/>
+ <value name="R8G8B8_UNORM" value="403"/>
+ <value name="R8G8B8_SNORM" value="404"/>
+ <value name="R8G8B8_SSCALED" value="405"/>
+ <value name="R8G8B8_USCALED" value="406"/>
+ <value name="R64G64B64A64_FLOAT" value="407"/>
+ <value name="R64G64B64_FLOAT" value="408"/>
+ <value name="BC4_SNORM" value="409"/>
+ <value name="BC5_SNORM" value="410"/>
+ <value name="R16G16B16_FLOAT" value="411"/>
+ <value name="R16G16B16_UNORM" value="412"/>
+ <value name="R16G16B16_SNORM" value="413"/>
+ <value name="R16G16B16_SSCALED" value="414"/>
+ <value name="R16G16B16_USCALED" value="415"/>
+ <value name="BC6H_SF16" value="417"/>
+ <value name="BC7_UNORM" value="418"/>
+ <value name="BC7_UNORM_SRGB" value="419"/>
+ <value name="BC6H_UF16" value="420"/>
+ <value name="PLANAR_420_8" value="421"/>
+ <value name="R8G8B8_UNORM_SRGB" value="424"/>
+ <value name="ETC1_RGB8" value="425"/>
+ <value name="ETC2_RGB8" value="426"/>
+ <value name="EAC_R11" value="427"/>
+ <value name="EAC_RG11" value="428"/>
+ <value name="EAC_SIGNED_R11" value="429"/>
+ <value name="EAC_SIGNED_RG11" value="430"/>
+ <value name="ETC2_SRGB8" value="431"/>
+ <value name="R16G16B16_UINT" value="432"/>
+ <value name="R16G16B16_SINT" value="433"/>
+ <value name="R32_SFIXED" value="434"/>
+ <value name="R10G10B10A2_SNORM" value="435"/>
+ <value name="R10G10B10A2_USCALED" value="436"/>
+ <value name="R10G10B10A2_SSCALED" value="437"/>
+ <value name="R10G10B10A2_SINT" value="438"/>
+ <value name="B10G10R10A2_SNORM" value="439"/>
+ <value name="B10G10R10A2_USCALED" value="440"/>
+ <value name="B10G10R10A2_SSCALED" value="441"/>
+ <value name="B10G10R10A2_UINT" value="442"/>
+ <value name="B10G10R10A2_SINT" value="443"/>
+ <value name="R64G64B64A64_PASSTHRU" value="444"/>
+ <value name="R64G64B64_PASSTHRU" value="445"/>
+ <value name="ETC2_RGB8_PTA" value="448"/>
+ <value name="ETC2_SRGB8_PTA" value="449"/>
+ <value name="ETC2_EAC_RGBA8" value="450"/>
+ <value name="ETC2_EAC_SRGB8_A8" value="451"/>
+ <value name="R8G8B8_UINT" value="456"/>
+ <value name="R8G8B8_SINT" value="457"/>
+ <value name="RAW" value="511"/>
+ </enum>
- <struct name="PALETTE_ENTRY" length="1">
- <field name="Alpha" start="24" end="31" type="uint"/>
- <field name="Red" start="16" end="23" type="uint"/>
- <field name="Green" start="8" end="15" type="uint"/>
- <field name="Blue" start="0" end="7" type="uint"/>
- </struct>
+ <enum name="Shader Channel Select" prefix="SCS">
+ <value name="ZERO" value="0"/>
+ <value name="ONE" value="1"/>
+ <value name="RED" value="4"/>
+ <value name="GREEN" value="5"/>
+ <value name="BLUE" value="6"/>
+ <value name="ALPHA" value="7"/>
+ </enum>
- <struct name="BINDING_TABLE_STATE" length="1">
- <field name="Surface State Pointer" start="6" end="31" type="offset"/>
- </struct>
+ <enum name="Texture Coordinate Mode" prefix="TCM">
+ <value name="WRAP" value="0"/>
+ <value name="MIRROR" value="1"/>
+ <value name="CLAMP" value="2"/>
+ <value name="CUBE" value="3"/>
+ <value name="CLAMP_BORDER" value="4"/>
+ <value name="MIRROR_ONCE" value="5"/>
+ <value name="HALF_BORDER" value="6"/>
+ </enum>
- <struct name="RENDER_SURFACE_STATE" length="16">
- <field name="Surface Type" start="29" end="31" type="uint">
- <value name="SURFTYPE_1D" value="0"/>
- <value name="SURFTYPE_2D" value="1"/>
- <value name="SURFTYPE_3D" value="2"/>
- <value name="SURFTYPE_CUBE" value="3"/>
- <value name="SURFTYPE_BUFFER" value="4"/>
- <value name="SURFTYPE_STRBUF" value="5"/>
- <value name="SURFTYPE_NULL" value="7"/>
- </field>
- <field name="Surface Array" start="28" end="28" type="bool"/>
- <field name="Surface Format" start="18" end="27" type="uint"/>
- <field name="Surface Vertical Alignment" start="16" end="17" type="uint">
- <value name="VALIGN 4" value="1"/>
- <value name="VALIGN 8" value="2"/>
- <value name="VALIGN 16" value="3"/>
- </field>
- <field name="Surface Horizontal Alignment" start="14" end="15" type="uint">
- <value name="HALIGN 4" value="1"/>
- <value name="HALIGN 8" value="2"/>
- <value name="HALIGN 16" value="3"/>
- </field>
- <field name="Tile Mode" start="12" end="13" type="uint">
- <value name="LINEAR" value="0"/>
- <value name="WMAJOR" value="1"/>
- <value name="XMAJOR" value="2"/>
- <value name="YMAJOR" value="3"/>
- </field>
- <field name="Vertical Line Stride" start="11" end="11" type="uint"/>
- <field name="Vertical Line Stride Offset" start="10" end="10" type="uint"/>
- <field name="Sampler L2 Bypass Mode Disable" start="9" end="9" type="bool"/>
- <field name="Render Cache Read Write Mode" start="8" end="8" type="uint">
- <value name="Write-Only Cache" value="0"/>
- <value name="Read-Write Cache" value="1"/>
- </field>
- <field name="Media Boundary Pixel Mode" start="6" end="7" type="uint">
- <value name="NORMAL_MODE" value="0"/>
- <value name="PROGRESSIVE_FRAME" value="2"/>
- <value name="INTERLACED_FRAME" value="3"/>
- </field>
- <field name="Cube Face Enable - Positive Z" start="0" end="0" type="bool"/>
- <field name="Cube Face Enable - Negative Z" start="1" end="1" type="bool"/>
- <field name="Cube Face Enable - Positive Y" start="2" end="2" type="bool"/>
- <field name="Cube Face Enable - Negative Y" start="3" end="3" type="bool"/>
- <field name="Cube Face Enable - Positive X" start="4" end="4" type="bool"/>
- <field name="Cube Face Enable - Negative X" start="5" end="5" type="bool"/>
- <field name="Memory Object Control State" start="56" end="62" type="MEMORY_OBJECT_CONTROL_STATE"/>
- <field name="MOCS" start="56" end="62" type="uint"/>
- <field name="Base Mip Level" start="51" end="55" type="u4.1"/>
- <field name="Surface QPitch" start="32" end="46" type="uint"/>
- <field name="Height" start="80" end="93" type="uint"/>
- <field name="Width" start="64" end="77" type="uint"/>
- <field name="Depth" start="117" end="127" type="uint"/>
- <field name="Surface Pitch" start="96" end="113" type="uint"/>
- <field name="Render Target And Sample Unorm Rotation" start="157" end="158" type="uint">
- <value name="0DEG" value="0"/>
- <value name="90DEG" value="1"/>
- <value name="180DEG" value="2"/>
- <value name="270DEG" value="3"/>
- </field>
- <field name="Minimum Array Element" start="146" end="156" type="uint"/>
- <field name="Render Target View Extent" start="135" end="145" type="uint"/>
- <field name="Multisampled Surface Storage Format" start="134" end="134" type="uint">
- <value name="MSFMT_MSS" value="0"/>
- <value name="MSFMT_DEPTH_STENCIL" value="1"/>
- </field>
- <field name="Number of Multisamples" start="131" end="133" type="uint">
- <value name="MULTISAMPLECOUNT_1" value="0"/>
- <value name="MULTISAMPLECOUNT_2" value="1"/>
- <value name="MULTISAMPLECOUNT_4" value="2"/>
- <value name="MULTISAMPLECOUNT_8" value="3"/>
- <value name="MULTISAMPLECOUNT_16" value="4"/>
- </field>
- <field name="Multisample Position Palette Index" start="128" end="130" type="uint"/>
- <field name="X Offset" start="185" end="191" type="uint"/>
- <field name="Y Offset" start="181" end="183" type="uint"/>
- <field name="EWA Disable For Cube" start="180" end="180" type="bool"/>
- <field name="Tiled Resource Mode" start="178" end="179" type="uint">
- <value name="NONE" value="0"/>
- <value name="4KB" value="1"/>
- <value name="64KB" value="2"/>
- <value name="TILEYF" value="1"/>
- <value name="TILEYS" value="2"/>
- </field>
- <field name="Coherency Type" start="174" end="174" type="uint">
- <value name="GPU coherent" value="0"/>
- <value name="IA coherent" value="1"/>
- </field>
- <field name="Mip Tail Start LOD" start="168" end="171" type="uint"/>
- <field name="Surface Min LOD" start="164" end="167" type="uint"/>
- <field name="MIP Count / LOD" start="160" end="163" type="uint"/>
- <field name="Auxiliary Surface QPitch" start="208" end="222" type="uint"/>
- <field name="Auxiliary Surface Pitch" start="195" end="203" type="uint"/>
- <field name="Auxiliary Surface Mode" start="192" end="194" type="uint">
- <value name="AUX_NONE" value="0"/>
- <value name="AUX_CCS_D" value="1"/>
- <value name="AUX_APPEND" value="2"/>
- <value name="AUX_HIZ" value="3"/>
- <value name="AUX_CCS_E" value="5"/>
- </field>
- <field name="Separate UV Plane Enable" start="223" end="223" type="bool"/>
- <field name="X Offset for U or UV Plane" start="208" end="221" type="uint"/>
- <field name="Y Offset for U or UV Plane" start="192" end="205" type="uint"/>
- <field name="Memory Compression Mode" start="255" end="255" type="uint">
- <value name="Horizontal" value="0"/>
- <value name="Vertical" value="1"/>
- </field>
- <field name="Memory Compression Enable" start="254" end="254" type="bool"/>
- <field name="Shader Channel Select Red" start="249" end="251" type="uint"/>
- <field name="Shader Channel Select Green" start="246" end="248" type="uint"/>
- <field name="Shader Channel Select Blue" start="243" end="245" type="uint"/>
- <field name="Shader Channel Select Alpha" start="240" end="242" type="uint"/>
- <field name="Resource Min LOD" start="224" end="235" type="u4.8"/>
- <field name="Surface Base Address" start="256" end="319" type="address"/>
- <field name="X Offset for V Plane" start="368" end="381" type="uint"/>
- <field name="Y Offset for V Plane" start="352" end="365" type="uint"/>
- <field name="Auxiliary Table Index for Media Compressed Surface" start="341" end="351" type="uint"/>
- <field name="Auxiliary Surface Base Address" start="332" end="383" type="address"/>
- <field name="Quilt Height" start="325" end="329" type="uint"/>
- <field name="Quilt Width" start="320" end="324" type="uint"/>
- <field name="Hierarchical Depth Clear Value" start="384" end="415" type="float"/>
- <field name="Red Clear Color" start="384" end="415" type="int"/>
- <field name="Green Clear Color" start="416" end="447" type="int"/>
- <field name="Blue Clear Color" start="448" end="479" type="int"/>
- <field name="Alpha Clear Color" start="480" end="511" type="int"/>
+ <struct name="3DSTATE_CONSTANT_BODY" length="10">
+ <field name="Constant Buffer 1 Read Length" start="16" end="31" type="uint"/>
+ <field name="Constant Buffer 0 Read Length" start="0" end="15" type="uint"/>
+ <field name="Constant Buffer 3 Read Length" start="48" end="63" type="uint"/>
+ <field name="Constant Buffer 2 Read Length" start="32" end="47" type="uint"/>
+ <field name="Pointer To Constant Buffer 0" start="69" end="127" type="address"/>
+ <field name="Pointer To Constant Buffer 1" start="133" end="191" type="address"/>
+ <field name="Pointer To Constant Buffer 2" start="197" end="255" type="address"/>
+ <field name="Pointer To Constant Buffer 3" start="261" end="319" type="address"/>
</struct>
- <struct name="FILTER_COEFFICIENT" length="1">
- <field name="Filter Coefficient" start="0" end="7" type="s1.6"/>
+ <struct name="BINDING_TABLE_EDIT_ENTRY" length="1">
+ <field name="Binding Table Index" start="16" end="23" type="uint"/>
+ <field name="Surface State Pointer" start="0" end="15" type="offset"/>
</struct>
- <struct name="SAMPLER_BORDER_COLOR_STATE" length="4">
- <field name="Border Color Float Red" start="0" end="31" type="float"/>
- <field name="Border Color Float Green" start="32" end="63" type="float"/>
- <field name="Border Color Float Blue" start="64" end="95" type="float"/>
- <field name="Border Color Float Alpha" start="96" end="127" type="float"/>
+ <struct name="GATHER_CONSTANT_ENTRY" length="1">
+ <field name="Constant Buffer Offset" start="8" end="15" type="offset"/>
+ <field name="Channel Mask" start="4" end="7" type="uint"/>
+ <field name="Binding Table Index Offset" start="0" end="3" type="uint"/>
+ </struct>
- <field name="Border Color 32bit Red" start="0" end="31" type="uint"/>
- <field name="Border Color 32bit Green" start="32" end="63" type="uint"/>
- <field name="Border Color 32bit Blue" start="64" end="95" type="uint"/>
- <field name="Border Color 32bit Alpha" start="96" end="127" type="uint"/>
+ <struct name="MEMORY_OBJECT_CONTROL_STATE" length="1">
+ <field name="Index to MOCS Tables" start="1" end="6" type="uint"/>
</struct>
- <struct name="SAMPLER_STATE" length="4">
- <field name="Sampler Disable" start="31" end="31" type="bool"/>
- <field name="Texture Border Color Mode" start="29" end="29" type="uint">
- <value name="DX10/OGL" value="0"/>
- <value name="DX9" value="1"/>
- </field>
- <field name="LOD PreClamp Mode" start="27" end="28" type="uint" prefix="CLAMP_MODE">
- <value name="NONE" value="0"/>
- <value name="OGL" value="2"/>
- </field>
- <field name="Coarse LOD Quality Mode" start="22" end="26" type="uint"/>
- <field name="Mip Mode Filter" start="20" end="21" type="uint" prefix="MIPFILTER">
- <value name="NONE" value="0"/>
- <value name="NEAREST" value="1"/>
- <value name="LINEAR" value="3"/>
- </field>
- <field name="Mag Mode Filter" start="17" end="19" type="uint" prefix="MAPFILTER">
- <value name="NEAREST" value="0"/>
- <value name="LINEAR" value="1"/>
- <value name="ANISOTROPIC" value="2"/>
- <value name="MONO" value="6"/>
- </field>
- <field name="Min Mode Filter" start="14" end="16" type="uint" prefix="MAPFILTER">
- <value name="NEAREST" value="0"/>
- <value name="LINEAR" value="1"/>
- <value name="ANISOTROPIC" value="2"/>
- <value name="MONO" value="6"/>
- </field>
- <field name="Texture LOD Bias" start="1" end="13" type="s4.8"/>
- <field name="Anisotropic Algorithm" start="0" end="0" type="uint">
- <value name="LEGACY" value="0"/>
- <value name="EWA Approximation" value="1"/>
- </field>
- <field name="Min LOD" start="52" end="63" type="u4.8"/>
- <field name="Max LOD" start="40" end="51" type="u4.8"/>
- <field name="ChromaKey Enable" start="39" end="39" type="bool"/>
- <field name="ChromaKey Index" start="37" end="38" type="uint"/>
- <field name="ChromaKey Mode" start="36" end="36" type="uint">
- <value name="KEYFILTER_KILL_ON_ANY_MATCH" value="0"/>
- <value name="KEYFILTER_REPLACE_BLACK" value="1"/>
- </field>
- <field name="Shadow Function" start="33" end="35" type="uint">
- <value name="PREFILTEROP ALWAYS" value="0"/>
- <value name="PREFILTEROP NEVER" value="1"/>
- <value name="PREFILTEROP LESS" value="2"/>
- <value name="PREFILTEROP EQUAL" value="3"/>
- <value name="PREFILTEROP LEQUAL" value="4"/>
- <value name="PREFILTEROP GREATER" value="5"/>
- <value name="PREFILTEROP NOTEQUAL" value="6"/>
- <value name="PREFILTEROP GEQUAL" value="7"/>
- </field>
- <field name="Cube Surface Control Mode" start="32" end="32" type="uint">
- <value name="PROGRAMMED" value="0"/>
- <value name="OVERRIDE" value="1"/>
- </field>
- <field name="Border Color Pointer" start="70" end="87" type="offset"/>
- <field name="LOD Clamp Magnification Mode" start="64" end="64" type="uint">
- <value name="MIPNONE" value="0"/>
- <value name="MIPFILTER" value="1"/>
- </field>
- <field name="Reduction Type" start="118" end="119" type="uint">
- <value name="STD_FILTER" value="0"/>
- <value name="COMPARISON" value="1"/>
- <value name="MINIMUM" value="2"/>
- <value name="MAXIMUM" value="3"/>
- </field>
- <field name="Maximum Anisotropy" start="115" end="117" type="uint">
- <value name="RATIO 2:1" value="0"/>
- <value name="RATIO 4:1" value="1"/>
- <value name="RATIO 6:1" value="2"/>
- <value name="RATIO 8:1" value="3"/>
- <value name="RATIO 10:1" value="4"/>
- <value name="RATIO 12:1" value="5"/>
- <value name="RATIO 14:1" value="6"/>
- <value name="RATIO 16:1" value="7"/>
- </field>
- <field name="R Address Min Filter Rounding Enable" start="109" end="109" type="bool"/>
- <field name="R Address Mag Filter Rounding Enable" start="110" end="110" type="bool"/>
- <field name="V Address Min Filter Rounding Enable" start="111" end="111" type="bool"/>
- <field name="V Address Mag Filter Rounding Enable" start="112" end="112" type="bool"/>
- <field name="U Address Min Filter Rounding Enable" start="113" end="113" type="bool"/>
- <field name="U Address Mag Filter Rounding Enable" start="114" end="114" type="bool"/>
- <field name="Trilinear Filter Quality" start="107" end="108" type="uint">
- <value name="FULL" value="0"/>
- <value name="HIGH" value="1"/>
- <value name="MED" value="2"/>
- <value name="LOW" value="3"/>
- </field>
- <field name="Non-normalized Coordinate Enable" start="106" end="106" type="bool"/>
- <field name="Reduction Type Enable" start="105" end="105" type="bool"/>
- <field name="TCX Address Control Mode" start="102" end="104" type="uint"/>
- <field name="TCY Address Control Mode" start="99" end="101" type="uint"/>
- <field name="TCZ Address Control Mode" start="96" end="98" type="uint"/>
+ <struct name="VERTEX_BUFFER_STATE" length="4">
+ <field name="Vertex Buffer Index" start="26" end="31" type="uint"/>
+ <field name="Memory Object Control State" start="16" end="22" type="MEMORY_OBJECT_CONTROL_STATE"/>
+ <field name="Vertex Buffer MOCS" start="16" end="22" type="uint"/>
+ <field name="Address Modify Enable" start="14" end="14" type="bool"/>
+ <field name="Null Vertex Buffer" start="13" end="13" type="bool"/>
+ <field name="Buffer Pitch" start="0" end="11" type="uint"/>
+ <field name="Buffer Starting Address" start="32" end="95" type="address"/>
+ <field name="Buffer Size" start="96" end="127" type="uint"/>
</struct>
- <struct name="SAMPLER_STATE_8X8_AVS_COEFFICIENTS" length="8">
- <field name="Table 0Y Filter Coefficient[n,1]" start="24" end="31" type="s1.6"/>
- <field name="Table 0X Filter Coefficient[n,1]" start="16" end="23" type="s1.6"/>
- <field name="Table 0Y Filter Coefficient[n,0]" start="8" end="15" type="s1.6"/>
- <field name="Table 0X Filter Coefficient[n,0]" start="0" end="7" type="s1.6"/>
- <field name="Table 0Y Filter Coefficient[n,3]" start="56" end="63" type="s1.6"/>
- <field name="Table 0X Filter Coefficient[n,3]" start="48" end="55" type="s1.6"/>
- <field name="Table 0Y Filter Coefficient[n,2]" start="40" end="47" type="s1.6"/>
- <field name="Table 0X Filter Coefficient[n,2]" start="32" end="39" type="s1.6"/>
- <field name="Table 0Y Filter Coefficient[n,5]" start="88" end="95" type="s1.6"/>
- <field name="Table 0X Filter Coefficient[n,5]" start="80" end="87" type="s1.6"/>
- <field name="Table 0Y Filter Coefficient[n,4]" start="72" end="79" type="s1.6"/>
- <field name="Table 0X Filter Coefficient[n,4]" start="64" end="71" type="s1.6"/>
- <field name="Table 0Y Filter Coefficient[n,7]" start="120" end="127" type="s1.6"/>
- <field name="Table 0X Filter Coefficient[n,7]" start="112" end="119" type="s1.6"/>
- <field name="Table 0Y Filter Coefficient[n,6]" start="104" end="111" type="s1.6"/>
- <field name="Table 0X Filter Coefficient[n,6]" start="96" end="103" type="s1.6"/>
- <field name="Table 1X Filter Coefficient[n,3]" start="152" end="159" type="s1.6"/>
- <field name="Table 1X Filter Coefficient[n,2]" start="144" end="151" type="s1.6"/>
- <field name="Table 1X Filter Coefficient[n,5]" start="168" end="175" type="s1.6"/>
- <field name="Table 1X Filter Coefficient[n,4]" start="160" end="167" type="s1.6"/>
- <field name="Table 1Y Filter Coefficient[n,3]" start="216" end="223" type="s1.6"/>
- <field name="Table 1Y Filter Coefficient[n,2]" start="208" end="215" type="s1.6"/>
- <field name="Table 1Y Filter Coefficient[n,5]" start="232" end="239" type="s1.6"/>
- <field name="Table 1Y Filter Coefficient[n,4]" start="224" end="231" type="s1.6"/>
+ <struct name="VERTEX_ELEMENT_STATE" length="2">
+ <field name="Vertex Buffer Index" start="26" end="31" type="uint"/>
+ <field name="Valid" start="25" end="25" type="bool"/>
+ <field name="Source Element Format" start="16" end="24" type="uint"/>
+ <field name="Edge Flag Enable" start="15" end="15" type="bool"/>
+ <field name="Source Element Offset" start="0" end="11" type="uint"/>
+ <field name="Component 0 Control" start="60" end="62" type="uint"/>
+ <field name="Component 1 Control" start="56" end="58" type="uint"/>
+ <field name="Component 2 Control" start="52" end="54" type="uint"/>
+ <field name="Component 3 Control" start="48" end="50" type="uint"/>
</struct>
- <enum name="3D_Prim_Topo_Type" prefix="3DPRIM">
- <value name="POINTLIST" value="1"/>
- <value name="LINELIST" value="2"/>
- <value name="LINESTRIP" value="3"/>
- <value name="TRILIST" value="4"/>
- <value name="TRISTRIP" value="5"/>
- <value name="TRIFAN" value="6"/>
- <value name="QUADLIST" value="7"/>
- <value name="QUADSTRIP" value="8"/>
- <value name="LINELIST_ADJ" value="9"/>
- <value name="LINESTRIP_ADJ" value="10"/>
- <value name="TRILIST_ADJ" value="11"/>
- <value name="TRISTRIP_ADJ" value="12"/>
- <value name="TRISTRIP_REVERSE" value="13"/>
- <value name="POLYGON" value="14"/>
- <value name="RECTLIST" value="15"/>
- <value name="LINELOOP" value="16"/>
- <value name="POINTLIST _BF" value="17"/>
- <value name="LINESTRIP_CONT" value="18"/>
- <value name="LINESTRIP_BF" value="19"/>
- <value name="LINESTRIP_CONT_BF" value="20"/>
- <value name="TRIFAN_NOSTIPPLE" value="22"/>
- <value name="PATCHLIST_1" value="32"/>
- <value name="PATCHLIST_2" value="33"/>
- <value name="PATCHLIST_3" value="34"/>
- <value name="PATCHLIST_4" value="35"/>
- <value name="PATCHLIST_5" value="36"/>
- <value name="PATCHLIST_6" value="37"/>
- <value name="PATCHLIST_7" value="38"/>
- <value name="PATCHLIST_8" value="39"/>
- <value name="PATCHLIST_9" value="40"/>
- <value name="PATCHLIST_10" value="41"/>
- <value name="PATCHLIST_11" value="42"/>
- <value name="PATCHLIST_12" value="43"/>
- <value name="PATCHLIST_13" value="44"/>
- <value name="PATCHLIST_14" value="45"/>
- <value name="PATCHLIST_15" value="46"/>
- <value name="PATCHLIST_16" value="47"/>
- <value name="PATCHLIST_17" value="48"/>
- <value name="PATCHLIST_18" value="49"/>
- <value name="PATCHLIST_19" value="50"/>
- <value name="PATCHLIST_20" value="51"/>
- <value name="PATCHLIST_21" value="52"/>
- <value name="PATCHLIST_22" value="53"/>
- <value name="PATCHLIST_23" value="54"/>
- <value name="PATCHLIST_24" value="55"/>
- <value name="PATCHLIST_25" value="56"/>
- <value name="PATCHLIST_26" value="57"/>
- <value name="PATCHLIST_27" value="58"/>
- <value name="PATCHLIST_28" value="59"/>
- <value name="PATCHLIST_29" value="60"/>
- <value name="PATCHLIST_30" value="61"/>
- <value name="PATCHLIST_31" value="62"/>
- <value name="PATCHLIST_32" value="63"/>
- </enum>
+ <struct name="SO_DECL" length="1">
+ <field name="Output Buffer Slot" start="12" end="13" type="uint"/>
+ <field name="Hole Flag" start="11" end="11" type="uint"/>
+ <field name="Register Index" start="4" end="9" type="uint"/>
+ <field name="Component Mask" start="0" end="3" type="uint" default="0"/>
+ </struct>
- <enum name="3D_Vertex_Component_Control" prefix="VFCOMP">
- <value name="NOSTORE" value="0"/>
- <value name="STORE_SRC" value="1"/>
- <value name="STORE_0" value="2"/>
- <value name="STORE_1_FP" value="3"/>
- <value name="STORE_1_INT" value="4"/>
- <value name="STORE_PID" value="7"/>
- </enum>
+ <struct name="SO_DECL_ENTRY" length="2">
+ <field name="Stream 3 Decl" start="48" end="63" type="SO_DECL"/>
+ <field name="Stream 2 Decl" start="32" end="47" type="SO_DECL"/>
+ <field name="Stream 1 Decl" start="16" end="31" type="SO_DECL"/>
+ <field name="Stream 0 Decl" start="0" end="15" type="SO_DECL"/>
+ </struct>
+
+ <struct name="SF_OUTPUT_ATTRIBUTE_DETAIL" length="1">
+ <field name="Component Override W" start="15" end="15" type="bool"/>
+ <field name="Component Override Z" start="14" end="14" type="bool"/>
+ <field name="Component Override Y" start="13" end="13" type="bool"/>
+ <field name="Component Override X" start="12" end="12" type="bool"/>
+ <field name="Swizzle Control Mode" start="11" end="11" type="uint"/>
+ <field name="Constant Source" start="9" end="10" type="uint">
+ <value name="CONST_0000" value="0"/>
+ <value name="CONST_0001_FLOAT" value="1"/>
+ <value name="CONST_1111_FLOAT" value="2"/>
+ <value name="PRIM_ID" value="3"/>
+ </field>
+ <field name="Swizzle Select" start="6" end="7" type="uint">
+ <value name="INPUTATTR" value="0"/>
+ <value name="INPUTATTR_FACING" value="1"/>
+ <value name="INPUTATTR_W" value="2"/>
+ <value name="INPUTATTR_FACING_W" value="3"/>
+ </field>
+ <field name="Source Attribute" start="0" end="4" type="uint"/>
+ </struct>
+
+ <struct name="SCISSOR_RECT" length="2">
+ <field name="Scissor Rectangle Y Min" start="16" end="31" type="uint"/>
+ <field name="Scissor Rectangle X Min" start="0" end="15" type="uint"/>
+ <field name="Scissor Rectangle Y Max" start="48" end="63" type="uint"/>
+ <field name="Scissor Rectangle X Max" start="32" end="47" type="uint"/>
+ </struct>
- <enum name="COMPONENT_ENABLES" prefix="CE">
- <value name="NONE" value="0"/>
- <value name="X" value="1"/>
- <value name="Y" value="2"/>
- <value name="XY" value="3"/>
- <value name="Z" value="4"/>
- <value name="XZ" value="5"/>
- <value name="YZ" value="6"/>
- <value name="XYZ" value="7"/>
- <value name="W" value="8"/>
- <value name="XW" value="9"/>
- <value name="YW" value="10"/>
- <value name="XYW" value="11"/>
- <value name="ZW" value="12"/>
- <value name="XZW" value="13"/>
- <value name="YZW" value="14"/>
- <value name="XYZW" value="15"/>
- </enum>
+ <struct name="SF_CLIP_VIEWPORT" length="16">
+ <field name="Viewport Matrix Element m00" start="0" end="31" type="float"/>
+ <field name="Viewport Matrix Element m11" start="32" end="63" type="float"/>
+ <field name="Viewport Matrix Element m22" start="64" end="95" type="float"/>
+ <field name="Viewport Matrix Element m30" start="96" end="127" type="float"/>
+ <field name="Viewport Matrix Element m31" start="128" end="159" type="float"/>
+ <field name="Viewport Matrix Element m32" start="160" end="191" type="float"/>
+ <field name="X Min Clip Guardband" start="256" end="287" type="float"/>
+ <field name="X Max Clip Guardband" start="288" end="319" type="float"/>
+ <field name="Y Min Clip Guardband" start="320" end="351" type="float"/>
+ <field name="Y Max Clip Guardband" start="352" end="383" type="float"/>
+ <field name="X Min ViewPort" start="384" end="415" type="float"/>
+ <field name="X Max ViewPort" start="416" end="447" type="float"/>
+ <field name="Y Min ViewPort" start="448" end="479" type="float"/>
+ <field name="Y Max ViewPort" start="480" end="511" type="float"/>
+ </struct>
- <enum name="Attribute_Component_Format" prefix="ACF">
- <value name="disabled" value="0"/>
- <value name=".xy" value="1"/>
- <value name=".xyz" value="2"/>
- <value name=".xyzw" value="3"/>
- </enum>
+ <struct name="BLEND_STATE_ENTRY" length="2">
+ <field name="Logic Op Enable" start="63" end="63" type="bool"/>
+ <field name="Logic Op Function" start="59" end="62" type="uint"/>
+ <field name="Pre-Blend Source Only Clamp Enable" start="36" end="36" type="bool"/>
+ <field name="Color Clamp Range" start="34" end="35" type="uint">
+ <value name="COLORCLAMP_UNORM" value="0"/>
+ <value name="COLORCLAMP_SNORM" value="1"/>
+ <value name="COLORCLAMP_RTFORMAT" value="2"/>
+ </field>
+ <field name="Pre-Blend Color Clamp Enable" start="33" end="33" type="bool"/>
+ <field name="Post-Blend Color Clamp Enable" start="32" end="32" type="bool"/>
+ <field name="Color Buffer Blend Enable" start="31" end="31" type="bool"/>
+ <field name="Source Blend Factor" start="26" end="30" type="uint"/>
+ <field name="Destination Blend Factor" start="21" end="25" type="uint"/>
+ <field name="Color Blend Function" start="18" end="20" type="uint"/>
+ <field name="Source Alpha Blend Factor" start="13" end="17" type="uint"/>
+ <field name="Destination Alpha Blend Factor" start="8" end="12" type="uint"/>
+ <field name="Alpha Blend Function" start="5" end="7" type="uint"/>
+ <field name="Write Disable Alpha" start="3" end="3" type="bool"/>
+ <field name="Write Disable Red" start="2" end="2" type="bool"/>
+ <field name="Write Disable Green" start="1" end="1" type="bool"/>
+ <field name="Write Disable Blue" start="0" end="0" type="bool"/>
+ </struct>
- <enum name="WRAP_SHORTEST_ENABLE" prefix="WSE">
- <value name="X" value="1"/>
- <value name="Y" value="2"/>
- <value name="XY" value="3"/>
- <value name="Z" value="4"/>
- <value name="XZ" value="5"/>
- <value name="YZ" value="6"/>
- <value name="XYZ" value="7"/>
- <value name="W" value="8"/>
- <value name="XW" value="9"/>
- <value name="YW" value="10"/>
- <value name="XYW" value="11"/>
- <value name="ZW" value="12"/>
- <value name="XZW" value="13"/>
- <value name="YZW" value="14"/>
- <value name="XYZW" value="15"/>
- </enum>
+ <struct name="BLEND_STATE" length="17">
+ <field name="Alpha To Coverage Enable" start="31" end="31" type="bool"/>
+ <field name="Independent Alpha Blend Enable" start="30" end="30" type="bool"/>
+ <field name="Alpha To One Enable" start="29" end="29" type="bool"/>
+ <field name="Alpha To Coverage Dither Enable" start="28" end="28" type="bool"/>
+ <field name="Alpha Test Enable" start="27" end="27" type="bool"/>
+ <field name="Alpha Test Function" start="24" end="26" type="uint"/>
+ <field name="Color Dither Enable" start="23" end="23" type="bool"/>
+ <field name="X Dither Offset" start="21" end="22" type="uint"/>
+ <field name="Y Dither Offset" start="19" end="20" type="uint"/>
+ <group count="8" start="32" size="64">
+ <field name="Entry" start="0" end="63" type="BLEND_STATE_ENTRY"/>
+ </group>
+ </struct>
- <enum name="3D_Stencil_Operation" prefix="STENCILOP">
- <value name="KEEP" value="0"/>
- <value name="ZERO" value="1"/>
- <value name="REPLACE" value="2"/>
- <value name="INCRSAT" value="3"/>
- <value name="DECRSAT" value="4"/>
- <value name="INCR" value="5"/>
- <value name="DECR" value="6"/>
- <value name="INVERT" value="7"/>
- </enum>
+ <struct name="CC_VIEWPORT" length="2">
+ <field name="Minimum Depth" start="0" end="31" type="float"/>
+ <field name="Maximum Depth" start="32" end="63" type="float"/>
+ </struct>
- <enum name="3D_Color_Buffer_Blend_Factor" prefix="BLENDFACTOR">
- <value name="ONE" value="1"/>
- <value name="SRC_COLOR" value="2"/>
- <value name="SRC_ALPHA" value="3"/>
- <value name="DST_ALPHA" value="4"/>
- <value name="DST_COLOR" value="5"/>
- <value name="SRC_ALPHA_SATURATE" value="6"/>
- <value name="CONST_COLOR" value="7"/>
- <value name="CONST_ALPHA" value="8"/>
- <value name="SRC1_COLOR" value="9"/>
- <value name="SRC1_ALPHA" value="10"/>
- <value name="ZERO" value="17"/>
- <value name="INV_SRC_COLOR" value="18"/>
- <value name="INV_SRC_ALPHA" value="19"/>
- <value name="INV_DST_ALPHA" value="20"/>
- <value name="INV_DST_COLOR" value="21"/>
- <value name="INV_CONST_COLOR" value="23"/>
- <value name="INV_CONST_ALPHA" value="24"/>
- <value name="INV_SRC1_COLOR" value="25"/>
- <value name="INV_SRC1_ALPHA" value="26"/>
- </enum>
+ <struct name="COLOR_CALC_STATE" length="6">
+ <field name="Round Disable Function Disable" start="15" end="15" type="bool"/>
+ <field name="Alpha Test Format" start="0" end="0" type="uint">
+ <value name="ALPHATEST_UNORM8" value="0"/>
+ <value name="ALPHATEST_FLOAT32" value="1"/>
+ </field>
+ <field name="Alpha Reference Value As UNORM8" start="32" end="63" type="uint"/>
+ <field name="Alpha Reference Value As FLOAT32" start="32" end="63" type="float"/>
+ <field name="Blend Constant Color Red" start="64" end="95" type="float"/>
+ <field name="Blend Constant Color Green" start="96" end="127" type="float"/>
+ <field name="Blend Constant Color Blue" start="128" end="159" type="float"/>
+ <field name="Blend Constant Color Alpha" start="160" end="191" type="float"/>
+ </struct>
- <enum name="3D_Color_Buffer_Blend_Function" prefix="BLENDFUNCTION">
- <value name="ADD" value="0"/>
- <value name="SUBTRACT" value="1"/>
- <value name="REVERSE_SUBTRACT" value="2"/>
- <value name="MIN" value="3"/>
- <value name="MAX" value="4"/>
- </enum>
+ <struct name="EXECUTION_UNIT_EXTENDED_MESSAGE_DESCRIPTOR" length="1">
+ <field name="Extended Message Length" start="6" end="9" type="uint"/>
+ <field name="End Of Thread" start="5" end="5" type="uint">
+ <value name="No Termination" value="0"/>
+ <value name="EOT" value="1"/>
+ </field>
+ <field name="Target Function ID" start="0" end="3" type="uint"/>
+ </struct>
- <enum name="3D_Compare_Function" prefix="COMPAREFUNCTION">
- <value name="ALWAYS" value="0"/>
- <value name="NEVER" value="1"/>
- <value name="LESS" value="2"/>
- <value name="EQUAL" value="3"/>
- <value name="LEQUAL" value="4"/>
- <value name="GREATER" value="5"/>
- <value name="NOTEQUAL" value="6"/>
- <value name="GEQUAL" value="7"/>
- </enum>
+ <struct name="INTERFACE_DESCRIPTOR_DATA" length="8">
+ <field name="Kernel Start Pointer" start="6" end="31" type="offset"/>
+ <field name="Kernel Start Pointer High" start="32" end="47" type="offset"/>
+ <field name="Denorm Mode" start="83" end="83" type="uint">
+ <value name="Ftz" value="0"/>
+ <value name="SetByKernel" value="1"/>
+ </field>
+ <field name="Single Program Flow" start="82" end="82" type="bool"/>
+ <field name="Thread Priority" start="81" end="81" type="uint">
+ <value name="Normal Priority" value="0"/>
+ <value name="High Priority" value="1"/>
+ </field>
+ <field name="Floating Point Mode" start="80" end="80" type="uint">
+ <value name="IEEE-754" value="0"/>
+ <value name="Alternate" value="1"/>
+ </field>
+ <field name="Illegal Opcode Exception Enable" start="77" end="77" type="bool"/>
+ <field name="Mask Stack Exception Enable" start="75" end="75" type="bool"/>
+ <field name="Software Exception Enable" start="71" end="71" type="bool"/>
+ <field name="Sampler State Pointer" start="101" end="127" type="offset"/>
+ <field name="Sampler Count" start="98" end="100" type="uint">
+ <value name="No samplers used" value="0"/>
+ <value name="Between 1 and 4 samplers used" value="1"/>
+ <value name="Between 5 and 8 samplers used" value="2"/>
+ <value name="Between 9 and 12 samplers used" value="3"/>
+ <value name="Between 13 and 16 samplers used" value="4"/>
+ </field>
+ <field name="Binding Table Pointer" start="133" end="143" type="offset"/>
+ <field name="Binding Table Entry Count" start="128" end="132" type="uint"/>
+ <field name="Constant URB Entry Read Length" start="176" end="191" type="uint"/>
+ <field name="Constant URB Entry Read Offset" start="160" end="175" type="uint"/>
+ <field name="Rounding Mode" start="214" end="215" type="uint">
+ <value name="RTNE" value="0"/>
+ <value name="RU" value="1"/>
+ <value name="RD" value="2"/>
+ <value name="RTZ" value="3"/>
+ </field>
+ <field name="Barrier Enable" start="213" end="213" type="bool"/>
+ <field name="Shared Local Memory Size" start="208" end="212" type="uint">
+ <value name="Encodes 0K" value="0"/>
+ <value name="Encodes 1K" value="1"/>
+ <value name="Encodes 2K" value="2"/>
+ <value name="Encodes 4K" value="3"/>
+ <value name="Encodes 8K" value="4"/>
+ <value name="Encodes 16K" value="5"/>
+ <value name="Encodes 32K" value="6"/>
+ <value name="Encodes 64K" value="7"/>
+ </field>
+ <field name="Global Barrier Enable" start="207" end="207" type="bool"/>
+ <field name="Number of Threads in GPGPU Thread Group" start="192" end="201" type="uint"/>
+ <field name="Cross-Thread Constant Data Read Length" start="224" end="231" type="uint"/>
+ </struct>
- <enum name="3D_Logic_Op_Function" prefix="LOGICOP">
- <value name="CLEAR" value="0"/>
- <value name="NOR" value="1"/>
- <value name="AND_INVERTED" value="2"/>
- <value name="COPY_INVERTED" value="3"/>
- <value name="AND_REVERSE" value="4"/>
- <value name="INVERT" value="5"/>
- <value name="XOR" value="6"/>
- <value name="NAND" value="7"/>
- <value name="AND" value="8"/>
- <value name="EQUIV" value="9"/>
- <value name="NOOP" value="10"/>
- <value name="OR_INVERTED" value="11"/>
- <value name="COPY" value="12"/>
- <value name="OR_REVERSE" value="13"/>
- <value name="OR" value="14"/>
- <value name="SET" value="15"/>
- </enum>
+ <struct name="ROUNDINGPRECISIONTABLE_3_BITS" length="1">
+ <field name="Rounding Precision" start="0" end="2" type="uint">
+ <value name="+1/16" value="0"/>
+ <value name="+2/16" value="1"/>
+ <value name="+3/16" value="2"/>
+ <value name="+4/16" value="3"/>
+ <value name="+5/16" value="4"/>
+ <value name="+6/16" value="5"/>
+ <value name="+7/16" value="6"/>
+ <value name="+8/16" value="7"/>
+ </field>
+ </struct>
+
+ <struct name="PALETTE_ENTRY" length="1">
+ <field name="Alpha" start="24" end="31" type="uint"/>
+ <field name="Red" start="16" end="23" type="uint"/>
+ <field name="Green" start="8" end="15" type="uint"/>
+ <field name="Blue" start="0" end="7" type="uint"/>
+ </struct>
- <enum name="SURFACE_FORMAT" prefix="SF">
- <value name="R32G32B32A32_FLOAT" value="0"/>
- <value name="R32G32B32A32_SINT" value="1"/>
- <value name="R32G32B32A32_UINT" value="2"/>
- <value name="R32G32B32A32_UNORM" value="3"/>
- <value name="R32G32B32A32_SNORM" value="4"/>
- <value name="R64G64_FLOAT" value="5"/>
- <value name="R32G32B32X32_FLOAT" value="6"/>
- <value name="R32G32B32A32_SSCALED" value="7"/>
- <value name="R32G32B32A32_USCALED" value="8"/>
- <value name="R32G32B32A32_SFIXED" value="32"/>
- <value name="R64G64_PASSTHRU" value="33"/>
- <value name="R32G32B32_FLOAT" value="64"/>
- <value name="R32G32B32_SINT" value="65"/>
- <value name="R32G32B32_UINT" value="66"/>
- <value name="R32G32B32_UNORM" value="67"/>
- <value name="R32G32B32_SNORM" value="68"/>
- <value name="R32G32B32_SSCALED" value="69"/>
- <value name="R32G32B32_USCALED" value="70"/>
- <value name="R32G32B32_SFIXED" value="80"/>
- <value name="R16G16B16A16_UNORM" value="128"/>
- <value name="R16G16B16A16_SNORM" value="129"/>
- <value name="R16G16B16A16_SINT" value="130"/>
- <value name="R16G16B16A16_UINT" value="131"/>
- <value name="R16G16B16A16_FLOAT" value="132"/>
- <value name="R32G32_FLOAT" value="133"/>
- <value name="R32G32_SINT" value="134"/>
- <value name="R32G32_UINT" value="135"/>
- <value name="R32_FLOAT_X8X24_TYPELESS" value="136"/>
- <value name="X32_TYPELESS_G8X24_UINT" value="137"/>
- <value name="L32A32_FLOAT" value="138"/>
- <value name="R32G32_UNORM" value="139"/>
- <value name="R32G32_SNORM" value="140"/>
- <value name="R64_FLOAT" value="141"/>
- <value name="R16G16B16X16_UNORM" value="142"/>
- <value name="R16G16B16X16_FLOAT" value="143"/>
- <value name="A32X32_FLOAT" value="144"/>
- <value name="L32X32_FLOAT" value="145"/>
- <value name="I32X32_FLOAT" value="146"/>
- <value name="R16G16B16A16_SSCALED" value="147"/>
- <value name="R16G16B16A16_USCALED" value="148"/>
- <value name="R32G32_SSCALED" value="149"/>
- <value name="R32G32_USCALED" value="150"/>
- <value name="R32G32_SFIXED" value="160"/>
- <value name="R64_PASSTHRU" value="161"/>
- <value name="B8G8R8A8_UNORM" value="192"/>
- <value name="B8G8R8A8_UNORM_SRGB" value="193"/>
- <value name="R10G10B10A2_UNORM" value="194"/>
- <value name="R10G10B10A2_UNORM_SRGB" value="195"/>
- <value name="R10G10B10A2_UINT" value="196"/>
- <value name="R10G10B10_SNORM_A2_UNORM" value="197"/>
- <value name="R8G8B8A8_UNORM" value="199"/>
- <value name="R8G8B8A8_UNORM_SRGB" value="200"/>
- <value name="R8G8B8A8_SNORM" value="201"/>
- <value name="R8G8B8A8_SINT" value="202"/>
- <value name="R8G8B8A8_UINT" value="203"/>
- <value name="R16G16_UNORM" value="204"/>
- <value name="R16G16_SNORM" value="205"/>
- <value name="R16G16_SINT" value="206"/>
- <value name="R16G16_UINT" value="207"/>
- <value name="R16G16_FLOAT" value="208"/>
- <value name="B10G10R10A2_UNORM" value="209"/>
- <value name="B10G10R10A2_UNORM_SRGB" value="210"/>
- <value name="R11G11B10_FLOAT" value="211"/>
- <value name="R32_SINT" value="214"/>
- <value name="R32_UINT" value="215"/>
- <value name="R32_FLOAT" value="216"/>
- <value name="R24_UNORM_X8_TYPELESS" value="217"/>
- <value name="X24_TYPELESS_G8_UINT" value="218"/>
- <value name="L32_UNORM" value="221"/>
- <value name="A32_UNORM" value="222"/>
- <value name="L16A16_UNORM" value="223"/>
- <value name="I24X8_UNORM" value="224"/>
- <value name="L24X8_UNORM" value="225"/>
- <value name="A24X8_UNORM" value="226"/>
- <value name="I32_FLOAT" value="227"/>
- <value name="L32_FLOAT" value="228"/>
- <value name="A32_FLOAT" value="229"/>
- <value name="X8B8_UNORM_G8R8_SNORM" value="230"/>
- <value name="A8X8_UNORM_G8R8_SNORM" value="231"/>
- <value name="B8X8_UNORM_G8R8_SNORM" value="232"/>
- <value name="B8G8R8X8_UNORM" value="233"/>
- <value name="B8G8R8X8_UNORM_SRGB" value="234"/>
- <value name="R8G8B8X8_UNORM" value="235"/>
- <value name="R8G8B8X8_UNORM_SRGB" value="236"/>
- <value name="R9G9B9E5_SHAREDEXP" value="237"/>
- <value name="B10G10R10X2_UNORM" value="238"/>
- <value name="L16A16_FLOAT" value="240"/>
- <value name="R32_UNORM" value="241"/>
- <value name="R32_SNORM" value="242"/>
- <value name="R10G10B10X2_USCALED" value="243"/>
- <value name="R8G8B8A8_SSCALED" value="244"/>
- <value name="R8G8B8A8_USCALED" value="245"/>
- <value name="R16G16_SSCALED" value="246"/>
- <value name="R16G16_USCALED" value="247"/>
- <value name="R32_SSCALED" value="248"/>
- <value name="R32_USCALED" value="249"/>
- <value name="B5G6R5_UNORM" value="256"/>
- <value name="B5G6R5_UNORM_SRGB" value="257"/>
- <value name="B5G5R5A1_UNORM" value="258"/>
- <value name="B5G5R5A1_UNORM_SRGB" value="259"/>
- <value name="B4G4R4A4_UNORM" value="260"/>
- <value name="B4G4R4A4_UNORM_SRGB" value="261"/>
- <value name="R8G8_UNORM" value="262"/>
- <value name="R8G8_SNORM" value="263"/>
- <value name="R8G8_SINT" value="264"/>
- <value name="R8G8_UINT" value="265"/>
- <value name="R16_UNORM" value="266"/>
- <value name="R16_SNORM" value="267"/>
- <value name="R16_SINT" value="268"/>
- <value name="R16_UINT" value="269"/>
- <value name="R16_FLOAT" value="270"/>
- <value name="A8P8_UNORM_PALETTE0" value="271"/>
- <value name="A8P8_UNORM_PALETTE1" value="272"/>
- <value name="I16_UNORM" value="273"/>
- <value name="L16_UNORM" value="274"/>
- <value name="A16_UNORM" value="275"/>
- <value name="L8A8_UNORM" value="276"/>
- <value name="I16_FLOAT" value="277"/>
- <value name="L16_FLOAT" value="278"/>
- <value name="A16_FLOAT" value="279"/>
- <value name="L8A8_UNORM_SRGB" value="280"/>
- <value name="R5G5_SNORM_B6_UNORM" value="281"/>
- <value name="B5G5R5X1_UNORM" value="282"/>
- <value name="B5G5R5X1_UNORM_SRGB" value="283"/>
- <value name="R8G8_SSCALED" value="284"/>
- <value name="R8G8_USCALED" value="285"/>
- <value name="R16_SSCALED" value="286"/>
- <value name="R16_USCALED" value="287"/>
- <value name="P8A8_UNORM_PALETTE0" value="290"/>
- <value name="P8A8_UNORM_PALETTE1" value="291"/>
- <value name="A1B5G5R5_UNORM" value="292"/>
- <value name="A4B4G4R4_UNORM" value="293"/>
- <value name="L8A8_UINT" value="294"/>
- <value name="L8A8_SINT" value="295"/>
- <value name="R8_UNORM" value="320"/>
- <value name="R8_SNORM" value="321"/>
- <value name="R8_SINT" value="322"/>
- <value name="R8_UINT" value="323"/>
- <value name="A8_UNORM" value="324"/>
- <value name="I8_UNORM" value="325"/>
- <value name="L8_UNORM" value="326"/>
- <value name="P4A4_UNORM_PALETTE0" value="327"/>
- <value name="A4P4_UNORM_PALETTE0" value="328"/>
- <value name="R8_SSCALED" value="329"/>
- <value name="R8_USCALED" value="330"/>
- <value name="P8_UNORM_PALETTE0" value="331"/>
- <value name="L8_UNORM_SRGB" value="332"/>
- <value name="P8_UNORM_PALETTE1" value="333"/>
- <value name="P4A4_UNORM_PALETTE1" value="334"/>
- <value name="A4P4_UNORM_PALETTE1" value="335"/>
- <value name="Y8_UNORM" value="336"/>
- <value name="L8_UINT" value="338"/>
- <value name="L8_SINT" value="339"/>
- <value name="I8_UINT" value="340"/>
- <value name="I8_SINT" value="341"/>
- <value name="DXT1_RGB_SRGB" value="384"/>
- <value name="R1_UNORM" value="385"/>
- <value name="YCRCB_NORMAL" value="386"/>
- <value name="YCRCB_SWAPUVY" value="387"/>
- <value name="P2_UNORM_PALETTE0" value="388"/>
- <value name="P2_UNORM_PALETTE1" value="389"/>
- <value name="BC1_UNORM" value="390"/>
- <value name="BC2_UNORM" value="391"/>
- <value name="BC3_UNORM" value="392"/>
- <value name="BC4_UNORM" value="393"/>
- <value name="BC5_UNORM" value="394"/>
- <value name="BC1_UNORM_SRGB" value="395"/>
- <value name="BC2_UNORM_SRGB" value="396"/>
- <value name="BC3_UNORM_SRGB" value="397"/>
- <value name="MONO8" value="398"/>
- <value name="YCRCB_SWAPUV" value="399"/>
- <value name="YCRCB_SWAPY" value="400"/>
- <value name="DXT1_RGB" value="401"/>
- <value name="FXT1" value="402"/>
- <value name="R8G8B8_UNORM" value="403"/>
- <value name="R8G8B8_SNORM" value="404"/>
- <value name="R8G8B8_SSCALED" value="405"/>
- <value name="R8G8B8_USCALED" value="406"/>
- <value name="R64G64B64A64_FLOAT" value="407"/>
- <value name="R64G64B64_FLOAT" value="408"/>
- <value name="BC4_SNORM" value="409"/>
- <value name="BC5_SNORM" value="410"/>
- <value name="R16G16B16_FLOAT" value="411"/>
- <value name="R16G16B16_UNORM" value="412"/>
- <value name="R16G16B16_SNORM" value="413"/>
- <value name="R16G16B16_SSCALED" value="414"/>
- <value name="R16G16B16_USCALED" value="415"/>
- <value name="BC6H_SF16" value="417"/>
- <value name="BC7_UNORM" value="418"/>
- <value name="BC7_UNORM_SRGB" value="419"/>
- <value name="BC6H_UF16" value="420"/>
- <value name="PLANAR_420_8" value="421"/>
- <value name="R8G8B8_UNORM_SRGB" value="424"/>
- <value name="ETC1_RGB8" value="425"/>
- <value name="ETC2_RGB8" value="426"/>
- <value name="EAC_R11" value="427"/>
- <value name="EAC_RG11" value="428"/>
- <value name="EAC_SIGNED_R11" value="429"/>
- <value name="EAC_SIGNED_RG11" value="430"/>
- <value name="ETC2_SRGB8" value="431"/>
- <value name="R16G16B16_UINT" value="432"/>
- <value name="R16G16B16_SINT" value="433"/>
- <value name="R32_SFIXED" value="434"/>
- <value name="R10G10B10A2_SNORM" value="435"/>
- <value name="R10G10B10A2_USCALED" value="436"/>
- <value name="R10G10B10A2_SSCALED" value="437"/>
- <value name="R10G10B10A2_SINT" value="438"/>
- <value name="B10G10R10A2_SNORM" value="439"/>
- <value name="B10G10R10A2_USCALED" value="440"/>
- <value name="B10G10R10A2_SSCALED" value="441"/>
- <value name="B10G10R10A2_UINT" value="442"/>
- <value name="B10G10R10A2_SINT" value="443"/>
- <value name="R64G64B64A64_PASSTHRU" value="444"/>
- <value name="R64G64B64_PASSTHRU" value="445"/>
- <value name="ETC2_RGB8_PTA" value="448"/>
- <value name="ETC2_SRGB8_PTA" value="449"/>
- <value name="ETC2_EAC_RGBA8" value="450"/>
- <value name="ETC2_EAC_SRGB8_A8" value="451"/>
- <value name="R8G8B8_UINT" value="456"/>
- <value name="R8G8B8_SINT" value="457"/>
- <value name="RAW" value="511"/>
- </enum>
+ <struct name="BINDING_TABLE_STATE" length="1">
+ <field name="Surface State Pointer" start="6" end="31" type="offset"/>
+ </struct>
+
+ <struct name="RENDER_SURFACE_STATE" length="16">
+ <field name="Surface Type" start="29" end="31" type="uint">
+ <value name="SURFTYPE_1D" value="0"/>
+ <value name="SURFTYPE_2D" value="1"/>
+ <value name="SURFTYPE_3D" value="2"/>
+ <value name="SURFTYPE_CUBE" value="3"/>
+ <value name="SURFTYPE_BUFFER" value="4"/>
+ <value name="SURFTYPE_STRBUF" value="5"/>
+ <value name="SURFTYPE_NULL" value="7"/>
+ </field>
+ <field name="Surface Array" start="28" end="28" type="bool"/>
+ <field name="Surface Format" start="18" end="27" type="uint"/>
+ <field name="Surface Vertical Alignment" start="16" end="17" type="uint">
+ <value name="VALIGN 4" value="1"/>
+ <value name="VALIGN 8" value="2"/>
+ <value name="VALIGN 16" value="3"/>
+ </field>
+ <field name="Surface Horizontal Alignment" start="14" end="15" type="uint">
+ <value name="HALIGN 4" value="1"/>
+ <value name="HALIGN 8" value="2"/>
+ <value name="HALIGN 16" value="3"/>
+ </field>
+ <field name="Tile Mode" start="12" end="13" type="uint">
+ <value name="LINEAR" value="0"/>
+ <value name="WMAJOR" value="1"/>
+ <value name="XMAJOR" value="2"/>
+ <value name="YMAJOR" value="3"/>
+ </field>
+ <field name="Vertical Line Stride" start="11" end="11" type="uint"/>
+ <field name="Vertical Line Stride Offset" start="10" end="10" type="uint"/>
+ <field name="Sampler L2 Bypass Mode Disable" start="9" end="9" type="bool"/>
+ <field name="Render Cache Read Write Mode" start="8" end="8" type="uint">
+ <value name="Write-Only Cache" value="0"/>
+ <value name="Read-Write Cache" value="1"/>
+ </field>
+ <field name="Media Boundary Pixel Mode" start="6" end="7" type="uint">
+ <value name="NORMAL_MODE" value="0"/>
+ <value name="PROGRESSIVE_FRAME" value="2"/>
+ <value name="INTERLACED_FRAME" value="3"/>
+ </field>
+ <field name="Cube Face Enable - Positive Z" start="0" end="0" type="bool"/>
+ <field name="Cube Face Enable - Negative Z" start="1" end="1" type="bool"/>
+ <field name="Cube Face Enable - Positive Y" start="2" end="2" type="bool"/>
+ <field name="Cube Face Enable - Negative Y" start="3" end="3" type="bool"/>
+ <field name="Cube Face Enable - Positive X" start="4" end="4" type="bool"/>
+ <field name="Cube Face Enable - Negative X" start="5" end="5" type="bool"/>
+ <field name="Memory Object Control State" start="56" end="62" type="MEMORY_OBJECT_CONTROL_STATE"/>
+ <field name="MOCS" start="56" end="62" type="uint"/>
+ <field name="Base Mip Level" start="51" end="55" type="u4.1"/>
+ <field name="Surface QPitch" start="32" end="46" type="uint"/>
+ <field name="Height" start="80" end="93" type="uint"/>
+ <field name="Width" start="64" end="77" type="uint"/>
+ <field name="Depth" start="117" end="127" type="uint"/>
+ <field name="Surface Pitch" start="96" end="113" type="uint"/>
+ <field name="Render Target And Sample Unorm Rotation" start="157" end="158" type="uint">
+ <value name="0DEG" value="0"/>
+ <value name="90DEG" value="1"/>
+ <value name="180DEG" value="2"/>
+ <value name="270DEG" value="3"/>
+ </field>
+ <field name="Minimum Array Element" start="146" end="156" type="uint"/>
+ <field name="Render Target View Extent" start="135" end="145" type="uint"/>
+ <field name="Multisampled Surface Storage Format" start="134" end="134" type="uint">
+ <value name="MSFMT_MSS" value="0"/>
+ <value name="MSFMT_DEPTH_STENCIL" value="1"/>
+ </field>
+ <field name="Number of Multisamples" start="131" end="133" type="uint">
+ <value name="MULTISAMPLECOUNT_1" value="0"/>
+ <value name="MULTISAMPLECOUNT_2" value="1"/>
+ <value name="MULTISAMPLECOUNT_4" value="2"/>
+ <value name="MULTISAMPLECOUNT_8" value="3"/>
+ <value name="MULTISAMPLECOUNT_16" value="4"/>
+ </field>
+ <field name="Multisample Position Palette Index" start="128" end="130" type="uint"/>
+ <field name="X Offset" start="185" end="191" type="uint"/>
+ <field name="Y Offset" start="181" end="183" type="uint"/>
+ <field name="EWA Disable For Cube" start="180" end="180" type="bool"/>
+ <field name="Tiled Resource Mode" start="178" end="179" type="uint">
+ <value name="NONE" value="0"/>
+ <value name="4KB" value="1"/>
+ <value name="64KB" value="2"/>
+ <value name="TILEYF" value="1"/>
+ <value name="TILEYS" value="2"/>
+ </field>
+ <field name="Coherency Type" start="174" end="174" type="uint">
+ <value name="GPU coherent" value="0"/>
+ <value name="IA coherent" value="1"/>
+ </field>
+ <field name="Mip Tail Start LOD" start="168" end="171" type="uint"/>
+ <field name="Surface Min LOD" start="164" end="167" type="uint"/>
+ <field name="MIP Count / LOD" start="160" end="163" type="uint"/>
+ <field name="Auxiliary Surface QPitch" start="208" end="222" type="uint"/>
+ <field name="Auxiliary Surface Pitch" start="195" end="203" type="uint"/>
+ <field name="Auxiliary Surface Mode" start="192" end="194" type="uint">
+ <value name="AUX_NONE" value="0"/>
+ <value name="AUX_CCS_D" value="1"/>
+ <value name="AUX_APPEND" value="2"/>
+ <value name="AUX_HIZ" value="3"/>
+ <value name="AUX_CCS_E" value="5"/>
+ </field>
+ <field name="Separate UV Plane Enable" start="223" end="223" type="bool"/>
+ <field name="X Offset for U or UV Plane" start="208" end="221" type="uint"/>
+ <field name="Y Offset for U or UV Plane" start="192" end="205" type="uint"/>
+ <field name="Memory Compression Mode" start="255" end="255" type="uint">
+ <value name="Horizontal" value="0"/>
+ <value name="Vertical" value="1"/>
+ </field>
+ <field name="Memory Compression Enable" start="254" end="254" type="bool"/>
+ <field name="Shader Channel Select Red" start="249" end="251" type="uint"/>
+ <field name="Shader Channel Select Green" start="246" end="248" type="uint"/>
+ <field name="Shader Channel Select Blue" start="243" end="245" type="uint"/>
+ <field name="Shader Channel Select Alpha" start="240" end="242" type="uint"/>
+ <field name="Resource Min LOD" start="224" end="235" type="u4.8"/>
+ <field name="Surface Base Address" start="256" end="319" type="address"/>
+ <field name="X Offset for V Plane" start="368" end="381" type="uint"/>
+ <field name="Y Offset for V Plane" start="352" end="365" type="uint"/>
+ <field name="Auxiliary Table Index for Media Compressed Surface" start="341" end="351" type="uint"/>
+ <field name="Auxiliary Surface Base Address" start="332" end="383" type="address"/>
+ <field name="Quilt Height" start="325" end="329" type="uint"/>
+ <field name="Quilt Width" start="320" end="324" type="uint"/>
+ <field name="Hierarchical Depth Clear Value" start="384" end="415" type="float"/>
+ <field name="Red Clear Color" start="384" end="415" type="int"/>
+ <field name="Green Clear Color" start="416" end="447" type="int"/>
+ <field name="Blue Clear Color" start="448" end="479" type="int"/>
+ <field name="Alpha Clear Color" start="480" end="511" type="int"/>
+ </struct>
- <enum name="Shader Channel Select" prefix="SCS">
- <value name="ZERO" value="0"/>
- <value name="ONE" value="1"/>
- <value name="RED" value="4"/>
- <value name="GREEN" value="5"/>
- <value name="BLUE" value="6"/>
- <value name="ALPHA" value="7"/>
- </enum>
+ <struct name="FILTER_COEFFICIENT" length="1">
+ <field name="Filter Coefficient" start="0" end="7" type="s1.6"/>
+ </struct>
- <enum name="Texture Coordinate Mode" prefix="TCM">
- <value name="WRAP" value="0"/>
- <value name="MIRROR" value="1"/>
- <value name="CLAMP" value="2"/>
- <value name="CUBE" value="3"/>
- <value name="CLAMP_BORDER" value="4"/>
- <value name="MIRROR_ONCE" value="5"/>
- <value name="HALF_BORDER" value="6"/>
- </enum>
+ <struct name="SAMPLER_BORDER_COLOR_STATE" length="4">
+ <field name="Border Color Float Red" start="0" end="31" type="float"/>
+ <field name="Border Color Float Green" start="32" end="63" type="float"/>
+ <field name="Border Color Float Blue" start="64" end="95" type="float"/>
+ <field name="Border Color Float Alpha" start="96" end="127" type="float"/>
+
+ <field name="Border Color 32bit Red" start="0" end="31" type="uint"/>
+ <field name="Border Color 32bit Green" start="32" end="63" type="uint"/>
+ <field name="Border Color 32bit Blue" start="64" end="95" type="uint"/>
+ <field name="Border Color 32bit Alpha" start="96" end="127" type="uint"/>
+ </struct>
+
+ <struct name="SAMPLER_STATE" length="4">
+ <field name="Sampler Disable" start="31" end="31" type="bool"/>
+ <field name="Texture Border Color Mode" start="29" end="29" type="uint">
+ <value name="DX10/OGL" value="0"/>
+ <value name="DX9" value="1"/>
+ </field>
+ <field name="LOD PreClamp Mode" start="27" end="28" type="uint" prefix="CLAMP_MODE">
+ <value name="NONE" value="0"/>
+ <value name="OGL" value="2"/>
+ </field>
+ <field name="Coarse LOD Quality Mode" start="22" end="26" type="uint"/>
+ <field name="Mip Mode Filter" start="20" end="21" type="uint" prefix="MIPFILTER">
+ <value name="NONE" value="0"/>
+ <value name="NEAREST" value="1"/>
+ <value name="LINEAR" value="3"/>
+ </field>
+ <field name="Mag Mode Filter" start="17" end="19" type="uint" prefix="MAPFILTER">
+ <value name="NEAREST" value="0"/>
+ <value name="LINEAR" value="1"/>
+ <value name="ANISOTROPIC" value="2"/>
+ <value name="MONO" value="6"/>
+ </field>
+ <field name="Min Mode Filter" start="14" end="16" type="uint" prefix="MAPFILTER">
+ <value name="NEAREST" value="0"/>
+ <value name="LINEAR" value="1"/>
+ <value name="ANISOTROPIC" value="2"/>
+ <value name="MONO" value="6"/>
+ </field>
+ <field name="Texture LOD Bias" start="1" end="13" type="s4.8"/>
+ <field name="Anisotropic Algorithm" start="0" end="0" type="uint">
+ <value name="LEGACY" value="0"/>
+ <value name="EWA Approximation" value="1"/>
+ </field>
+ <field name="Min LOD" start="52" end="63" type="u4.8"/>
+ <field name="Max LOD" start="40" end="51" type="u4.8"/>
+ <field name="ChromaKey Enable" start="39" end="39" type="bool"/>
+ <field name="ChromaKey Index" start="37" end="38" type="uint"/>
+ <field name="ChromaKey Mode" start="36" end="36" type="uint">
+ <value name="KEYFILTER_KILL_ON_ANY_MATCH" value="0"/>
+ <value name="KEYFILTER_REPLACE_BLACK" value="1"/>
+ </field>
+ <field name="Shadow Function" start="33" end="35" type="uint">
+ <value name="PREFILTEROP ALWAYS" value="0"/>
+ <value name="PREFILTEROP NEVER" value="1"/>
+ <value name="PREFILTEROP LESS" value="2"/>
+ <value name="PREFILTEROP EQUAL" value="3"/>
+ <value name="PREFILTEROP LEQUAL" value="4"/>
+ <value name="PREFILTEROP GREATER" value="5"/>
+ <value name="PREFILTEROP NOTEQUAL" value="6"/>
+ <value name="PREFILTEROP GEQUAL" value="7"/>
+ </field>
+ <field name="Cube Surface Control Mode" start="32" end="32" type="uint">
+ <value name="PROGRAMMED" value="0"/>
+ <value name="OVERRIDE" value="1"/>
+ </field>
+ <field name="Border Color Pointer" start="70" end="87" type="offset"/>
+ <field name="LOD Clamp Magnification Mode" start="64" end="64" type="uint">
+ <value name="MIPNONE" value="0"/>
+ <value name="MIPFILTER" value="1"/>
+ </field>
+ <field name="Reduction Type" start="118" end="119" type="uint">
+ <value name="STD_FILTER" value="0"/>
+ <value name="COMPARISON" value="1"/>
+ <value name="MINIMUM" value="2"/>
+ <value name="MAXIMUM" value="3"/>
+ </field>
+ <field name="Maximum Anisotropy" start="115" end="117" type="uint">
+ <value name="RATIO 2:1" value="0"/>
+ <value name="RATIO 4:1" value="1"/>
+ <value name="RATIO 6:1" value="2"/>
+ <value name="RATIO 8:1" value="3"/>
+ <value name="RATIO 10:1" value="4"/>
+ <value name="RATIO 12:1" value="5"/>
+ <value name="RATIO 14:1" value="6"/>
+ <value name="RATIO 16:1" value="7"/>
+ </field>
+ <field name="R Address Min Filter Rounding Enable" start="109" end="109" type="bool"/>
+ <field name="R Address Mag Filter Rounding Enable" start="110" end="110" type="bool"/>
+ <field name="V Address Min Filter Rounding Enable" start="111" end="111" type="bool"/>
+ <field name="V Address Mag Filter Rounding Enable" start="112" end="112" type="bool"/>
+ <field name="U Address Min Filter Rounding Enable" start="113" end="113" type="bool"/>
+ <field name="U Address Mag Filter Rounding Enable" start="114" end="114" type="bool"/>
+ <field name="Trilinear Filter Quality" start="107" end="108" type="uint">
+ <value name="FULL" value="0"/>
+ <value name="HIGH" value="1"/>
+ <value name="MED" value="2"/>
+ <value name="LOW" value="3"/>
+ </field>
+ <field name="Non-normalized Coordinate Enable" start="106" end="106" type="bool"/>
+ <field name="Reduction Type Enable" start="105" end="105" type="bool"/>
+ <field name="TCX Address Control Mode" start="102" end="104" type="uint"/>
+ <field name="TCY Address Control Mode" start="99" end="101" type="uint"/>
+ <field name="TCZ Address Control Mode" start="96" end="98" type="uint"/>
+ </struct>
+
+ <struct name="SAMPLER_STATE_8X8_AVS_COEFFICIENTS" length="8">
+ <field name="Table 0Y Filter Coefficient[n,1]" start="24" end="31" type="s1.6"/>
+ <field name="Table 0X Filter Coefficient[n,1]" start="16" end="23" type="s1.6"/>
+ <field name="Table 0Y Filter Coefficient[n,0]" start="8" end="15" type="s1.6"/>
+ <field name="Table 0X Filter Coefficient[n,0]" start="0" end="7" type="s1.6"/>
+ <field name="Table 0Y Filter Coefficient[n,3]" start="56" end="63" type="s1.6"/>
+ <field name="Table 0X Filter Coefficient[n,3]" start="48" end="55" type="s1.6"/>
+ <field name="Table 0Y Filter Coefficient[n,2]" start="40" end="47" type="s1.6"/>
+ <field name="Table 0X Filter Coefficient[n,2]" start="32" end="39" type="s1.6"/>
+ <field name="Table 0Y Filter Coefficient[n,5]" start="88" end="95" type="s1.6"/>
+ <field name="Table 0X Filter Coefficient[n,5]" start="80" end="87" type="s1.6"/>
+ <field name="Table 0Y Filter Coefficient[n,4]" start="72" end="79" type="s1.6"/>
+ <field name="Table 0X Filter Coefficient[n,4]" start="64" end="71" type="s1.6"/>
+ <field name="Table 0Y Filter Coefficient[n,7]" start="120" end="127" type="s1.6"/>
+ <field name="Table 0X Filter Coefficient[n,7]" start="112" end="119" type="s1.6"/>
+ <field name="Table 0Y Filter Coefficient[n,6]" start="104" end="111" type="s1.6"/>
+ <field name="Table 0X Filter Coefficient[n,6]" start="96" end="103" type="s1.6"/>
+ <field name="Table 1X Filter Coefficient[n,3]" start="152" end="159" type="s1.6"/>
+ <field name="Table 1X Filter Coefficient[n,2]" start="144" end="151" type="s1.6"/>
+ <field name="Table 1X Filter Coefficient[n,5]" start="168" end="175" type="s1.6"/>
+ <field name="Table 1X Filter Coefficient[n,4]" start="160" end="167" type="s1.6"/>
+ <field name="Table 1Y Filter Coefficient[n,3]" start="216" end="223" type="s1.6"/>
+ <field name="Table 1Y Filter Coefficient[n,2]" start="208" end="215" type="s1.6"/>
+ <field name="Table 1Y Filter Coefficient[n,5]" start="232" end="239" type="s1.6"/>
+ <field name="Table 1Y Filter Coefficient[n,4]" start="224" end="231" type="s1.6"/>
+ </struct>
<instruction name="3DPRIMITIVE" bias="2" length="7">
<field name="Command Type" start="29" end="31" type="uint" default="3"/>