xref: /llvm-project/llvm/test/ObjectYAML/DXContainer/HullMaskVectors.yaml (revision b799e9dafa7fdf7d2b356dd572e2011d86746ef6)
1# RUN: yaml2obj %s | obj2yaml | FileCheck %s
2--- !dxcontainer
3Header:
4  Hash:            [ 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
5                     0x0, 0x0, 0x0, 0x0, 0x0, 0x0 ]
6  Version:
7    Major:           1
8    Minor:           0
9  FileSize:        4612
10  PartCount:       8
11  PartOffsets:     [ 64, 80, 148, 208, 488, 740, 2468, 2496 ]
12Parts:
13  - Name:            SFI0
14    Size:            8
15    Flags:
16      Doubles:         false
17      ComputeShadersPlusRawAndStructuredBuffers: false
18      UAVsAtEveryStage: false
19      Max64UAVs:       false
20      MinimumPrecision: false
21      DX11_1_DoubleExtensions: false
22      DX11_1_ShaderExtensions: false
23      LEVEL9ComparisonFiltering: false
24      TiledResources:  false
25      StencilRef:      false
26      InnerCoverage:   false
27      TypedUAVLoadAdditionalFormats: false
28      ROVs:            false
29      ViewportAndRTArrayIndexFromAnyShaderFeedingRasterizer: false
30      WaveOps:         false
31      Int64Ops:        false
32      ViewID:          true
33      Barycentrics:    false
34      NativeLowPrecision: false
35      ShadingRate:     false
36      Raytracing_Tier_1_1: false
37      SamplerFeedback: false
38      AtomicInt64OnTypedResource: false
39      AtomicInt64OnGroupShared: false
40      DerivativesInMeshAndAmpShaders: false
41      ResourceDescriptorHeapIndexing: false
42      SamplerDescriptorHeapIndexing: false
43      RESERVED:        false
44      AtomicInt64OnHeapResource: false
45      AdvancedTextureOps: false
46      WriteableMSAATextures: false
47      NextUnusedBit:   false
48  - Name:            ISG1
49    Size:            60
50  - Name:            OSG1
51    Size:            52
52  - Name:            PSG1
53    Size:            272
54  - Name:            PSV0
55    Size:            244
56    PSVInfo:
57      Version:         2
58      ShaderStage:     3
59      InputControlPointCount: 32
60      OutputControlPointCount: 16
61      TessellatorDomain: 3
62      TessellatorOutputPrimitive: 3
63      MinimumWaveLaneCount: 0
64      MaximumWaveLaneCount: 4294967295
65      UsesViewID:      1
66      SigPatchConstOrPrimVectors: 7
67      SigInputVectors: 1
68      SigOutputVectors: [ 1, 0, 0, 0 ]
69      NumThreadsX:     0
70      NumThreadsY:     0
71      NumThreadsZ:     0
72      ResourceStride:  24
73      Resources:       []
74      SigInputElements:
75        - Name:            Sem_HSFoo_Input_qq
76          Indices:         [ 0 ]
77          StartRow:        0
78          Cols:            4
79          StartCol:        0
80          Allocated:       true
81          Kind:            Arbitrary
82          ComponentType:   Float32
83          Interpolation:   Linear
84          DynamicMask:     0x0
85          Stream:          0
86      SigOutputElements:
87        - Name:            Sem_HSFoo
88          Indices:         [ 0 ]
89          StartRow:        0
90          Cols:            4
91          StartCol:        0
92          Allocated:       true
93          Kind:            Arbitrary
94          ComponentType:   Float32
95          Interpolation:   Linear
96          DynamicMask:     0x0
97          Stream:          0
98      SigPatchOrPrimElements:
99        - Name:            ''
100          Indices:         [ 0, 1, 2, 3 ]
101          StartRow:        0
102          Cols:            1
103          StartCol:        3
104          Allocated:       true
105          Kind:            TessFactor
106          ComponentType:   Float32
107          Interpolation:   Undefined
108          DynamicMask:     0x0
109          Stream:          0
110        - Name:            ''
111          Indices:         [ 0, 1 ]
112          StartRow:        4
113          Cols:            1
114          StartCol:        3
115          Allocated:       true
116          Kind:            InsideTessFactor
117          ComponentType:   Float32
118          Interpolation:   Undefined
119          DynamicMask:     0x0
120          Stream:          0
121        - Name:            AAA
122          Indices:         [ 0 ]
123          StartRow:        6
124          Cols:            4
125          StartCol:        0
126          Allocated:       true
127          Kind:            Arbitrary
128          ComponentType:   Float32
129          Interpolation:   Undefined
130          DynamicMask:     0x0
131          Stream:          0
132      OutputVectorMasks:
133        - [ 0x4 ]
134        - [  ]
135        - [  ]
136        - [  ]
137      PatchOrPrimMasks: [ 0x800080 ]
138      InputOutputMap:
139        - [ 0x5, 0x2, 0x4, 0xC ]
140        - [  ]
141        - [  ]
142        - [  ]
143      InputPatchMap:   [ 0x880000, 0x8888, 0x800000, 0x880000 ]
144  - Name:            STAT
145    Size:            1720
146  - Name:            HASH
147    Size:            20
148    Hash:
149      IncludesSource:  false
150      Digest:          [ 0xF4, 0x87, 0x4C, 0x40, 0xFD, 0x7A, 0x89, 0xFE,
151                         0x1F, 0xC3, 0xAB, 0x8C, 0xC7, 0x18, 0xA9, 0xA ]
152  - Name:            DXIL
153    Size:            24
154    Program:
155      MajorVersion:    6
156      MinorVersion:    1
157      ShaderKind:      3
158      Size:            5627
159      DXILMajorVersion: 1
160      DXILMinorVersion: 1
161      DXILSize:        0
162...
163
164# Verify the vector sizes and ViewID use.
165# CHECK: UsesViewID:      1
166# CHECK-NEXT: SigPatchConstOrPrimVectors: 7
167# CHECK-NEXT: SigInputVectors: 1
168# CHECK-NEXT: SigOutputVectors: [ 1, 0, 0, 0 ]
169
170# Verify the vector encodings.
171# CHECK: OutputVectorMasks:
172# CHECK-NEXT:   - [ 0x4 ]
173# CHECK-NEXT:   - [  ]
174# CHECK-NEXT:   - [  ]
175# CHECK-NEXT:   - [  ]
176# CHECK-NEXT: PatchOrPrimMasks: [ 0x800080 ]
177# CHECK-NEXT: InputOutputMap:
178# CHECK-NEXT:   - [ 0x5, 0x2, 0x4, 0xC ]
179# CHECK-NEXT:   - [  ]
180# CHECK-NEXT:   - [  ]
181# CHECK-NEXT:   - [  ]
182