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: 3836 10 PartCount: 7 11 PartOffsets: [ 60, 76, 204, 292, 584, 2092, 2120 ] 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: 120 50 - Name: OSG1 51 Size: 80 52 - Name: PSV0 53 Size: 284 54 PSVInfo: 55 Version: 2 56 ShaderStage: 2 57 InputPrimitive: 3 58 OutputTopology: 1 59 OutputStreamMask: 3 60 OutputPositionPresent: 0 61 MinimumWaveLaneCount: 0 62 MaximumWaveLaneCount: 4294967295 63 UsesViewID: 1 64 MaxVertexCount: 3 65 SigInputVectors: 3 66 SigOutputVectors: [ 1, 1, 0, 0 ] 67 NumThreadsX: 0 68 NumThreadsY: 0 69 NumThreadsZ: 0 70 ResourceStride: 24 71 Resources: [] 72 SigInputElements: 73 - Name: '' 74 Indices: [ 0 ] 75 StartRow: 0 76 Cols: 4 77 StartCol: 0 78 Allocated: true 79 Kind: Position 80 ComponentType: Float32 81 Interpolation: LinearNoperspective 82 DynamicMask: 0x0 83 Stream: 0 84 - Name: AAA 85 Indices: [ 2 ] 86 StartRow: 1 87 Cols: 2 88 StartCol: 0 89 Allocated: true 90 Kind: Arbitrary 91 ComponentType: Float32 92 Interpolation: Linear 93 DynamicMask: 0x0 94 Stream: 0 95 - Name: AAA 96 Indices: [ 3 ] 97 StartRow: 2 98 Cols: 4 99 StartCol: 0 100 Allocated: true 101 Kind: Arbitrary 102 ComponentType: Float32 103 Interpolation: Linear 104 DynamicMask: 0x0 105 Stream: 0 106 SigOutputElements: 107 - Name: BBB 108 Indices: [ 0 ] 109 StartRow: 0 110 Cols: 4 111 StartCol: 0 112 Allocated: true 113 Kind: Arbitrary 114 ComponentType: Float32 115 Interpolation: Linear 116 DynamicMask: 0x0 117 Stream: 0 118 - Name: CCC 119 Indices: [ 0 ] 120 StartRow: 0 121 Cols: 4 122 StartCol: 0 123 Allocated: true 124 Kind: Arbitrary 125 ComponentType: Float32 126 Interpolation: Linear 127 DynamicMask: 0x0 128 Stream: 1 129 SigPatchOrPrimElements: [] 130 OutputVectorMasks: 131 - [ 0xE ] 132 - [ 0x5 ] 133 - [ ] 134 - [ ] 135 InputOutputMap: 136 - [ 0x2, 0x4, 0x8, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 ] 137 - [ 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0x2, 0x4, 0x8 ] 138 - [ ] 139 - [ ] 140 - Name: STAT 141 Size: 1500 142 - Name: HASH 143 Size: 20 144 Hash: 145 IncludesSource: false 146 Digest: [ 0x10, 0xA2, 0x84, 0xA5, 0x76, 0xA6, 0x28, 0x82, 147 0x21, 0x39, 0x1, 0xE0, 0x53, 0x19, 0xBE, 0x79 ] 148 - Name: DXIL 149 Size: 24 150 Program: 151 MajorVersion: 6 152 MinorVersion: 1 153 ShaderKind: 2 154 Size: 6 155 DXILMajorVersion: 1 156 DXILMinorVersion: 1 157 DXILSize: 0 158... 159 160# Verify the vector sizes. 161# CHECK: SigInputVectors: 3 162# CHECK-NEXT: SigOutputVectors: [ 1, 1, 0, 0 ] 163 164# Verify the vector mask encodings. 165# CHECK: OutputVectorMasks: 166# CHECK-NEXT: - [ 0xE ] 167# CHECK-NEXT: - [ 0x5 ] 168# CHECK-NEXT: - [ ] 169# CHECK-NEXT: - [ ] 170# CHECK-NEXT: InputOutputMap: 171# CHECK-NEXT: - [ 0x2, 0x4, 0x8, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 ] 172# CHECK-NEXT: - [ 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0x2, 0x4, 0x8 ] 173# CHECK-NEXT: - [ ] 174# CHECK-NEXT: - [ ] 175