https://github.com/shader-slang/slang
Raw File
Tip revision: d386e27dc319b2feb362acd430ff5c640d8c6fba authored by jsmall-nvidia on 02 June 2020, 19:26:51 UTC
Added spGetBuildTagString. (#1365)
Tip revision: d386e27
slang-ir-union.h
// slang-ir-union.h
#pragma once

namespace Slang {

struct IRModule;

    /// Desugar any unions types, and code using them, in `module`
    ///
    /// Union types will be replaced with ordinary `struct` types that store
    /// the data of the underlying type as a "bag of bits" and references
    /// to cases of the union will be replaced with logic to extract the
    /// relevant bits.
    ///
void desugarUnionTypes(
    IRModule*       module);

} // namespace Slang
back to top