1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
|
# RUN: yaml2obj %s | obj2yaml | FileCheck %s
--- !dxcontainer
Header:
Hash: [ 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0, 0x0, 0x0, 0x0 ]
Version:
Major: 1
Minor: 0
FileSize: 4616
PartCount: 8
PartOffsets: [ 64, 80, 140, 200, 580, 952, 2756, 2784 ]
Parts:
- Name: SFI0
Size: 8
Flags:
Doubles: false
ComputeShadersPlusRawAndStructuredBuffers: false
UAVsAtEveryStage: false
Max64UAVs: false
MinimumPrecision: false
DX11_1_DoubleExtensions: false
DX11_1_ShaderExtensions: false
LEVEL9ComparisonFiltering: false
TiledResources: false
StencilRef: false
InnerCoverage: false
TypedUAVLoadAdditionalFormats: false
ROVs: false
ViewportAndRTArrayIndexFromAnyShaderFeedingRasterizer: false
WaveOps: false
Int64Ops: false
ViewID: true
Barycentrics: false
NativeLowPrecision: false
ShadingRate: false
Raytracing_Tier_1_1: false
SamplerFeedback: false
AtomicInt64OnTypedResource: false
AtomicInt64OnGroupShared: false
DerivativesInMeshAndAmpShaders: false
ResourceDescriptorHeapIndexing: false
SamplerDescriptorHeapIndexing: false
RESERVED: false
AtomicInt64OnHeapResource: false
AdvancedTextureOps: false
WriteableMSAATextures: false
SampleCmpWithGradientOrBias: false
ExtendedCommandInfo: false
NextUnusedBit: false
- Name: ISG1
Size: 52
- Name: OSG1
Size: 52
- Name: PSG1
Size: 372
- Name: PSV0
Size: 364
PSVInfo:
Version: 2
ShaderStage: 4
InputControlPointCount: 16
OutputPositionPresent: 1
TessellatorDomain: 3
MinimumWaveLaneCount: 0
MaximumWaveLaneCount: 4294967295
UsesViewID: 1
SigPatchConstOrPrimVectors: 7
SigInputVectors: 1
SigOutputVectors: [ 1, 0, 0, 0 ]
NumThreadsX: 0
NumThreadsY: 0
NumThreadsZ: 0
ResourceStride: 24
Resources:
- Type: CBV
Space: 0
LowerBound: 0
UpperBound: 0
Kind: CBuffer
Flags:
UsedByAtomic64: true
SigInputElements:
- Name: AAA_HSFoo
Indices: [ 0 ]
StartRow: 0
Cols: 3
StartCol: 0
Allocated: true
Kind: Arbitrary
ComponentType: Float32
Interpolation: Linear
DynamicMask: 0x0
Stream: 0
SigOutputElements:
- Name: ''
Indices: [ 0 ]
StartRow: 0
Cols: 4
StartCol: 0
Allocated: true
Kind: Position
ComponentType: Float32
Interpolation: LinearNoperspective
DynamicMask: 0x0
Stream: 0
SigPatchOrPrimElements:
- Name: ''
Indices: [ 0, 1, 2, 3 ]
StartRow: 0
Cols: 1
StartCol: 3
Allocated: true
Kind: TessFactor
ComponentType: Float32
Interpolation: Undefined
DynamicMask: 0x0
Stream: 0
- Name: ''
Indices: [ 0, 1 ]
StartRow: 4
Cols: 1
StartCol: 3
Allocated: true
Kind: InsideTessFactor
ComponentType: Float32
Interpolation: Undefined
DynamicMask: 0x0
Stream: 0
- Name: AAA
Indices: [ 0 ]
StartRow: 6
Cols: 4
StartCol: 0
Allocated: true
Kind: Arbitrary
ComponentType: Float32
Interpolation: Undefined
DynamicMask: 0x0
Stream: 0
- Name: BBB
Indices: [ 0, 1, 2 ]
StartRow: 0
Cols: 3
StartCol: 0
Allocated: true
Kind: Arbitrary
ComponentType: Float32
Interpolation: Undefined
DynamicMask: 0x0
Stream: 0
OutputVectorMasks:
- [ 0x1 ]
- [ ]
- [ ]
- [ ]
InputOutputMap:
- [ 0x0, 0xD, 0x0, 0x0 ]
- [ ]
- [ ]
- [ ]
PatchOutputMap: [ 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0x0, 0x0,
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x2, 0x0 ]
- Name: STAT
Size: 1796
- Name: HASH
Size: 20
Hash:
IncludesSource: false
Digest: [ 0xD4, 0x48, 0xCB, 0xFE, 0xF9, 0xCD, 0x92, 0x7B,
0xBD, 0x2B, 0x9A, 0x9D, 0xB4, 0x6F, 0x3E, 0x83 ]
- Name: DXIL
Size: 24
Program:
MajorVersion: 6
MinorVersion: 1
ShaderKind: 4
Size: 6
DXILMajorVersion: 1
DXILMinorVersion: 1
DXILSize: 0
...
# Verify the vector sizes and ViewID use.
# CHECK: UsesViewID: 1
# CHECK-NEXT: SigPatchConstOrPrimVectors: 7
# CHECK-NEXT: SigInputVectors: 1
# CHECK-NEXT: SigOutputVectors: [ 1, 0, 0, 0 ]
# Verify the vector mask encodings.
# CHECK: OutputVectorMasks:
# CHECK-NEXT: - [ 0x1 ]
# CHECK-NEXT: - [ ]
# CHECK-NEXT: - [ ]
# CHECK-NEXT: - [ ]
# CHECK-NEXT: InputOutputMap:
# CHECK-NEXT: - [ 0x0, 0xD, 0x0, 0x0 ]
# CHECK-NEXT: - [ ]
# CHECK-NEXT: - [ ]
# CHECK-NEXT: - [ ]
# CHECK-NEXT: PatchOutputMap: [ 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0x0, 0x0,
# CHECK-NEXT: 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
# CHECK-NEXT: 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x2, 0x0 ]
|