| # RUN: yaml2obj %s | obj2yaml | FileCheck %s |
| |
| --- !dxcontainer |
| Header: |
| Hash: [ 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, |
| 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 ] |
| Version: |
| Major: 1 |
| Minor: 0 |
| FileSize: 220 |
| PartCount: 1 |
| PartOffsets: [ 36 ] |
| Parts: |
| - Name: SRCI |
| Size: 176 |
| SourceInfo: |
| Header: |
| AlignedSizeInBytes: 176 |
| Flags: 0 |
| SectionCount: 3 |
| Names: |
| SectionHeader: |
| AlignedSizeInBytes: 48 |
| Flags: 0 |
| Type: SourceNames |
| Header: |
| Flags: 0 |
| Count: 1 |
| EntriesSizeInBytes: 28 |
| Entries: |
| - AlignedSizeInBytes: 28 |
| Flags: 0 |
| NameSizeInBytes: 11 |
| ContentSizeInBytes: 40 |
| FileName: fd_zs.hlsl |
| Contents: |
| SectionHeader: |
| AlignedSizeInBytes: 80 |
| Flags: 0 |
| Type: SourceContents |
| Header: |
| AlignedSizeInBytes: 72 |
| Flags: 0 |
| Type: None |
| EntriesSizeInBytes: 52 |
| UncompressedEntriesSizeInBytes: 52 |
| Count: 1 |
| Entries: |
| - AlignedSizeInBytes: 52 |
| Flags: 0 |
| ContentSizeInBytes: 40 |
| FileContent: 'float4 main() : SV_Target { return 0; }' |
| Args: |
| SectionHeader: |
| AlignedSizeInBytes: 40 |
| Flags: 0 |
| Type: Args |
| Header: |
| Flags: 0 |
| SizeInBytes: 18 |
| Count: 2 |
| Args: |
| - Arg: '-T' |
| Value: ps_6_0 |
| - Arg: '-E' |
| Value: main |
| ... |
| |
| # CHECK: - Name: SRCI |
| # CHECK-NEXT: Size: 176 |
| # CHECK-NEXT: SourceInfo: |
| # CHECK-NEXT: Header: |
| # CHECK-NEXT: AlignedSizeInBytes: 176 |
| # CHECK-NEXT: Flags: 0 |
| # CHECK-NEXT: SectionCount: 3 |
| # CHECK-NEXT: Names: |
| # CHECK-NEXT: SectionHeader: |
| # CHECK-NEXT: AlignedSizeInBytes: 48 |
| # CHECK-NEXT: Flags: 0 |
| # CHECK-NEXT: Type: SourceNames |
| # CHECK-NEXT: Header: |
| # CHECK-NEXT: Flags: 0 |
| # CHECK-NEXT: Count: 1 |
| # CHECK-NEXT: EntriesSizeInBytes: 28 |
| # CHECK-NEXT: Entries: |
| # CHECK-NEXT: - AlignedSizeInBytes: 28 |
| # CHECK-NEXT: Flags: 0 |
| # CHECK-NEXT: NameSizeInBytes: 11 |
| # CHECK-NEXT: ContentSizeInBytes: 40 |
| # CHECK-NEXT: FileName: fd_zs.hlsl |
| # CHECK-NEXT: Contents: |
| # CHECK-NEXT: SectionHeader: |
| # CHECK-NEXT: AlignedSizeInBytes: 80 |
| # CHECK-NEXT: Flags: 0 |
| # CHECK-NEXT: Type: SourceContents |
| # CHECK-NEXT: Header: |
| # CHECK-NEXT: AlignedSizeInBytes: 72 |
| # CHECK-NEXT: Flags: 0 |
| # CHECK-NEXT: Type: None |
| # CHECK-NEXT: EntriesSizeInBytes: 52 |
| # CHECK-NEXT: UncompressedEntriesSizeInBytes: 52 |
| # CHECK-NEXT: Count: 1 |
| # CHECK-NEXT: Entries: |
| # CHECK-NEXT: - AlignedSizeInBytes: 52 |
| # CHECK-NEXT: Flags: 0 |
| # CHECK-NEXT: ContentSizeInBytes: 40 |
| # CHECK-NEXT: FileContent: 'float4 main() : SV_Target { return 0; }' |
| # CHECK-NEXT: Args: |
| # CHECK-NEXT: SectionHeader: |
| # CHECK-NEXT: AlignedSizeInBytes: 40 |
| # CHECK-NEXT: Flags: 0 |
| # CHECK-NEXT: Type: Args |
| # CHECK-NEXT: Header: |
| # CHECK-NEXT: Flags: 0 |
| # CHECK-NEXT: SizeInBytes: 18 |
| # CHECK-NEXT: Count: 2 |
| # CHECK-NEXT: Args: |
| # CHECK-NEXT: - Arg: '-T' |
| # CHECK-NEXT: Value: ps_6_0 |
| # CHECK-NEXT: - Arg: '-E' |
| # CHECK-NEXT: Value: main |