| # RUN: yaml2obj %s -o %t |
| # RUN: not obj2yaml 2>&1 %t | FileCheck %s -DFILE=%t |
| |
| # CHECK: Error reading file: [[FILE]]: Invalid value for shader visibility |
| |
| |
| --- !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: 80 |
| RootSignature: |
| Version: 2 |
| NumRootParameters: 2 |
| RootParametersOffset: 24 |
| NumStaticSamplers: 0 |
| StaticSamplersOffset: 64 |
| Parameters: |
| - ParameterType: 1 # Constants32Bit |
| ShaderVisibility: 255 # INVALID |
| Constants: |
| Num32BitValues: 21 |
| ShaderRegister: 22 |
| RegisterSpace: 23 |
| AllowInputAssemblerInputLayout: true |
| DenyGeometryShaderRootAccess: true |