Skip to content

Commit 6f516dd

Browse files
authored
Update DXIL.rst (microsoft#6078)
Make the table with supported shader model, major and minor numbers visible.
1 parent aa16873 commit 6f516dd

File tree

1 file changed

+23
-15
lines changed

1 file changed

+23
-15
lines changed

docs/DXIL.rst

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -88,21 +88,29 @@ The shader model is specified as a named metadata in DXIL::
8888
!dx.shaderModel = !{ !0 }
8989
!0 = !{ !"<shadelModelName>", i32 <major>, i32 <minor> }
9090

91-
The following values of <shaderModelName>_<major>_<minor> are supported:
92-
93-
==================== ===================================== ===========
94-
Target Legacy Models DXIL Models
95-
==================== ===================================== ===========
96-
Vertex shader (VS) vs_4_0, vs_4_1, vs_5_0, vs_5_1 vs_6_0
97-
Hull shader (HS) hs_5_0, hs_5_1 hs_6_0
98-
Domain shader (DS) ds_5_0, ds_5_1 ds_6_0
99-
Geometry shader (GS) gs_4_0, gs_4_1, gs_5_0, gs_5_1 gs_6_0
100-
Pixel shader (PS) ps_4_0, ps_4_1, ps_5_0, ps_5_1 ps_6_0
101-
Compute shader (CS) cs_5_0 (cs_4_0 is mapped onto cs_5_0) cs_6_0
102-
Shader library no support lib_6_1
103-
Mesh shader (MS) no support ms_6_5
104-
Amplification shader (AS) no support as_6_5
105-
========================= ===================================== ===========
91+
The following values of ``<shaderModelName>``, ``<major>``, ``<minor>`` are supported:
92+
93+
+-----------------------+---------------------------------------+-------------+
94+
| Target | Legacy Models | DXIL Models |
95+
+=======================+=======================================+=============+
96+
| Vertex shader (VS) | vs_4_0, vs_4_1, vs_5_0, vs_5_1 | vs_6_0 |
97+
+-----------------------+---------------------------------------+-------------+
98+
| Hull shader (HS) | hs_5_0, hs_5_1 | hs_6_0 |
99+
+-----------------------+---------------------------------------+-------------+
100+
| Domain shader (DS) | ds_5_0, ds_5_1 | ds_6_0 |
101+
+-----------------------+---------------------------------------+-------------+
102+
| Geometry shader (GS) | gs_4_0, gs_4_1, gs_5_0, gs_5_1 | gs_6_0 |
103+
+-----------------------+---------------------------------------+-------------+
104+
| Pixel shader (PS) | ps_4_0, ps_4_1, ps_5_0, ps_5_1 | ps_6_0 |
105+
+-----------------------+---------------------------------------+-------------+
106+
| Compute shader (CS) | cs_5_0 (cs_4_0 is mapped onto cs_5_0) | cs_6_0 |
107+
+-----------------------+---------------------------------------+-------------+
108+
| Shader library | no support | lib_6_1 |
109+
+-----------------------+---------------------------------------+-------------+
110+
| Mesh shader (MS) | no support | ms_6_5 |
111+
+-----------------------+---------------------------------------+-------------+
112+
| Amplification shader (AS) | no support | as_6_5 |
113+
+-----------------------+---------------------------------------+-------------+
106114

107115
The DXIL verifier ensures that DXIL conforms to the specified shader model.
108116

0 commit comments

Comments
 (0)