LLVM 23.0.0git
llvm::dxbc::SourceInfo::Contents::Entry Struct Reference

#include "llvm/BinaryFormat/DXContainer.h"

Public Member Functions

void swapBytes ()
 Followed by a string of length ContentSizeInBytes-1 with HLSL source file content.

Public Attributes

uint32_t AlignedSizeInBytes
 Size of entry, including this header. Aligned to a 4-byte boundary.
uint32_t Flags
 Reserved, must be zero.
uint32_t ContentSizeInBytes
 Size of the file contents following this header, including the null terminator, excluding entry padding.

Detailed Description

Definition at line 986 of file DXContainer.h.

Member Function Documentation

◆ swapBytes()

void llvm::dxbc::SourceInfo::Contents::Entry::swapBytes ( )
inline

Followed by a string of length ContentSizeInBytes-1 with HLSL source file content.

Entry is aligned to 4-bytes (in uncompressed form). Entries of this section must be stored in the same order as the entries of the Names section.

Definition at line 1000 of file DXContainer.h.

References AlignedSizeInBytes, ContentSizeInBytes, Flags, and llvm::sys::swapByteOrder().

Member Data Documentation

◆ AlignedSizeInBytes

uint32_t llvm::dxbc::SourceInfo::Contents::Entry::AlignedSizeInBytes

Size of entry, including this header. Aligned to a 4-byte boundary.

Definition at line 988 of file DXContainer.h.

Referenced by swapBytes().

◆ ContentSizeInBytes

uint32_t llvm::dxbc::SourceInfo::Contents::Entry::ContentSizeInBytes

Size of the file contents following this header, including the null terminator, excluding entry padding.

Definition at line 993 of file DXContainer.h.

Referenced by llvm::mcdxbc::SourceInfoBuilder::computeEntries(), and swapBytes().

◆ Flags

uint32_t llvm::dxbc::SourceInfo::Contents::Entry::Flags

Reserved, must be zero.

Definition at line 990 of file DXContainer.h.

Referenced by swapBytes().


The documentation for this struct was generated from the following file: