Skip to content

Commit 3094a75

Browse files
author
joaosaffran
committed
cleanup
1 parent e655315 commit 3094a75

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

llvm/include/llvm/BinaryFormat/DXContainer.h

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -585,8 +585,18 @@ struct ProgramSignatureElement {
585585

586586
static_assert(sizeof(ProgramSignatureElement) == 32,
587587
"ProgramSignatureElement is misaligned");
588+
588589
namespace RTS0 {
589590
namespace v1 {
591+
struct RootDescriptor {
592+
uint32_t ShaderRegister;
593+
uint32_t RegisterSpace;
594+
void swapBytes() {
595+
sys::swapByteOrder(ShaderRegister);
596+
sys::swapByteOrder(RegisterSpace);
597+
}
598+
};
599+
590600
// following dx12 naming
591601
// https://learn.microsoft.com/en-us/windows/win32/api/d3d12/ns-d3d12-d3d12_root_constants
592602
struct RootConstants {
@@ -630,15 +640,6 @@ struct RootSignatureHeader {
630640
sys::swapByteOrder(Flags);
631641
}
632642
};
633-
634-
struct RootDescriptor {
635-
uint32_t ShaderRegister;
636-
uint32_t RegisterSpace;
637-
void swapBytes() {
638-
sys::swapByteOrder(ShaderRegister);
639-
sys::swapByteOrder(RegisterSpace);
640-
}
641-
};
642643
} // namespace v1
643644

644645
namespace v2 {

0 commit comments

Comments
 (0)