aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/ObjectYAML/DXContainer/RootSignature-StaticSamplerOffset1.1.yaml
blob: 73e89c2dbe3369b2faa356a814fbb5607258917e (plain)
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
# RUN: yaml2obj %s | obj2yaml | FileCheck %s

## This test checks that we correctly compute the StaticSamplersOffset for each
## of the root parameter types (version 1.1 variants)

## StaticSamplerOffset
##  = 24 (root signature header)
##  + 12 (header) + 12 (root constants)
##  + 12 (header) + 12 (v1.1 root descriptor)
##  + 12 (header) + 8 (root descriptor table)
##  + 24 (v1.1 descriptor range)
##  + 0 (root flags)
##  = 116

# CHECK: StaticSamplersOffset: 116

--- !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:            116
    RootSignature:
      Version: 2
      NumRootParameters: 3
      RootParametersOffset: 24
      NumStaticSamplers: 0
      StaticSamplersOffset: 116
      Parameters:
      - ParameterType: Constants32Bit
        ShaderVisibility: All
        Constants:
          Num32BitValues: 16
          ShaderRegister: 15
          RegisterSpace: 14
      - ParameterType: SRV
        ShaderVisibility: All
        Descriptor:
          ShaderRegister: 31
          RegisterSpace: 32
          DATA_STATIC_WHILE_SET_AT_EXECUTE: true
      - ParameterType: DescriptorTable
        ShaderVisibility: All
        Table:
          NumRanges: 1
          Ranges:
            - RangeType: CBuffer
              NumDescriptors: -1
              BaseShaderRegister: 42
              RegisterSpace: 43
              OffsetInDescriptorsFromTableStart: 41
              DESCRIPTORS_STATIC_KEEPING_BUFFER_BOUNDS_CHECKS: true
      AllowInputAssemblerInputLayout: true
      DenyGeometryShaderRootAccess: true