brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · 73e89c2 Raw
61 lines · yaml
1# RUN: yaml2obj %s | obj2yaml | FileCheck %s2 3## This test checks that we correctly compute the StaticSamplersOffset for each4## of the root parameter types (version 1.1 variants)5 6## StaticSamplerOffset7##  = 24 (root signature header)8##  + 12 (header) + 12 (root constants)9##  + 12 (header) + 12 (v1.1 root descriptor)10##  + 12 (header) + 8 (root descriptor table)11##  + 24 (v1.1 descriptor range)12##  + 0 (root flags)13##  = 11614 15# CHECK: StaticSamplersOffset: 11616 17--- !dxcontainer18Header:19  Hash:            [ 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,20                     0x0, 0x0, 0x0, 0x0, 0x0, 0x0 ]21  Version:22    Major:           123    Minor:           024  PartCount:       125  PartOffsets:     [ 60 ]26Parts:27  - Name:            RTS028    Size:            11629    RootSignature:30      Version: 231      NumRootParameters: 332      RootParametersOffset: 2433      NumStaticSamplers: 034      StaticSamplersOffset: 11635      Parameters:36      - ParameterType: Constants32Bit37        ShaderVisibility: All38        Constants:39          Num32BitValues: 1640          ShaderRegister: 1541          RegisterSpace: 1442      - ParameterType: SRV43        ShaderVisibility: All44        Descriptor:45          ShaderRegister: 3146          RegisterSpace: 3247          DATA_STATIC_WHILE_SET_AT_EXECUTE: true48      - ParameterType: DescriptorTable49        ShaderVisibility: All50        Table:51          NumRanges: 152          Ranges:53            - RangeType: CBuffer54              NumDescriptors: -155              BaseShaderRegister: 4256              RegisterSpace: 4357              OffsetInDescriptorsFromTableStart: 4158              DESCRIPTORS_STATIC_KEEPING_BUFFER_BOUNDS_CHECKS: true59      AllowInputAssemblerInputLayout: true60      DenyGeometryShaderRootAccess: true61