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.0 variants)5 6## StaticSamplerOffset7## = 24 (root signature header)8## + 12 (header) + 12 (root constants)9## + 12 (header) + 8 (v1.1 root descriptor)10## + 12 (header) + 8 (root descriptor table)11## + 20 (v1.1 descriptor range)12## + 0 (root flags)13## = 10814 15# CHECK: StaticSamplersOffset: 10816 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: 10829 RootSignature:30 Version: 131 NumRootParameters: 332 RootParametersOffset: 2433 NumStaticSamplers: 034 StaticSamplersOffset: 10835 Parameters:36 - ParameterType: Constants32Bit37 ShaderVisibility: All38 Constants:39 Num32BitValues: 1640 ShaderRegister: 1541 RegisterSpace: 1442 - ParameterType: CBV43 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