aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/ObjectYAML/DXContainer/RootSignature-Invalid-RootParameterOffset.yaml
blob: 22606761fe5baaaa575c1da341c4eae041a3d7aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# RUN: not yaml2obj %s 2>&1 | FileCheck %s

# CHECK: error: Specified RootParametersOffset does not match required value: 24.

--- !dxcontainer
Header:
  Hash:            [ 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
                     0x0, 0x0, 0x0, 0x0, 0x0, 0x0 ]
  Version:
    Major:           1
    Minor:           0
  PartCount:       1
  PartOffsets:     [ 60 ]
Parts:
  - Name:            RTS0
    Size:            24
    RootSignature:
      Version: 2
      NumRootParameters: 0
      RootParametersOffset: 36
      NumStaticSamplers: 0
      StaticSamplersOffset: 24
      Parameters: []