57 lines · yaml
1# RUN: yaml2obj %s | obj2yaml | FileCheck %s2 3## This test checks that we correctly compute the RootParametersOffset and4## StaticSamplersOffset when they are not explicitly provided5 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## = 11613 14# CHECK: RootParametersOffset: 2415# 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 NumStaticSamplers: 033 Parameters:34 - ParameterType: Constants32Bit35 ShaderVisibility: All36 Constants:37 Num32BitValues: 1638 ShaderRegister: 1539 RegisterSpace: 1440 - ParameterType: SRV41 ShaderVisibility: All42 Descriptor:43 ShaderRegister: 3144 RegisterSpace: 3245 DATA_STATIC_WHILE_SET_AT_EXECUTE: true46 - ParameterType: DescriptorTable47 ShaderVisibility: All48 Table:49 NumRanges: 150 Ranges:51 - RangeType: CBuffer52 NumDescriptors: -153 BaseShaderRegister: 4254 RegisterSpace: 4355 OffsetInDescriptorsFromTableStart: 4156 DESCRIPTORS_STATIC_KEEPING_BUFFER_BOUNDS_CHECKS: true57