https://github.com/shader-slang/slang
Raw File
Tip revision: da4545ce486e982205cff3d212fed0d51603ccb0 authored by Yong He on 13 October 2023, 20:42:08 UTC
Update a1-04-interop.md
Tip revision: da4545c
slang-ir-com-interface.h
// slang-ir-com-interface.cpp
#pragma once

#include "../compiler-core/slang-artifact.h"

namespace Slang
{

struct IRModule;
class DiagnosticSink;

/// Lower com interface types.
/// A use of `IRInterfaceType` with `IRComInterfaceDecoration` will be translated into a `IRComPtr` type.
/// A use of `IRThisType` with a COM interface will also be translated into a `IRComPtr` type.
void lowerComInterfaces(IRModule* module, ArtifactStyle artifactStyle, DiagnosticSink* sink);

}
back to top