2025-02-07 14:19:19 -08:00
|
|
|
//===- llvm/MC/DXContainerRootSignature.cpp - RootSignature -*- C++ -*-=======//
|
|
|
|
//
|
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "llvm/MC/DXContainerRootSignature.h"
|
|
|
|
#include "llvm/Support/EndianStream.h"
|
|
|
|
|
|
|
|
using namespace llvm;
|
|
|
|
using namespace llvm::mcdxbc;
|
|
|
|
|
2025-02-13 14:16:01 -08:00
|
|
|
void RootSignatureDesc::write(raw_ostream &OS) const {
|
2025-02-07 14:19:19 -08:00
|
|
|
|
|
|
|
support::endian::write(OS, Version, llvm::endianness::little);
|
|
|
|
support::endian::write(OS, NumParameters, llvm::endianness::little);
|
|
|
|
support::endian::write(OS, RootParametersOffset, llvm::endianness::little);
|
|
|
|
support::endian::write(OS, NumStaticSamplers, llvm::endianness::little);
|
|
|
|
support::endian::write(OS, StaticSamplersOffset, llvm::endianness::little);
|
|
|
|
support::endian::write(OS, Flags, llvm::endianness::little);
|
|
|
|
}
|