mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-27 05:28:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
8 changed files with 784842 additions and 0 deletions
1
Brutal.Slang/Generated/Classes.gen.cs
Normal file
1
Brutal.Slang/Generated/Classes.gen.cs
Normal file
|
|
@ -0,0 +1 @@
|
|||
namespace Brutal.SlangApi { }
|
||||
13
Brutal.Slang/Generated/Constants.gen.cs
Normal file
13
Brutal.Slang/Generated/Constants.gen.cs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
namespace Brutal.SlangApi
|
||||
{
|
||||
public static partial class Constants
|
||||
{
|
||||
public const int ApiVersion = 0;
|
||||
public const int FacilityBase = 0x200;
|
||||
public const int FacilityExternalBase = 0x210;
|
||||
public const int FacilityWinApi = 7;
|
||||
public const int FacilityWinGeneral = 0;
|
||||
public const int FacilityWinInterface = 4;
|
||||
public const int Ok = 0;
|
||||
};
|
||||
}
|
||||
862
Brutal.Slang/Generated/Enumerations.gen.cs
Normal file
862
Brutal.Slang/Generated/Enumerations.gen.cs
Normal file
|
|
@ -0,0 +1,862 @@
|
|||
namespace Brutal.SlangApi
|
||||
{
|
||||
public enum CompilerOptionName
|
||||
{
|
||||
MacroDefine = 0, // stringValue0: macro name; stringValue1: macro value
|
||||
DepFile = 1,
|
||||
EntryPointName = 2,
|
||||
Specialize = 3,
|
||||
Help = 4,
|
||||
HelpStyle = 5,
|
||||
Include = 6, // stringValue: additional include path.
|
||||
Language = 7,
|
||||
MatrixLayoutColumn = 8, // bool
|
||||
MatrixLayoutRow = 9, // bool
|
||||
ZeroInitialize = 10, // bool
|
||||
IgnoreCapabilities = 11, // bool
|
||||
RestrictiveCapabilityCheck = 12, // bool
|
||||
ModuleName = 13, // stringValue0: module name.
|
||||
Output = 14,
|
||||
Profile = 15, // intValue0: profile
|
||||
Stage = 16, // intValue0: stage
|
||||
Target = 17, // intValue0: CodeGenTarget
|
||||
Version = 18,
|
||||
WarningsAsErrors = 19, // stringValue0: "all" or comma-separated list ofwarning codes or names.
|
||||
DisableWarnings = 20, // stringValue0: comma separated list of warning codes or names.
|
||||
EnableWarning = 21, // stringValue0: warning code or name.
|
||||
DisableWarning = 22, // stringValue0: warning code or name.
|
||||
DumpWarningDiagnostics = 23,
|
||||
InputFilesRemain = 24,
|
||||
EmitIR = 25, // bool
|
||||
ReportDownstreamTime = 26, // bool
|
||||
ReportPerfBenchmark = 27, // bool
|
||||
ReportCheckpointIntermediates = 28, // bool
|
||||
SkipSpirvValidation = 29, // bool
|
||||
SourceEmbedStyle = 30,
|
||||
SourceEmbedName = 31,
|
||||
SourceEmbedLanguage = 32,
|
||||
DisableShortCircuit = 33, // bool
|
||||
MinimumSlangOptimization = 34, // bool
|
||||
DisableNonEssentialValidations = 35, // bool
|
||||
DisableSourceMap = 36, // bool
|
||||
UnscopedEnum = 37, // bool
|
||||
PreserveParameters = 38, // bool: preserve all resource parameters in the output code.
|
||||
Capability = 39, // intValue0: CapabilityName
|
||||
DefaultImageFormatUnknown = 40, // bool
|
||||
DisableDynamicDispatch = 41, // bool
|
||||
DisableSpecialization = 42, // bool
|
||||
FloatingPointMode = 43, // intValue0: FloatingPointMode
|
||||
DebugInformation = 44, // intValue0: DebugInfoLevel
|
||||
LineDirectiveMode = 45,
|
||||
Optimization = 46, // intValue0: OptimizationLevel
|
||||
Obfuscate = 47, // bool
|
||||
VulkanBindShift = 48, // intValue0 (higher 8 bits): kind; intValue0(lower bits): set;intValue1: shift
|
||||
VulkanBindGlobals = 49, // intValue0: index; intValue1: set
|
||||
VulkanInvertY = 50, // bool
|
||||
VulkanUseDxPositionW = 51, // bool
|
||||
VulkanUseEntryPointName = 52, // bool
|
||||
VulkanUseGlLayout = 53, // bool
|
||||
VulkanEmitReflection = 54, // bool
|
||||
GlslForceScalarLayout = 55, // bool
|
||||
EnableEffectAnnotations = 56, // bool
|
||||
EmitSpirvViaGlsl = 57, // bool (will be deprecated)
|
||||
EmitSpirvDirectly = 58, // bool (will be deprecated)
|
||||
SpirvCoreGrammarJson = 59, // stringValue0: json path
|
||||
IncompleteLibrary = 60, // bool, when set, will not issue an error when the linked programhas unresolved extern function symbols.
|
||||
|
||||
/// Downstream
|
||||
Path = 61,
|
||||
|
||||
/// Downstream
|
||||
DefaultDownstreamCompiler = 62,
|
||||
DownstreamArgs = 63, // stringValue0: downstream compiler name. stringValue1: argument list,one per line.
|
||||
PassThrough = 64,
|
||||
|
||||
/// Repro
|
||||
DumpRepro = 65,
|
||||
|
||||
/// Repro
|
||||
DumpReproOnError = 66,
|
||||
|
||||
/// Repro
|
||||
ExtractRepro = 67,
|
||||
|
||||
/// Repro
|
||||
LoadRepro = 68,
|
||||
|
||||
/// Repro
|
||||
LoadReproDirectory = 69,
|
||||
|
||||
/// Repro
|
||||
ReproFallbackDirectory = 70,
|
||||
|
||||
/// Debugging
|
||||
DumpAst = 71,
|
||||
|
||||
/// Debugging
|
||||
DumpIntermediatePrefix = 72,
|
||||
DumpIntermediates = 73, // bool
|
||||
DumpIR = 74, // bool
|
||||
DumpIRIds = 75,
|
||||
PreprocessorOutput = 76,
|
||||
OutputIncludes = 77,
|
||||
ReproFileSystem = 78,
|
||||
REMOVEDSerialIR = 79, // deprecated and removed; value must never be reused
|
||||
SkipCodeGen = 80, // bool
|
||||
ValidateIR = 81, // bool
|
||||
VerbosePaths = 82,
|
||||
VerifyDebugSerialIR = 83,
|
||||
NoCodeGen = 84, // Not used.
|
||||
|
||||
/// Experimental
|
||||
FileSystem = 85,
|
||||
|
||||
/// Experimental
|
||||
Heterogeneous = 86,
|
||||
|
||||
/// Experimental
|
||||
NoMangle = 87,
|
||||
|
||||
/// Experimental
|
||||
NoHlslBinding = 88,
|
||||
|
||||
/// Experimental
|
||||
NoHlslPackConstantBufferElements = 89,
|
||||
|
||||
/// Experimental
|
||||
ValidateUniformity = 90,
|
||||
|
||||
/// Experimental
|
||||
AllowGlsl = 91,
|
||||
|
||||
/// Experimental
|
||||
EnableExperimentalPasses = 92,
|
||||
BindlessSpaceIndex = 93, // int
|
||||
SpirvResourceHeapStride = 94, // int: byte stride for SPIRV resource descriptor heap
|
||||
SpirvSamplerHeapStride = 95, // int: byte stride for SPIRV sampler descriptor heap
|
||||
|
||||
/// Internal
|
||||
ArchiveType = 96,
|
||||
|
||||
/// Internal
|
||||
CompileCoreModule = 97,
|
||||
|
||||
/// Internal
|
||||
Doc = 98,
|
||||
IRCompression = 99, // deprecated; value must never be reused
|
||||
LoadCoreModule = 100,
|
||||
ReferenceModule = 101,
|
||||
SaveCoreModule = 102,
|
||||
SaveCoreModuleBinSource = 103,
|
||||
TrackLiveness = 104,
|
||||
LoopInversion = 105, // bool, enable loop inversion optimization
|
||||
ParameterBlocksUseRegisterSpaces = 106, // Deprecated; value must never be reused
|
||||
LanguageVersion = 107, // intValue0: SlangLanguageVersion
|
||||
TypeConformance = 108, // stringValue0: type conformance to link; format:"<TypeName>:<IInterfaceName>[=<sequentialId>]",e.g. "Impl:IFoo=3" or "Impl:IFoo".
|
||||
EnableExperimentalDynamicDispatch = 109, // bool, experimental
|
||||
EmitReflectionJson = 110, // bool
|
||||
CountOfParsableOptions = 111, // historical sentinel; value must not be reused
|
||||
DebugInformationFormat = 112, // intValue0: DebugInfoFormat (derived from -g; no direct CLIflag)
|
||||
VulkanBindShiftAll = 113, // intValue0: kind; intValue1: shift (derived from-fvk-x-shift; no direct CLI flag)
|
||||
GenerateWholeProgram = 114, // bool
|
||||
UseUpToDateBinaryModule = 115, // bool, when set, will only load precompiled modulesif up-to-date with source. (API-only; no direct CLI flag)
|
||||
EmbedDownstreamIR = 116, // bool
|
||||
ForceDxLayout = 117, // bool
|
||||
EmitSpirvMethod = 118, // enum SlangEmitSpirvMethod (derived; no direct CLI flag)
|
||||
SaveGlslModuleBinSource = 119,
|
||||
SkipDownstreamLinking = 120, // bool, experimental (API-only; no direct CLI flag)
|
||||
DumpModule = 121,
|
||||
GetModuleInfo = 122, // Print serialized module version and name
|
||||
GetSupportedModuleVersions = 123, // Print the min and max module versions this compilersupports
|
||||
EmitSeparateDebug = 124, // bool
|
||||
|
||||
/// Floating point denormal handling modes
|
||||
DenormalModeFp16 = 125,
|
||||
|
||||
/// Floating point denormal handling modes
|
||||
DenormalModeFp32 = 126,
|
||||
|
||||
/// Floating point denormal handling modes
|
||||
DenormalModeFp64 = 127,
|
||||
UseMsvcStyleBitfieldPacking = 128, // bool
|
||||
ForceCLayout = 129, // bool
|
||||
ExperimentalFeature = 130, // bool, enable experimental features
|
||||
ReportDetailedPerfBenchmark = 131, // bool, reports detailed compiler performance benchmarkresults
|
||||
ValidateIRDetailed = 132, // bool, enable detailed IR validation
|
||||
DumpIRBefore = 133, // string, pass name to dump IR before
|
||||
DumpIRAfter = 134, // string, pass name to dump IR after
|
||||
EmitCpuMethod = 135, // enum SlangEmitCPUMethod (derived; no direct CLI flag)
|
||||
EmitCpuViaCpp = 136, // bool
|
||||
EmitCpuViaLlvm = 137, // bool
|
||||
LlvmTargetTriple = 138, // string
|
||||
LlvmCpu = 139, // string
|
||||
LlvmFeatures = 140, // string
|
||||
EnableRichDiagnostics = 141, // bool, enable the experimental rich diagnostics
|
||||
ReportDynamicDispatchSites = 142, // bool
|
||||
EnableMachineReadableDiagnostics = 143, // bool, enable machine-readable diagnostic output(implies EnableRichDiagnostics)
|
||||
DiagnosticColor = 144, // intValue0: SlangDiagnosticColor (always, never, auto)
|
||||
|
||||
/// Add new options HERE, immediately before CountOf.
|
||||
CountOf,
|
||||
}
|
||||
|
||||
public enum CompilerOptionValueKind
|
||||
{
|
||||
Int = 0,
|
||||
String = 1,
|
||||
}
|
||||
|
||||
public enum BuiltinModuleName
|
||||
{
|
||||
Core = 0,
|
||||
Glsl = 1,
|
||||
}
|
||||
|
||||
public enum ContainerType
|
||||
{
|
||||
None = 0,
|
||||
UnsizedArray = 1,
|
||||
StructuredBuffer = 2,
|
||||
ConstantBuffer = 3,
|
||||
ParameterBlock = 4,
|
||||
}
|
||||
|
||||
public enum OperandDataType
|
||||
{
|
||||
General = 0, // General data type, can be any type.
|
||||
Int32 = 1, // 32-bit integer.
|
||||
Int64 = 2, // 64-bit integer.
|
||||
Float32 = 3, // 32-bit floating-point number.
|
||||
Float64 = 4, // 64-bit floating-point number.
|
||||
String = 5, // String data type, represented as a pointer to a null-terminated string.
|
||||
}
|
||||
|
||||
public enum Severity : SeverityIntegral
|
||||
{
|
||||
Disabled = 0, // < A message that is disabled, filtered out.
|
||||
Note = 1, // < An informative message.
|
||||
Warning = 2, // < A warning, which indicates a possible problem.
|
||||
Error = 3, // < An error, indicating that compilation failed.
|
||||
Fatal = 4, // < An unrecoverable error, which forced compilation to abort.
|
||||
Internal = 5,
|
||||
}
|
||||
|
||||
public enum BindableResourceType : BindableResourceIntegral
|
||||
{
|
||||
NonBindable = 0,
|
||||
Texture = 1,
|
||||
Sampler = 2,
|
||||
UniformBuffer = 3,
|
||||
StorageBuffer = 4,
|
||||
}
|
||||
|
||||
public enum CompileTarget : CompileTargetIntegral
|
||||
{
|
||||
TargetUnknown = 0,
|
||||
TargetNone = 1,
|
||||
Glsl = 2,
|
||||
GlslVulkanDeprecated = 3, // < deprecated and removed: just use `SLANG_GLSL`.
|
||||
GlslVulkanOneDescDeprecated = 4, // < deprecated and removed.
|
||||
Hlsl = 5,
|
||||
Spirv = 6,
|
||||
SpirvAsm = 7,
|
||||
Dxbc = 8,
|
||||
DxbcAsm = 9,
|
||||
Dxil = 10,
|
||||
DxilAsm = 11,
|
||||
CSource = 12, // < The C language
|
||||
CppSource = 13, // < C++ code for shader kernels.
|
||||
HostExecutable = 14, // < Standalone binary executable (for hosting CPU/OS)
|
||||
ShaderSharedLibrary = 15, // < A shared library/Dll for shader kernels (for hosting< CPU/OS)
|
||||
ShaderHostCallable = 16, // < A CPU target that makes the compiled shader code< available to be run immediately
|
||||
CudaSource = 17, // < Cuda source
|
||||
Ptx = 18, // < PTX
|
||||
CudaObjectCode = 19, // < Object code that contains CUDA functions.
|
||||
ObjectCode = 20, // < Object code that can be used for later linking (kernel/shader)
|
||||
HostCppSource = 21, // < C++ code for host library or executable.
|
||||
HostHostCallable = 22, // < Host callable host code (ie non kernel/shader)
|
||||
CppPytorchBinding = 23, // < C++ PyTorch binding code.
|
||||
Metal = 24, // < Metal shading language
|
||||
MetalLib = 25, // < Metal library
|
||||
MetalLibAsm = 26, // < Metal library assembly
|
||||
HostSharedLibrary = 27, // < A shared library/Dll for host code (for hosting CPU/OS)
|
||||
Wgsl = 28, // < WebGPU shading language
|
||||
WgslSpirvAsm = 29, // < SPIR-V assembly via WebGPU shading language
|
||||
WgslSpirv = 30, // < SPIR-V via WebGPU shading language
|
||||
HostVm = 31, // < Bytecode that can be interpreted by the Slang VM
|
||||
CppHeader = 32, // < C++ header for shader kernels.
|
||||
CudaHeader = 33, // < Cuda header
|
||||
HostObjectCode = 34, // < Host object code
|
||||
HostLlvmIR = 35, // < Host LLVM IR assembly
|
||||
ShaderLlvmIR = 36, // < Host LLVM IR assembly (kernel/shader)
|
||||
TargetCountOf,
|
||||
}
|
||||
|
||||
public enum ContainerFormat : ContainerFormatIntegral
|
||||
{
|
||||
/// Don't generate a container.
|
||||
None = 0,
|
||||
|
||||
/// Generate a container in the `.slang-module` format,
|
||||
/// which includes reflection information, compiled kernels, etc.
|
||||
SlangModule = 1,
|
||||
}
|
||||
|
||||
public enum PassThrough : PassThroughIntegral
|
||||
{
|
||||
None = 0,
|
||||
Fxc = 1,
|
||||
Dxc = 2,
|
||||
Glslang = 3,
|
||||
SpirvDis = 4,
|
||||
Clang = 5, // < Clang C/C++ compiler
|
||||
VisualStudio = 6, // < Visual studio C/C++ compiler
|
||||
GCC = 7, // < GCC C/C++ compiler
|
||||
GenericCCpp = 8, // < Generic C or C++ compiler, which is decided by< the source type
|
||||
Nvrtc = 9, // < NVRTC Cuda compiler
|
||||
Llvm = 10, // < LLVM 'compiler' - includes LLVM and Clang
|
||||
SpirvOpt = 11, // < SPIRV-opt
|
||||
Metal = 12, // < Metal compiler
|
||||
Tint = 13, // < Tint WGSL compiler
|
||||
SpirvLink = 14, // < SPIRV-link
|
||||
CountOf,
|
||||
}
|
||||
|
||||
public enum ArchiveType : ArchiveTypeIntegral
|
||||
{
|
||||
Undefined = 0,
|
||||
Zip = 1,
|
||||
Riff = 2, // < Riff container with no compression
|
||||
RiffDeflate = 3,
|
||||
RiffLz4 = 4,
|
||||
CountOf,
|
||||
}
|
||||
|
||||
public enum FloatingPointMode : FloatingPointModeIntegral
|
||||
{
|
||||
Default = 0,
|
||||
Fast = 1,
|
||||
Precise = 2,
|
||||
}
|
||||
|
||||
public enum FpDenormalMode : FpDenormalModeIntegral
|
||||
{
|
||||
DenormModeAny = 0,
|
||||
DenormModePreserve = 1,
|
||||
DenormModeFtz = 2,
|
||||
}
|
||||
|
||||
public enum LineDirectiveMode : LineDirectiveModeIntegral
|
||||
{
|
||||
Default = 0,
|
||||
None = 1, // < Don't emit line directives at all.
|
||||
Standard = 2, // < Emit standard C-style `#line` directives.
|
||||
Glsl = 3, // < Emit GLSL-style directives with file *number*instead of name
|
||||
SourceMap = 4, // < Use a source map to track line mappings (ieno #line will appear in emitting source)
|
||||
}
|
||||
|
||||
public enum SourceLanguage : SourceLanguageIntegral
|
||||
{
|
||||
Unknown = 0,
|
||||
Slang = 1,
|
||||
Hlsl = 2,
|
||||
Glsl = 3,
|
||||
C = 4,
|
||||
Cpp = 5,
|
||||
Cuda = 6,
|
||||
Spirv = 7,
|
||||
Metal = 8,
|
||||
Wgsl = 9,
|
||||
Llvm = 10,
|
||||
CountOf,
|
||||
}
|
||||
|
||||
public enum ProfileID : ProfileIDIntegral
|
||||
{
|
||||
Unknown = 0,
|
||||
}
|
||||
|
||||
public enum CapabilityID : CapabilityIDIntegral
|
||||
{
|
||||
Unknown = 0,
|
||||
}
|
||||
|
||||
public enum MatrixLayoutMode : MatrixLayoutModeIntegral
|
||||
{
|
||||
Unknown = 0,
|
||||
RowMajor = 1,
|
||||
ColumnMajor = 2,
|
||||
}
|
||||
|
||||
public enum Stage : StageIntegral
|
||||
{
|
||||
None = 0,
|
||||
Vertex = 1,
|
||||
Hull = 2,
|
||||
Domain = 3,
|
||||
Geometry = 4,
|
||||
Fragment = 5,
|
||||
Compute = 6,
|
||||
RayGeneration = 7,
|
||||
Intersection = 8,
|
||||
AnyHit = 9,
|
||||
ClosestHit = 10,
|
||||
Miss = 11,
|
||||
Callable = 12,
|
||||
Mesh = 13,
|
||||
Amplification = 14,
|
||||
Dispatch = 15,
|
||||
|
||||
///
|
||||
Count,
|
||||
|
||||
/// alias:
|
||||
Pixel = Fragment,
|
||||
}
|
||||
|
||||
public enum CooperativeMatrixUse : CooperativeMatrixUseIntegral
|
||||
{
|
||||
A = 0,
|
||||
B = 1,
|
||||
Accumulator = 2,
|
||||
}
|
||||
|
||||
public enum CooperativeVectorMatrixLayout : CooperativeVectorMatrixLayoutIntegral
|
||||
{
|
||||
RowMajor = 0,
|
||||
ColumnMajor = 1,
|
||||
InferencingOptimal = 2,
|
||||
TrainingOptimal = 3,
|
||||
}
|
||||
|
||||
public enum DebugInfoLevel : DebugInfoLevelIntegral
|
||||
{
|
||||
None = 0, // < Don't emit debug information at all.
|
||||
Minimal = 1, // < Emit as little debug information as possible,while still supporting stack trackers.
|
||||
Standard = 2, // < Emit whatever is the standard level of debuginformation for each target.
|
||||
Maximal = 3, // < Emit as much debug information as possible foreach target.
|
||||
}
|
||||
|
||||
public enum DebugInfoFormat : DebugInfoFormatIntegral
|
||||
{
|
||||
Default = 0, // < Use the default debugging format for the target
|
||||
C7 = 1, // < CodeView C7 format (typically means debugging< information is embedded in the binary)
|
||||
Pdb = 2, // < Program database
|
||||
Stabs = 3, // < Stabs
|
||||
Coff = 4, // < COFF debug info
|
||||
Dwarf = 5, // < DWARF debug info (we may want to support specifying< the version)
|
||||
CountOf,
|
||||
}
|
||||
|
||||
public enum OptimizationLevel : OptimizationLevelIntegral
|
||||
{
|
||||
None = 0, // < Don't optimize at all.
|
||||
Default = 1, // < Default optimization level: balance code qualityand compilation time.
|
||||
High = 2, // < Optimize aggressively.
|
||||
Maximal = 3, // < Include optimizations that may take a very longtime, or may involve severe space-vs-speedtradeoffs
|
||||
}
|
||||
|
||||
public enum EmitSpirvMethod : uint
|
||||
{
|
||||
Default = 0,
|
||||
ViaGlsl = 1,
|
||||
Directly = 2,
|
||||
}
|
||||
|
||||
public enum EmitCpuMethod : uint
|
||||
{
|
||||
Default = 0,
|
||||
ViaCpp = 1,
|
||||
ViaLlvm = 2,
|
||||
}
|
||||
|
||||
public enum DiagnosticColor : uint
|
||||
{
|
||||
Auto = 0, // Use color if output sink is a tty
|
||||
Always = 1, // Always use color
|
||||
Never = 2, // Never use color
|
||||
}
|
||||
|
||||
public enum PathType : PathTypeIntegral
|
||||
{
|
||||
Directory = 0, // < Path specified specifies a directory.
|
||||
File = 1, // < Path specified is to a file.
|
||||
}
|
||||
|
||||
/// Determines how paths map to files on the OS file system
|
||||
public enum OSPathKind : byte
|
||||
{
|
||||
None = 0, // < Paths do not map to the file system
|
||||
Direct = 1, // < Paths map directly to the file system
|
||||
OperatingSystem = 2, // < Only paths gained via PathKind::OperatingSystem map to the< operating system file system
|
||||
}
|
||||
|
||||
/// Used to determine what kind of path is required from an input path
|
||||
public enum PathKind
|
||||
{
|
||||
/// Given a path, returns a simplified version of that path.
|
||||
/// This typically means removing '..' and/or '.' from the path.
|
||||
/// A simplified path must point to the same object as the original.
|
||||
Simplified = 0,
|
||||
|
||||
/// Given a path, returns a 'canonical path' to the item.
|
||||
/// This may be the operating system 'canonical path' that is the unique path to the item.
|
||||
///
|
||||
/// If the item exists the returned canonical path should always be usable to access the
|
||||
/// item.
|
||||
///
|
||||
/// If the item the path specifies doesn't exist, the canonical path may not be returnable
|
||||
/// or be a path simplification.
|
||||
/// Not all file systems support canonical paths.
|
||||
Canonical = 1,
|
||||
|
||||
/// Given a path returns a path such that it is suitable to be displayed to the user.
|
||||
///
|
||||
/// For example if the file system is a zip file - it might include the path to the zip
|
||||
/// container as well as the path to the specific file.
|
||||
///
|
||||
/// NOTE! The display path won't necessarily work on the file system to access the item
|
||||
Display = 2,
|
||||
|
||||
/// Get the path to the item on the *operating system* file system, if available.
|
||||
OperatingSystem = 3,
|
||||
|
||||
/// Get the path to the item on the *operating system* file system, if available.
|
||||
CountOf,
|
||||
}
|
||||
|
||||
public enum WriterChannel : WriterChannelIntegral
|
||||
{
|
||||
Diagnostic = 0,
|
||||
StdOutput = 1,
|
||||
StdError = 2,
|
||||
CountOf,
|
||||
}
|
||||
|
||||
public enum WriterMode : WriterModeIntegral
|
||||
{
|
||||
Text = 0,
|
||||
Binary = 1,
|
||||
}
|
||||
|
||||
public enum ReflectionGenericArgType : uint
|
||||
{
|
||||
GenericArgType = 0,
|
||||
GenericArgInt = 1,
|
||||
GenericArgBool = 2,
|
||||
}
|
||||
|
||||
public enum TypeKind : TypeKindIntegral
|
||||
{
|
||||
None = 0,
|
||||
Struct = 1,
|
||||
Array = 2,
|
||||
Matrix = 3,
|
||||
Vector = 4,
|
||||
Scalar = 5,
|
||||
ConstantBuffer = 6,
|
||||
Resource = 7,
|
||||
SamplerState = 8,
|
||||
TextureBuffer = 9,
|
||||
ShaderStorageBuffer = 10,
|
||||
ParameterBlock = 11,
|
||||
GenericTypeParameter = 12,
|
||||
Interface = 13,
|
||||
OutputStream = 14,
|
||||
MeshOutput = 15,
|
||||
Specialized = 16,
|
||||
Feedback = 17,
|
||||
Pointer = 18,
|
||||
DynamicResource = 19,
|
||||
Enum = 20,
|
||||
Count,
|
||||
}
|
||||
|
||||
public enum ScalarType : ScalarTypeIntegral
|
||||
{
|
||||
None = 0,
|
||||
Void = 1,
|
||||
Bool = 2,
|
||||
Int32 = 3,
|
||||
UInt32 = 4,
|
||||
Int64 = 5,
|
||||
UInt64 = 6,
|
||||
Float16 = 7,
|
||||
Float32 = 8,
|
||||
Float64 = 9,
|
||||
Int8 = 10,
|
||||
UInt8 = 11,
|
||||
Int16 = 12,
|
||||
UInt16 = 13,
|
||||
IntPtr = 14,
|
||||
UIntPtr = 15,
|
||||
BFloat16 = 16,
|
||||
FloatE4M3 = 17,
|
||||
FloatE5M2 = 18,
|
||||
}
|
||||
|
||||
public enum DeclKind : DeclKindIntegral
|
||||
{
|
||||
UnsupportedForReflection = 0,
|
||||
Struct = 1,
|
||||
Func = 2,
|
||||
Module = 3,
|
||||
Generic = 4,
|
||||
Variable = 5,
|
||||
Namespace = 6,
|
||||
Enum = 7,
|
||||
}
|
||||
|
||||
public enum ResourceShape : ResourceShapeIntegral
|
||||
{
|
||||
BaseShapeMask = 0X0F,
|
||||
None = 0X00,
|
||||
Texture1D = 0X01,
|
||||
Texture2D = 0X02,
|
||||
Texture3D = 0X03,
|
||||
TextureCube = 0X04,
|
||||
TextureBuffer = 0X05,
|
||||
StructuredBuffer = 0X06,
|
||||
ByteAddressBuffer = 0X07,
|
||||
Unknown = 0X08,
|
||||
AccelerationStructure = 0X09,
|
||||
TextureSubpass = 0X0A,
|
||||
ExtShapeMask = 0X1F0,
|
||||
TextureFeedbackFlag = 0X10,
|
||||
TextureShadowFlag = 0X20,
|
||||
TextureArrayFlag = 0X40,
|
||||
TextureMultisampleFlag = 0X80,
|
||||
TextureCombinedFlag = 0X100,
|
||||
Texture1DArray = Texture1D | TextureArrayFlag,
|
||||
Texture2DArray = Texture2D | TextureArrayFlag,
|
||||
TextureCubeArray = TextureCube | TextureArrayFlag,
|
||||
Texture2DMultisample = Texture2D | TextureMultisampleFlag,
|
||||
Texture2DMultisampleArray = Texture2D | TextureMultisampleFlag | TextureArrayFlag,
|
||||
TextureSubpassMultisample = TextureSubpass | TextureMultisampleFlag,
|
||||
}
|
||||
|
||||
public enum ResourceAccess : ResourceAccessIntegral
|
||||
{
|
||||
None = 0,
|
||||
Read = 1,
|
||||
ReadWrite = 2,
|
||||
RasterOrdered = 3,
|
||||
Append = 4,
|
||||
Consume = 5,
|
||||
Write = 6,
|
||||
Feedback = 7,
|
||||
Unknown = 0X7FFFFFFF,
|
||||
}
|
||||
|
||||
public enum ParameterCategory : ParameterCategoryIntegral
|
||||
{
|
||||
None = 0,
|
||||
Mixed = 1,
|
||||
ConstantBuffer = 2,
|
||||
ShaderResource = 3,
|
||||
UnorderedAccess = 4,
|
||||
VaryingInput = 5,
|
||||
VaryingOutput = 6,
|
||||
SamplerState = 7,
|
||||
Uniform = 8,
|
||||
DescriptorTableSlot = 9,
|
||||
SpecializationConstant = 10,
|
||||
PushConstantBuffer = 11,
|
||||
|
||||
/// HLSL register `space`, Vulkan GLSL `set`
|
||||
RegisterSpace = 12,
|
||||
|
||||
/// A parameter whose type is to be specialized by a global generic type argument
|
||||
Generic = 13,
|
||||
|
||||
/// A parameter whose type is to be specialized by a global generic type argument
|
||||
RayPayload = 14,
|
||||
|
||||
/// A parameter whose type is to be specialized by a global generic type argument
|
||||
HitAttributes = 15,
|
||||
|
||||
/// A parameter whose type is to be specialized by a global generic type argument
|
||||
CallablePayload = 16,
|
||||
|
||||
/// A parameter whose type is to be specialized by a global generic type argument
|
||||
ShaderRecord = 17,
|
||||
|
||||
/// An existential type parameter represents a "hole" that
|
||||
/// needs to be filled with a concrete type to enable
|
||||
/// generation of specialized code.
|
||||
///
|
||||
/// Consider this example:
|
||||
///
|
||||
/// struct MyParams
|
||||
/// {
|
||||
/// IMaterial material;
|
||||
/// ILight lights[3];
|
||||
/// };
|
||||
///
|
||||
/// This `MyParams` type introduces two existential type parameters:
|
||||
/// one for `material` and one for `lights`. Even though `lights`
|
||||
/// is an array, it only introduces one type parameter, because
|
||||
/// we need to have a *single* concrete type for all the array
|
||||
/// elements to be able to generate specialized code.
|
||||
ExistentialTypeParam = 18,
|
||||
|
||||
/// An existential object parameter represents a value
|
||||
/// that needs to be passed in to provide data for some
|
||||
/// interface-type shader parameter.
|
||||
///
|
||||
/// Consider this example:
|
||||
///
|
||||
/// struct MyParams
|
||||
/// {
|
||||
/// IMaterial material;
|
||||
/// ILight lights[3];
|
||||
/// };
|
||||
///
|
||||
/// This `MyParams` type introduces four existential object parameters:
|
||||
/// one for `material` and three for `lights` (one for each array
|
||||
/// element). This is consistent with the number of interface-type
|
||||
/// "objects" that are being passed through to the shader.
|
||||
ExistentialObjectParam = 19,
|
||||
|
||||
/// The register space offset for the sub-elements that occupies register spaces.
|
||||
SubElementRegisterSpace = 20,
|
||||
|
||||
/// The input_attachment_index subpass occupancy tracker
|
||||
Subpass = 21,
|
||||
|
||||
/// Metal tier-1 argument buffer element [[id]].
|
||||
MetalArgumentBufferElement = 22,
|
||||
|
||||
/// Metal [[attribute]] inputs.
|
||||
MetalAttribute = 23,
|
||||
|
||||
/// Metal [[payload]] inputs
|
||||
MetalPayload = 24,
|
||||
|
||||
///
|
||||
Count,
|
||||
|
||||
/// Aliases for Metal-specific categories.
|
||||
MetalBuffer = ConstantBuffer,
|
||||
|
||||
/// Aliases for Metal-specific categories.
|
||||
MetalTexture = ShaderResource,
|
||||
|
||||
/// Aliases for Metal-specific categories.
|
||||
MetalSampler = SamplerState,
|
||||
|
||||
/// DEPRECATED:
|
||||
VertexInput = VaryingInput,
|
||||
|
||||
/// DEPRECATED:
|
||||
FragmentOutput = VaryingOutput,
|
||||
|
||||
/// DEPRECATED:
|
||||
CountV1 = Subpass,
|
||||
}
|
||||
|
||||
public enum BindingType : BindingTypeIntegral
|
||||
{
|
||||
Unknown = 0,
|
||||
Sampler = 1,
|
||||
Texture = 2,
|
||||
ConstantBuffer = 3,
|
||||
ParameterBlock = 4,
|
||||
TypedBuffer = 5,
|
||||
RawBuffer = 6,
|
||||
CombinedTextureSampler = 7,
|
||||
InputRenderTarget = 8,
|
||||
InlineUniformData = 9,
|
||||
RayTracingAccelerationStructure = 10,
|
||||
VaryingInput = 11,
|
||||
VaryingOutput = 12,
|
||||
ExistentialValue = 13,
|
||||
PushConstant = 14,
|
||||
MutableFlag = 0X100,
|
||||
MutableTexture = Texture | MutableFlag,
|
||||
MutableTypedBuffer = TypedBuffer | MutableFlag,
|
||||
MutableRawBuffer = RawBuffer | MutableFlag,
|
||||
BaseMask = 0X00FF,
|
||||
ExtMask = 0XFF00,
|
||||
}
|
||||
|
||||
public enum LayoutRules : LayoutRulesIntegral
|
||||
{
|
||||
Default = 0,
|
||||
MetalArgumentBufferTier2 = 1,
|
||||
DefaultStructuredBuffer = 2,
|
||||
DefaultConstantBuffer = 3,
|
||||
}
|
||||
|
||||
public enum ModifierID : ModifierIDIntegral
|
||||
{
|
||||
Shared = 0,
|
||||
NoDiff = 1,
|
||||
Static = 2,
|
||||
Const = 3,
|
||||
Export = 4,
|
||||
Extern = 5,
|
||||
Differentiable = 6,
|
||||
Mutating = 7,
|
||||
In = 8,
|
||||
Out = 9,
|
||||
InOut = 10,
|
||||
}
|
||||
|
||||
public enum ImageFormat : ImageFormatIntegral
|
||||
{
|
||||
Unknown,
|
||||
RGBA32F,
|
||||
RGBA16F,
|
||||
RG32F,
|
||||
RG16F,
|
||||
R11FG11FB10F,
|
||||
R32F,
|
||||
R16F,
|
||||
RGBA16,
|
||||
RGB10A2,
|
||||
RGBA8,
|
||||
RG16,
|
||||
RG8,
|
||||
R16,
|
||||
R8,
|
||||
RGBA16SNorm,
|
||||
RGBA8SNorm,
|
||||
RG16SNorm,
|
||||
RG8SNorm,
|
||||
R16SNorm,
|
||||
R8SNorm,
|
||||
RGBA32I,
|
||||
RGBA16I,
|
||||
RGBA8I,
|
||||
RG32I,
|
||||
RG16I,
|
||||
RG8I,
|
||||
R32I,
|
||||
R16I,
|
||||
R8I,
|
||||
RGBA32UI,
|
||||
RGBA16UI,
|
||||
RGB10A2UI,
|
||||
RGBA8UI,
|
||||
RG32UI,
|
||||
RG16UI,
|
||||
RG8UI,
|
||||
R32UI,
|
||||
R16UI,
|
||||
R8UI,
|
||||
R64UI,
|
||||
R64I,
|
||||
BGRA8,
|
||||
}
|
||||
|
||||
public enum LanguageVersion : uint
|
||||
{
|
||||
Unknown = 0,
|
||||
Legacy = 2018,
|
||||
_2025 = 2025,
|
||||
_2026 = 2026,
|
||||
Default = Legacy,
|
||||
Latest = _2026,
|
||||
}
|
||||
}
|
||||
72
Brutal.Slang/Generated/GlobalUsings.gen.cs
Normal file
72
Brutal.Slang/Generated/GlobalUsings.gen.cs
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
global using ArchiveTypeIntegral = int;
|
||||
global using BindableResourceIntegral = int;
|
||||
global using BindingTypeIntegral = uint;
|
||||
global using CapabilityIDIntegral = int;
|
||||
global using CompileCoreModuleFlags = uint;
|
||||
global using CompileFlags = uint;
|
||||
global using CompileTargetIntegral = int;
|
||||
global using ContainerFormatIntegral = int;
|
||||
global using CooperativeMatrixUseIntegral = uint;
|
||||
global using CooperativeVectorMatrixLayoutIntegral = uint;
|
||||
global using DebugInfoFormatIntegral = uint;
|
||||
global using DebugInfoLevelIntegral = uint;
|
||||
global using DeclKindIntegral = uint;
|
||||
global using unsafe DiagnosticCallback = delegate* unmanaged[Cdecl]<byte*, void*, void>;
|
||||
global using DiagnosticFlags = int;
|
||||
global using unsafe FileSystemContentsCallBack = delegate* unmanaged[Cdecl]<
|
||||
Brutal.SlangApi.PathType,
|
||||
byte*,
|
||||
void*,
|
||||
void>;
|
||||
global using FloatingPointModeIntegral = uint;
|
||||
global using FpDenormalModeIntegral = uint;
|
||||
global using unsafe FuncPtr = delegate* unmanaged[Cdecl]<void>;
|
||||
global using ImageFormatIntegral = uint;
|
||||
global using Int = long;
|
||||
global using Int32 = int;
|
||||
global using LayoutRulesIntegral = uint;
|
||||
global using LineDirectiveModeIntegral = uint;
|
||||
global using MatrixLayoutModeIntegral = uint;
|
||||
global using ModifierIDIntegral = uint;
|
||||
global using OptimizationLevelIntegral = uint;
|
||||
global using ParameterCategoryIntegral = uint;
|
||||
global using PassThroughIntegral = int;
|
||||
global using PathTypeIntegral = uint;
|
||||
global using ProfileIDIntegral = uint;
|
||||
global using ResourceAccessIntegral = uint;
|
||||
global using ResourceShapeIntegral = uint;
|
||||
global using ScalarTypeIntegral = uint;
|
||||
global using SessionFlags = uint;
|
||||
global using SeverityIntegral = int;
|
||||
global using Size = ulong;
|
||||
global using SourceLanguageIntegral = int;
|
||||
global using SSize = long;
|
||||
global using StageIntegral = uint;
|
||||
global using TargetFlags = uint;
|
||||
global using TypeKindIntegral = uint;
|
||||
global using UInt = ulong;
|
||||
global using UInt32 = uint;
|
||||
global using unsafe VMExtFunction = delegate* unmanaged[Cdecl]<nint, Brutal.SlangApi.VMExecInstHeader*, void*, void>;
|
||||
global using unsafe VMPrintFunc = delegate* unmanaged[Cdecl]<byte*, void*, void>;
|
||||
global using WriterChannelIntegral = uint;
|
||||
global using WriterModeIntegral = uint;
|
||||
global using Bool = Brutal.Bool8;
|
||||
global using CompileRequest = Brutal.SlangApi.ICompileRequest;
|
||||
global using EntryPointLayout = Brutal.SlangApi.EntryPointReflection;
|
||||
global using GenericArgType = Brutal.SlangApi.ReflectionGenericArgType;
|
||||
global using IBlob = Brutal.SlangApi.ISlangBlob;
|
||||
global using ProgramLayout = Brutal.SlangApi.ShaderReflection;
|
||||
global using Reflection = Brutal.SlangApi.ProgramLayout;
|
||||
global using ReflectionAttribute = Brutal.SlangApi.ReflectionUserAttribute;
|
||||
global using ReflectionDecl = Brutal.SlangApi.DeclReflection;
|
||||
global using ReflectionEntryPoint = Brutal.SlangApi.EntryPointLayout;
|
||||
global using ReflectionFunction = Brutal.SlangApi.FunctionReflection;
|
||||
global using ReflectionGeneric = Brutal.SlangApi.GenericReflection;
|
||||
global using ReflectionParameter = Brutal.SlangApi.VariableLayoutReflection;
|
||||
global using ReflectionType = Brutal.SlangApi.TypeReflection;
|
||||
global using ReflectionTypeLayout = Brutal.SlangApi.TypeLayoutReflection;
|
||||
global using ReflectionTypeParameter = Brutal.SlangApi.TypeParameterReflection;
|
||||
global using ReflectionVariable = Brutal.SlangApi.VariableReflection;
|
||||
global using ReflectionVariableLayout = Brutal.SlangApi.VariableLayoutReflection;
|
||||
global using Session = Brutal.SlangApi.IGlobalSession;
|
||||
global using UserAttribute = Brutal.SlangApi.Attribute;
|
||||
656
Brutal.Slang/Generated/Interfaces.gen.cs
Normal file
656
Brutal.Slang/Generated/Interfaces.gen.cs
Normal file
|
|
@ -0,0 +1,656 @@
|
|||
using System.Runtime.InteropServices;
|
||||
using System.Runtime.InteropServices.Marshalling;
|
||||
using Brutal.Interop;
|
||||
using Brutal.Strings;
|
||||
|
||||
namespace Brutal.SlangApi
|
||||
{
|
||||
[GeneratedComInterface]
|
||||
[Guid("00000000-0000-0000-c000-000000000046")]
|
||||
public unsafe partial interface ISlangUnknown
|
||||
{
|
||||
[PreserveSig]
|
||||
Result QueryInterface(ref Brutal.SlangApi.Uuid uuid, out void* outObject);
|
||||
|
||||
[PreserveSig]
|
||||
uint AddRef();
|
||||
|
||||
[PreserveSig]
|
||||
uint Release();
|
||||
};
|
||||
|
||||
[GeneratedComInterface]
|
||||
[Guid("87ede0e1-4852-44b0-8bf2-cb31874de239")]
|
||||
public unsafe partial interface ISlangCastable
|
||||
{
|
||||
[PreserveSig]
|
||||
void* CastAs(ref Brutal.SlangApi.Uuid guid);
|
||||
};
|
||||
|
||||
[GeneratedComInterface]
|
||||
[Guid("1ec36168-e9f4-430d-bb17-048a8046b31f")]
|
||||
public unsafe partial interface ISlangClonable : Brutal.SlangApi.ISlangCastable
|
||||
{
|
||||
[PreserveSig]
|
||||
void* Clone(ref Brutal.SlangApi.Uuid guid);
|
||||
};
|
||||
|
||||
[GeneratedComInterface]
|
||||
[Guid("8ba5fb08-5195-40e2-ac58-0d989c3a0102")]
|
||||
public unsafe partial interface ISlangBlob
|
||||
{
|
||||
[PreserveSig]
|
||||
void* GetBufferPointer();
|
||||
|
||||
[PreserveSig]
|
||||
ByteSize64 GetBufferSize();
|
||||
};
|
||||
|
||||
[GeneratedComInterface]
|
||||
[Guid("003a09fc-3a4d-4ba0-ad60-1fd863a915ab")]
|
||||
public unsafe partial interface ISlangFileSystem : Brutal.SlangApi.ISlangCastable
|
||||
{
|
||||
[PreserveSig]
|
||||
Result LoadFile(byte* path, out ISlangBlob outBlob);
|
||||
};
|
||||
|
||||
[GeneratedComInterface]
|
||||
[Guid("9c9d5bc5-eb61-496f-80d7-d147c4a23730")]
|
||||
public unsafe partial interface ISlangSharedLibrary_Dep1
|
||||
{
|
||||
[PreserveSig]
|
||||
void* FindSymbolAddressByName(byte* name);
|
||||
};
|
||||
|
||||
[GeneratedComInterface]
|
||||
[Guid("70dbc7c4-dc3b-4a07-ae7e-752af6a81555")]
|
||||
public unsafe partial interface ISlangSharedLibrary : Brutal.SlangApi.ISlangCastable
|
||||
{
|
||||
[PreserveSig]
|
||||
void* FindSymbolAddressByName(byte* name);
|
||||
};
|
||||
|
||||
[GeneratedComInterface]
|
||||
[Guid("6264ab2b-a3e8-4a06-97f1-49bc2d2ab14d")]
|
||||
public unsafe partial interface ISlangSharedLibraryLoader
|
||||
{
|
||||
[PreserveSig]
|
||||
Result LoadSharedLibrary(byte* path, out ISlangSharedLibrary sharedLibraryOut);
|
||||
};
|
||||
|
||||
[GeneratedComInterface]
|
||||
[Guid("5fb632d2-979d-4481-9fee-663c3f1449e1")]
|
||||
public unsafe partial interface ISlangFileSystemExt : Brutal.SlangApi.ISlangFileSystem
|
||||
{
|
||||
[PreserveSig]
|
||||
Result GetFileUniqueIdentity(byte* path, out ISlangBlob outUniqueIdentity);
|
||||
|
||||
[PreserveSig]
|
||||
Result CalcCombinedPath(
|
||||
Brutal.SlangApi.PathType fromPathType,
|
||||
byte* fromPath,
|
||||
byte* path,
|
||||
out ISlangBlob pathOut
|
||||
);
|
||||
|
||||
[PreserveSig]
|
||||
Result GetPathType(byte* path, out Brutal.SlangApi.PathType pathTypeOut);
|
||||
|
||||
[PreserveSig]
|
||||
Result GetPath(PathKind kind, byte* path, out ISlangBlob outPath);
|
||||
|
||||
[PreserveSig]
|
||||
void ClearCache();
|
||||
|
||||
[PreserveSig]
|
||||
Result EnumeratePathContents(byte* path, FileSystemContentsCallBack callback, void* userData);
|
||||
|
||||
[PreserveSig]
|
||||
OSPathKind GetOSPathKind();
|
||||
};
|
||||
|
||||
[GeneratedComInterface]
|
||||
[Guid("a058675c-1d65-452a-8458-ccded1427105")]
|
||||
public unsafe partial interface ISlangMutableFileSystem : Brutal.SlangApi.ISlangFileSystemExt
|
||||
{
|
||||
[PreserveSig]
|
||||
Result SaveFile(byte* path, void* data, ByteSize64 size);
|
||||
|
||||
[PreserveSig]
|
||||
Result SaveFileBlob(byte* path, ISlangBlob dataBlob);
|
||||
|
||||
[PreserveSig]
|
||||
Result Remove(byte* path);
|
||||
|
||||
[PreserveSig]
|
||||
Result CreateDirectory(byte* path);
|
||||
};
|
||||
|
||||
[GeneratedComInterface]
|
||||
[Guid("ec457f0e-9add-4e6b-851c-d7fa716d15fd")]
|
||||
public unsafe partial interface ISlangWriter
|
||||
{
|
||||
[PreserveSig]
|
||||
byte* BeginAppendBuffer(ByteSize64 maxNumChars);
|
||||
|
||||
[PreserveSig]
|
||||
Result EndAppendBuffer(byte* buffer, ByteSize64 numChars);
|
||||
|
||||
[PreserveSig]
|
||||
Result Write(byte* chars, ByteSize64 numChars);
|
||||
|
||||
[PreserveSig]
|
||||
void Flush();
|
||||
|
||||
[PreserveSig]
|
||||
Bool IsConsole();
|
||||
|
||||
[PreserveSig]
|
||||
Result SetMode(Brutal.SlangApi.WriterMode mode);
|
||||
};
|
||||
|
||||
[GeneratedComInterface]
|
||||
[Guid("197772c7-0155-4b91-84e8-6668baff0619")]
|
||||
public unsafe partial interface ISlangProfiler
|
||||
{
|
||||
[PreserveSig]
|
||||
ByteSize64 GetEntryCount();
|
||||
|
||||
[PreserveSig]
|
||||
byte* GetEntryName(uint index);
|
||||
|
||||
[PreserveSig]
|
||||
long GetEntryTimeMS(uint index);
|
||||
|
||||
[PreserveSig]
|
||||
uint GetEntryInvocationTimes(uint index);
|
||||
};
|
||||
|
||||
[GeneratedComInterface]
|
||||
[Guid("c140b5fd-0c78-452e-ba7c-1a1e70c7f71c")]
|
||||
public unsafe partial interface IGlobalSession
|
||||
{
|
||||
[PreserveSig]
|
||||
Result CreateSession(ref Brutal.SlangApi.SessionDesc desc, out Brutal.SlangApi.ISession outSession);
|
||||
|
||||
[PreserveSig]
|
||||
Brutal.SlangApi.ProfileID FindProfile(byte* name);
|
||||
|
||||
[PreserveSig]
|
||||
void SetDownstreamCompilerPath(Brutal.SlangApi.PassThrough passThrough, byte* path);
|
||||
|
||||
[PreserveSig]
|
||||
void SetDownstreamCompilerPrelude(Brutal.SlangApi.PassThrough passThrough, byte* preludeText);
|
||||
|
||||
[PreserveSig]
|
||||
void GetDownstreamCompilerPrelude(Brutal.SlangApi.PassThrough passThrough, out ISlangBlob outPrelude);
|
||||
|
||||
[PreserveSig]
|
||||
byte* GetBuildTagString();
|
||||
|
||||
[PreserveSig]
|
||||
Result SetDefaultDownstreamCompiler(
|
||||
Brutal.SlangApi.SourceLanguage sourceLanguage,
|
||||
Brutal.SlangApi.PassThrough defaultCompiler
|
||||
);
|
||||
|
||||
[PreserveSig]
|
||||
Brutal.SlangApi.PassThrough GetDefaultDownstreamCompiler(Brutal.SlangApi.SourceLanguage sourceLanguage);
|
||||
|
||||
[PreserveSig]
|
||||
void SetLanguagePrelude(Brutal.SlangApi.SourceLanguage sourceLanguage, byte* preludeText);
|
||||
|
||||
[PreserveSig]
|
||||
void GetLanguagePrelude(Brutal.SlangApi.SourceLanguage sourceLanguage, out ISlangBlob outPrelude);
|
||||
|
||||
[PreserveSig]
|
||||
Result CreateCompileRequest(out Brutal.SlangApi.ICompileRequest outCompileRequest);
|
||||
|
||||
[PreserveSig]
|
||||
void AddBuiltins(byte* sourcePath, byte* sourceString);
|
||||
|
||||
[PreserveSig]
|
||||
void SetSharedLibraryLoader(ISlangSharedLibraryLoader loader);
|
||||
|
||||
[PreserveSig]
|
||||
ISlangSharedLibraryLoader? GetSharedLibraryLoader();
|
||||
|
||||
[PreserveSig]
|
||||
Result CheckCompileTargetSupport(Brutal.SlangApi.CompileTarget target);
|
||||
|
||||
[PreserveSig]
|
||||
Result CheckPassThroughSupport(Brutal.SlangApi.PassThrough passThrough);
|
||||
|
||||
[PreserveSig]
|
||||
Result CompileCoreModule(CompileCoreModuleFlags flags);
|
||||
|
||||
[PreserveSig]
|
||||
Result LoadCoreModule(void* coreModule, ByteSize64 coreModuleSizeInBytes);
|
||||
|
||||
[PreserveSig]
|
||||
Result SaveCoreModule(Brutal.SlangApi.ArchiveType archiveType, out ISlangBlob outBlob);
|
||||
|
||||
[PreserveSig]
|
||||
Brutal.SlangApi.CapabilityID FindCapability(byte* name);
|
||||
|
||||
[PreserveSig]
|
||||
void SetDownstreamCompilerForTransition(
|
||||
Brutal.SlangApi.CompileTarget source,
|
||||
Brutal.SlangApi.CompileTarget target,
|
||||
Brutal.SlangApi.PassThrough compiler
|
||||
);
|
||||
|
||||
[PreserveSig]
|
||||
Brutal.SlangApi.PassThrough GetDownstreamCompilerForTransition(
|
||||
Brutal.SlangApi.CompileTarget source,
|
||||
Brutal.SlangApi.CompileTarget target
|
||||
);
|
||||
|
||||
[PreserveSig]
|
||||
void GetCompilerElapsedTime(out double outTotalTime, out double outDownstreamTime);
|
||||
|
||||
[PreserveSig]
|
||||
Result SetSpirvCoreGrammar(byte* jsonPath);
|
||||
|
||||
[PreserveSig]
|
||||
Result ParseCommandLineArguments(
|
||||
int argc,
|
||||
byte** argv,
|
||||
out Brutal.SlangApi.SessionDesc outSessionDesc,
|
||||
out ISlangUnknown outAuxAllocation
|
||||
);
|
||||
|
||||
[PreserveSig]
|
||||
Result GetSessionDescDigest(in Brutal.SlangApi.SessionDesc sessionDesc, out ISlangBlob outBlob);
|
||||
|
||||
[PreserveSig]
|
||||
Result CompileBuiltinModule(Brutal.SlangApi.BuiltinModuleName module, CompileCoreModuleFlags flags);
|
||||
|
||||
[PreserveSig]
|
||||
Result LoadBuiltinModule(Brutal.SlangApi.BuiltinModuleName module, void* moduleData, ByteSize64 sizeInBytes);
|
||||
|
||||
[PreserveSig]
|
||||
Result SaveBuiltinModule(
|
||||
Brutal.SlangApi.BuiltinModuleName module,
|
||||
Brutal.SlangApi.ArchiveType archiveType,
|
||||
out ISlangBlob outBlob
|
||||
);
|
||||
};
|
||||
|
||||
[GeneratedComInterface]
|
||||
[Guid("67618701-d116-468f-ab3b-474bedce0e3d")]
|
||||
public unsafe partial interface ISession
|
||||
{
|
||||
[PreserveSig]
|
||||
Brutal.SlangApi.IGlobalSession? GetGlobalSession();
|
||||
|
||||
[PreserveSig]
|
||||
Brutal.SlangApi.IModule? LoadModule(byte* moduleName, out IBlob outDiagnostics);
|
||||
|
||||
[PreserveSig]
|
||||
Brutal.SlangApi.IModule? LoadModuleFromSource(
|
||||
byte* moduleName,
|
||||
byte* path,
|
||||
IBlob source,
|
||||
out IBlob outDiagnostics
|
||||
);
|
||||
|
||||
[PreserveSig]
|
||||
Result CreateCompositeComponentType(
|
||||
nint* componentTypes,
|
||||
Int componentTypeCount,
|
||||
out Brutal.SlangApi.IComponentType outCompositeComponentType,
|
||||
out ISlangBlob outDiagnostics
|
||||
);
|
||||
|
||||
[PreserveSig]
|
||||
Brutal.SlangApi.TypeReflection SpecializeType(
|
||||
Brutal.SlangApi.TypeReflection type,
|
||||
in Brutal.SlangApi.SpecializationArg specializationArgs,
|
||||
Int specializationArgCount,
|
||||
out ISlangBlob outDiagnostics
|
||||
);
|
||||
|
||||
[PreserveSig]
|
||||
Brutal.SlangApi.TypeLayoutReflection GetTypeLayout(
|
||||
Brutal.SlangApi.TypeReflection type,
|
||||
Int targetIndex,
|
||||
Brutal.SlangApi.LayoutRules rules,
|
||||
out ISlangBlob outDiagnostics
|
||||
);
|
||||
|
||||
[PreserveSig]
|
||||
Brutal.SlangApi.TypeReflection GetContainerType(
|
||||
Brutal.SlangApi.TypeReflection elementType,
|
||||
Brutal.SlangApi.ContainerType containerType,
|
||||
out ISlangBlob outDiagnostics
|
||||
);
|
||||
|
||||
[PreserveSig]
|
||||
Brutal.SlangApi.TypeReflection GetDynamicType();
|
||||
|
||||
[PreserveSig]
|
||||
Result GetTypeRTTIMangledName(Brutal.SlangApi.TypeReflection type, out ISlangBlob outNameBlob);
|
||||
|
||||
[PreserveSig]
|
||||
Result GetTypeConformanceWitnessMangledName(
|
||||
Brutal.SlangApi.TypeReflection type,
|
||||
Brutal.SlangApi.TypeReflection interfaceType,
|
||||
out ISlangBlob outNameBlob
|
||||
);
|
||||
|
||||
[PreserveSig]
|
||||
Result GetTypeConformanceWitnessSequentialID(
|
||||
Brutal.SlangApi.TypeReflection type,
|
||||
Brutal.SlangApi.TypeReflection interfaceType,
|
||||
out uint outId
|
||||
);
|
||||
|
||||
[PreserveSig]
|
||||
Result CreateCompileRequest(out CompileRequest outCompileRequest);
|
||||
|
||||
[PreserveSig]
|
||||
Result CreateTypeConformanceComponentType(
|
||||
Brutal.SlangApi.TypeReflection type,
|
||||
Brutal.SlangApi.TypeReflection interfaceType,
|
||||
out Brutal.SlangApi.ITypeConformance outConformance,
|
||||
Int conformanceIdOverride,
|
||||
out ISlangBlob outDiagnostics
|
||||
);
|
||||
|
||||
[PreserveSig]
|
||||
Brutal.SlangApi.IModule? LoadModuleFromIRBlob(
|
||||
byte* moduleName,
|
||||
byte* path,
|
||||
IBlob source,
|
||||
out IBlob outDiagnostics
|
||||
);
|
||||
|
||||
[PreserveSig]
|
||||
Int GetLoadedModuleCount();
|
||||
|
||||
[PreserveSig]
|
||||
Brutal.SlangApi.IModule? GetLoadedModule(Int index);
|
||||
|
||||
[PreserveSig]
|
||||
Brutal.Bool8 IsBinaryModuleUpToDate(byte* modulePath, IBlob binaryModuleBlob);
|
||||
|
||||
[PreserveSig]
|
||||
Brutal.SlangApi.IModule? LoadModuleFromSourceString(
|
||||
byte* moduleName,
|
||||
byte* path,
|
||||
byte* @string,
|
||||
out IBlob outDiagnostics
|
||||
);
|
||||
|
||||
[PreserveSig]
|
||||
Result GetDynamicObjectRTTIBytes(
|
||||
Brutal.SlangApi.TypeReflection type,
|
||||
Brutal.SlangApi.TypeReflection interfaceType,
|
||||
out uint outRTTIDataBuffer,
|
||||
uint bufferSizeInBytes
|
||||
);
|
||||
|
||||
[PreserveSig]
|
||||
Result LoadModuleInfoFromIRBlob(
|
||||
IBlob source,
|
||||
ref Int outModuleVersion,
|
||||
ref byte* outModuleCompilerVersion,
|
||||
ref byte* outModuleName
|
||||
);
|
||||
|
||||
[PreserveSig]
|
||||
Result GetDeclSourceLocation(
|
||||
Brutal.SlangApi.DeclReflection decl,
|
||||
out Brutal.SlangApi.SourceLocation outLocation
|
||||
);
|
||||
};
|
||||
|
||||
[GeneratedComInterface]
|
||||
[Guid("5bc42be8-5c50-4929-9e5e-d15e7c24015f")]
|
||||
public unsafe partial interface IComponentType
|
||||
{
|
||||
[PreserveSig]
|
||||
Brutal.SlangApi.ISession? GetSession();
|
||||
|
||||
[PreserveSig]
|
||||
ProgramLayout GetLayout(Int targetIndex, out IBlob outDiagnostics);
|
||||
|
||||
[PreserveSig]
|
||||
Int GetSpecializationParamCount();
|
||||
|
||||
[PreserveSig]
|
||||
Result GetEntryPointCode(Int entryPointIndex, Int targetIndex, out IBlob outCode, out IBlob outDiagnostics);
|
||||
|
||||
[PreserveSig]
|
||||
Result GetResultAsFileSystem(Int entryPointIndex, Int targetIndex, out ISlangMutableFileSystem outFileSystem);
|
||||
|
||||
[PreserveSig]
|
||||
void GetEntryPointHash(Int entryPointIndex, Int targetIndex, out IBlob outHash);
|
||||
|
||||
[PreserveSig]
|
||||
Result Specialize(
|
||||
in Brutal.SlangApi.SpecializationArg specializationArgs,
|
||||
Int specializationArgCount,
|
||||
out Brutal.SlangApi.IComponentType outSpecializedComponentType,
|
||||
out ISlangBlob outDiagnostics
|
||||
);
|
||||
|
||||
[PreserveSig]
|
||||
Result Link(out Brutal.SlangApi.IComponentType outLinkedComponentType, out ISlangBlob outDiagnostics);
|
||||
|
||||
[PreserveSig]
|
||||
Result GetEntryPointHostCallable(
|
||||
int entryPointIndex,
|
||||
int targetIndex,
|
||||
out ISlangSharedLibrary outSharedLibrary,
|
||||
out IBlob outDiagnostics
|
||||
);
|
||||
|
||||
[PreserveSig]
|
||||
Result RenameEntryPoint(byte* newName, out Brutal.SlangApi.IComponentType outEntryPoint);
|
||||
|
||||
[PreserveSig]
|
||||
Result LinkWithOptions(
|
||||
out Brutal.SlangApi.IComponentType outLinkedComponentType,
|
||||
uint compilerOptionEntryCount,
|
||||
in Brutal.SlangApi.CompilerOptionEntry compilerOptionEntries,
|
||||
out ISlangBlob outDiagnostics
|
||||
);
|
||||
|
||||
[PreserveSig]
|
||||
Result GetTargetCode(Int targetIndex, out IBlob outCode, out IBlob outDiagnostics);
|
||||
|
||||
[PreserveSig]
|
||||
Result GetTargetMetadata(Int targetIndex, out Brutal.SlangApi.IMetadata outMetadata, out IBlob outDiagnostics);
|
||||
|
||||
[PreserveSig]
|
||||
Result GetEntryPointMetadata(
|
||||
Int entryPointIndex,
|
||||
Int targetIndex,
|
||||
out Brutal.SlangApi.IMetadata outMetadata,
|
||||
out IBlob outDiagnostics
|
||||
);
|
||||
};
|
||||
|
||||
[GeneratedComInterface]
|
||||
[Guid("0c720e64-8722-4d31-8990-638a98b1c279")]
|
||||
public unsafe partial interface IModule : Brutal.SlangApi.IComponentType
|
||||
{
|
||||
[PreserveSig]
|
||||
Result FindEntryPointByName(byte* name, out Brutal.SlangApi.IEntryPoint outEntryPoint);
|
||||
|
||||
[PreserveSig]
|
||||
Int32 GetDefinedEntryPointCount();
|
||||
|
||||
[PreserveSig]
|
||||
Result GetDefinedEntryPoint(Int32 index, out Brutal.SlangApi.IEntryPoint outEntryPoint);
|
||||
|
||||
[PreserveSig]
|
||||
Result Serialize(out ISlangBlob outSerializedBlob);
|
||||
|
||||
[PreserveSig]
|
||||
Result WriteToFile(byte* fileName);
|
||||
|
||||
[PreserveSig]
|
||||
byte* GetName();
|
||||
|
||||
[PreserveSig]
|
||||
byte* GetFilePath();
|
||||
|
||||
[PreserveSig]
|
||||
byte* GetUniqueIdentity();
|
||||
|
||||
[PreserveSig]
|
||||
Result FindAndCheckEntryPoint(
|
||||
byte* name,
|
||||
Brutal.SlangApi.Stage stage,
|
||||
out Brutal.SlangApi.IEntryPoint outEntryPoint,
|
||||
out ISlangBlob outDiagnostics
|
||||
);
|
||||
|
||||
[PreserveSig]
|
||||
Int32 GetDependencyFileCount();
|
||||
|
||||
[PreserveSig]
|
||||
byte* GetDependencyFilePath(Int32 index);
|
||||
|
||||
[PreserveSig]
|
||||
Brutal.SlangApi.DeclReflection GetModuleReflection();
|
||||
|
||||
[PreserveSig]
|
||||
Result Disassemble(out IBlob outDisassembledBlob);
|
||||
};
|
||||
|
||||
[GeneratedComInterface]
|
||||
[Guid("73eb3147-e544-41b5-b8f0-a244df21940b")]
|
||||
public unsafe partial interface ITypeConformance : Brutal.SlangApi.IComponentType { };
|
||||
|
||||
[GeneratedComInterface]
|
||||
[Guid("8044a8a3-ddc0-4b7f-af8e-026e905d7332")]
|
||||
public unsafe partial interface IMetadata : Brutal.SlangApi.ISlangCastable
|
||||
{
|
||||
[PreserveSig]
|
||||
Result IsParameterLocationUsed(
|
||||
Brutal.SlangApi.ParameterCategory category,
|
||||
UInt spaceIndex,
|
||||
UInt registerIndex,
|
||||
ref Brutal.Bool8 outUsed
|
||||
);
|
||||
|
||||
[PreserveSig]
|
||||
byte* GetDebugBuildIdentifier();
|
||||
};
|
||||
|
||||
[GeneratedComInterface]
|
||||
[Guid("5fa9380e-b62f-41e5-9f12-4bad4d9eaae4")]
|
||||
public unsafe partial interface ICompileResult : Brutal.SlangApi.ISlangCastable
|
||||
{
|
||||
[PreserveSig]
|
||||
uint GetItemCount();
|
||||
|
||||
[PreserveSig]
|
||||
Result GetItemData(uint index, out IBlob outblob);
|
||||
|
||||
[PreserveSig]
|
||||
Result GetMetadata(out Brutal.SlangApi.IMetadata outMetadata);
|
||||
};
|
||||
|
||||
[GeneratedComInterface]
|
||||
[Guid("8f241361-f5bd-4ca0-a3ac-02f7fa2402b8")]
|
||||
public unsafe partial interface IEntryPoint : Brutal.SlangApi.IComponentType
|
||||
{
|
||||
[PreserveSig]
|
||||
Brutal.SlangApi.FunctionReflection GetFunctionReflection();
|
||||
};
|
||||
|
||||
[GeneratedComInterface]
|
||||
[Guid("9c2a4b3d-7f68-4e91-a52c-8b193e457a9f")]
|
||||
public unsafe partial interface IComponentType2
|
||||
{
|
||||
[PreserveSig]
|
||||
Result GetTargetCompileResult(
|
||||
Int targetIndex,
|
||||
out Brutal.SlangApi.ICompileResult outCompileResult,
|
||||
out IBlob outDiagnostics
|
||||
);
|
||||
|
||||
[PreserveSig]
|
||||
Result GetEntryPointCompileResult(
|
||||
Int entryPointIndex,
|
||||
Int targetIndex,
|
||||
out Brutal.SlangApi.ICompileResult outCompileResult,
|
||||
out IBlob outDiagnostics
|
||||
);
|
||||
|
||||
[PreserveSig]
|
||||
Result GetTargetHostCallable(
|
||||
int targetIndex,
|
||||
out ISlangSharedLibrary outSharedLibrary,
|
||||
out IBlob outDiagnostics
|
||||
);
|
||||
};
|
||||
|
||||
[GeneratedComInterface]
|
||||
[Guid("8e12e8e3-5fcd-433e-afcb-13a088bc5ee5")]
|
||||
public unsafe partial interface IModulePrecompileService_Experimental
|
||||
{
|
||||
[PreserveSig]
|
||||
Result PrecompileForTarget(Brutal.SlangApi.CompileTarget target, out ISlangBlob outDiagnostics);
|
||||
|
||||
[PreserveSig]
|
||||
Result GetPrecompiledTargetCode(
|
||||
Brutal.SlangApi.CompileTarget target,
|
||||
out IBlob outCode,
|
||||
out IBlob outDiagnostics
|
||||
);
|
||||
|
||||
[PreserveSig]
|
||||
Int GetModuleDependencyCount();
|
||||
|
||||
[PreserveSig]
|
||||
Result GetModuleDependency(
|
||||
Int dependencyIndex,
|
||||
out Brutal.SlangApi.IModule outModule,
|
||||
out IBlob outDiagnostics
|
||||
);
|
||||
};
|
||||
|
||||
[GeneratedComInterface]
|
||||
[Guid("afdab195-361f-42cb-9513-9006261dd8cd")]
|
||||
public unsafe partial interface IByteCodeRunner
|
||||
{
|
||||
[PreserveSig]
|
||||
Result LoadModule(IBlob moduleBlob);
|
||||
|
||||
[PreserveSig]
|
||||
Result SelectFunctionByIndex(uint functionIndex);
|
||||
|
||||
[PreserveSig]
|
||||
int FindFunctionByName(byte* name);
|
||||
|
||||
[PreserveSig]
|
||||
Result GetFunctionInfo(uint index, out Brutal.SlangApi.ByteCodeFuncInfo outInfo);
|
||||
|
||||
[PreserveSig]
|
||||
void* GetCurrentWorkingSet();
|
||||
|
||||
[PreserveSig]
|
||||
Result Execute(void* argumentData, ByteSize64 argumentSize);
|
||||
|
||||
[PreserveSig]
|
||||
void GetErrorString(out IBlob outBlob);
|
||||
|
||||
[PreserveSig]
|
||||
void* GetReturnValue(out ByteSize64 outValueSize);
|
||||
|
||||
[PreserveSig]
|
||||
void SetExtInstHandlerUserData(void* userData);
|
||||
|
||||
[PreserveSig]
|
||||
Result RegisterExtCall(byte* name, VMExtFunction functionPtr);
|
||||
|
||||
[PreserveSig]
|
||||
Result SetPrintCallback(VMPrintFunc callback, void* userData);
|
||||
};
|
||||
}
|
||||
419
Brutal.Slang/Generated/InterfacesExt.gen.cs
Normal file
419
Brutal.Slang/Generated/InterfacesExt.gen.cs
Normal file
|
|
@ -0,0 +1,419 @@
|
|||
// <auto-generated />
|
||||
#nullable disable
|
||||
using System.Runtime.InteropServices;
|
||||
using Brutal.Interop;
|
||||
using Brutal.Strings;
|
||||
|
||||
namespace Brutal.SlangApi;
|
||||
|
||||
public static unsafe partial class ISlangUnknownExtensions
|
||||
{
|
||||
public static void* QueryInterface(this ISlangUnknown self, ref Brutal.SlangApi.Uuid uuid)
|
||||
{
|
||||
self.QueryInterface(ref uuid, out var __result).ThrowIfFailure();
|
||||
return __result;
|
||||
}
|
||||
public static Result TryQueryInterface(this ISlangUnknown self, ref Brutal.SlangApi.Uuid uuid, out void* outObject)
|
||||
=> self.QueryInterface(ref uuid, out outObject);
|
||||
}
|
||||
|
||||
public static unsafe partial class ISlangFileSystemExtensions
|
||||
{
|
||||
public static ISlangBlob LoadFile(this ISlangFileSystem self, byte* path)
|
||||
{
|
||||
self.LoadFile(path, out var __result).ThrowIfFailure();
|
||||
return __result;
|
||||
}
|
||||
public static Result TryLoadFile(this ISlangFileSystem self, byte* path, out ISlangBlob outBlob)
|
||||
=> self.LoadFile(path, out outBlob);
|
||||
}
|
||||
|
||||
public static unsafe partial class ISlangSharedLibraryLoaderExtensions
|
||||
{
|
||||
public static ISlangSharedLibrary LoadSharedLibrary(this ISlangSharedLibraryLoader self, byte* path)
|
||||
{
|
||||
self.LoadSharedLibrary(path, out var __result).ThrowIfFailure();
|
||||
return __result;
|
||||
}
|
||||
public static Result TryLoadSharedLibrary(this ISlangSharedLibraryLoader self, byte* path, out ISlangSharedLibrary sharedLibraryOut)
|
||||
=> self.LoadSharedLibrary(path, out sharedLibraryOut);
|
||||
}
|
||||
|
||||
public static unsafe partial class ISlangFileSystemExtExtensions
|
||||
{
|
||||
public static ISlangBlob GetFileUniqueIdentity(this ISlangFileSystemExt self, byte* path)
|
||||
{
|
||||
self.GetFileUniqueIdentity(path, out var __result).ThrowIfFailure();
|
||||
return __result;
|
||||
}
|
||||
public static Result TryGetFileUniqueIdentity(this ISlangFileSystemExt self, byte* path, out ISlangBlob outUniqueIdentity)
|
||||
=> self.GetFileUniqueIdentity(path, out outUniqueIdentity);
|
||||
public static ISlangBlob CalcCombinedPath(this ISlangFileSystemExt self, Brutal.SlangApi.PathType fromPathType, byte* fromPath, byte* path)
|
||||
{
|
||||
self.CalcCombinedPath(fromPathType, fromPath, path, out var __result).ThrowIfFailure();
|
||||
return __result;
|
||||
}
|
||||
public static Result TryCalcCombinedPath(this ISlangFileSystemExt self, Brutal.SlangApi.PathType fromPathType, byte* fromPath, byte* path, out ISlangBlob pathOut)
|
||||
=> self.CalcCombinedPath(fromPathType, fromPath, path, out pathOut);
|
||||
public static Brutal.SlangApi.PathType GetPathType(this ISlangFileSystemExt self, byte* path)
|
||||
{
|
||||
self.GetPathType(path, out var __result).ThrowIfFailure();
|
||||
return __result;
|
||||
}
|
||||
public static Result TryGetPathType(this ISlangFileSystemExt self, byte* path, out Brutal.SlangApi.PathType pathTypeOut)
|
||||
=> self.GetPathType(path, out pathTypeOut);
|
||||
public static ISlangBlob GetPath(this ISlangFileSystemExt self, PathKind kind, byte* path)
|
||||
{
|
||||
self.GetPath(kind, path, out var __result).ThrowIfFailure();
|
||||
return __result;
|
||||
}
|
||||
public static Result TryGetPath(this ISlangFileSystemExt self, PathKind kind, byte* path, out ISlangBlob outPath)
|
||||
=> self.GetPath(kind, path, out outPath);
|
||||
public static Result TryEnumeratePathContents(this ISlangFileSystemExt self, byte* path, FileSystemContentsCallBack callback, void* userData)
|
||||
=> self.EnumeratePathContents(path, callback, userData);
|
||||
}
|
||||
|
||||
public static unsafe partial class ISlangMutableFileSystemExtensions
|
||||
{
|
||||
public static Result TrySaveFile(this ISlangMutableFileSystem self, byte* path, void* data, ByteSize64 size)
|
||||
=> self.SaveFile(path, data, size);
|
||||
public static Result TrySaveFileBlob(this ISlangMutableFileSystem self, byte* path, ISlangBlob dataBlob)
|
||||
=> self.SaveFileBlob(path, dataBlob);
|
||||
public static Result TryRemove(this ISlangMutableFileSystem self, byte* path)
|
||||
=> self.Remove(path);
|
||||
public static Result TryCreateDirectory(this ISlangMutableFileSystem self, byte* path)
|
||||
=> self.CreateDirectory(path);
|
||||
}
|
||||
|
||||
public static unsafe partial class ISlangWriterExtensions
|
||||
{
|
||||
public static Result TryEndAppendBuffer(this ISlangWriter self, byte* buffer, ByteSize64 numChars)
|
||||
=> self.EndAppendBuffer(buffer, numChars);
|
||||
public static Result TryWrite(this ISlangWriter self, byte* chars, ByteSize64 numChars)
|
||||
=> self.Write(chars, numChars);
|
||||
public static Result TrySetMode(this ISlangWriter self, Brutal.SlangApi.WriterMode mode)
|
||||
=> self.SetMode(mode);
|
||||
}
|
||||
|
||||
public static unsafe partial class IGlobalSessionExtensions
|
||||
{
|
||||
public static Brutal.SlangApi.ISession CreateSession(this IGlobalSession self, ref Brutal.SlangApi.SessionDesc desc)
|
||||
{
|
||||
self.CreateSession(ref desc, out var __result).ThrowIfFailure();
|
||||
return __result;
|
||||
}
|
||||
public static Result TryCreateSession(this IGlobalSession self, ref Brutal.SlangApi.SessionDesc desc, out Brutal.SlangApi.ISession outSession)
|
||||
=> self.CreateSession(ref desc, out outSession);
|
||||
public static Result TrySetDefaultDownstreamCompiler(this IGlobalSession self, Brutal.SlangApi.SourceLanguage sourceLanguage, Brutal.SlangApi.PassThrough defaultCompiler)
|
||||
=> self.SetDefaultDownstreamCompiler(sourceLanguage, defaultCompiler);
|
||||
public static Brutal.SlangApi.ICompileRequest CreateCompileRequest(this IGlobalSession self)
|
||||
{
|
||||
self.CreateCompileRequest(out var __result).ThrowIfFailure();
|
||||
return __result;
|
||||
}
|
||||
public static Result TryCreateCompileRequest(this IGlobalSession self, out Brutal.SlangApi.ICompileRequest outCompileRequest)
|
||||
=> self.CreateCompileRequest(out outCompileRequest);
|
||||
public static Result TryCheckCompileTargetSupport(this IGlobalSession self, Brutal.SlangApi.CompileTarget target)
|
||||
=> self.CheckCompileTargetSupport(target);
|
||||
public static Result TryCheckPassThroughSupport(this IGlobalSession self, Brutal.SlangApi.PassThrough passThrough)
|
||||
=> self.CheckPassThroughSupport(passThrough);
|
||||
public static Result TryCompileCoreModule(this IGlobalSession self, CompileCoreModuleFlags flags)
|
||||
=> self.CompileCoreModule(flags);
|
||||
public static Result TryLoadCoreModule(this IGlobalSession self, void* coreModule, ByteSize64 coreModuleSizeInBytes)
|
||||
=> self.LoadCoreModule(coreModule, coreModuleSizeInBytes);
|
||||
public static ISlangBlob SaveCoreModule(this IGlobalSession self, Brutal.SlangApi.ArchiveType archiveType)
|
||||
{
|
||||
self.SaveCoreModule(archiveType, out var __result).ThrowIfFailure();
|
||||
return __result;
|
||||
}
|
||||
public static Result TrySaveCoreModule(this IGlobalSession self, Brutal.SlangApi.ArchiveType archiveType, out ISlangBlob outBlob)
|
||||
=> self.SaveCoreModule(archiveType, out outBlob);
|
||||
public static Result TrySetSpirvCoreGrammar(this IGlobalSession self, byte* jsonPath)
|
||||
=> self.SetSpirvCoreGrammar(jsonPath);
|
||||
public static ISlangUnknown ParseCommandLineArguments(this IGlobalSession self, int argc, byte** argv, out Brutal.SlangApi.SessionDesc outSessionDesc)
|
||||
{
|
||||
self.ParseCommandLineArguments(argc, argv, out outSessionDesc, out var __result).ThrowIfFailure();
|
||||
return __result;
|
||||
}
|
||||
public static Result TryParseCommandLineArguments(this IGlobalSession self, int argc, byte** argv, out Brutal.SlangApi.SessionDesc outSessionDesc, out ISlangUnknown outAuxAllocation)
|
||||
=> self.ParseCommandLineArguments(argc, argv, out outSessionDesc, out outAuxAllocation);
|
||||
public static ISlangBlob GetSessionDescDigest(this IGlobalSession self, in Brutal.SlangApi.SessionDesc sessionDesc)
|
||||
{
|
||||
self.GetSessionDescDigest(in sessionDesc, out var __result).ThrowIfFailure();
|
||||
return __result;
|
||||
}
|
||||
public static Result TryGetSessionDescDigest(this IGlobalSession self, in Brutal.SlangApi.SessionDesc sessionDesc, out ISlangBlob outBlob)
|
||||
=> self.GetSessionDescDigest(in sessionDesc, out outBlob);
|
||||
public static Result TryCompileBuiltinModule(this IGlobalSession self, Brutal.SlangApi.BuiltinModuleName module, CompileCoreModuleFlags flags)
|
||||
=> self.CompileBuiltinModule(module, flags);
|
||||
public static Result TryLoadBuiltinModule(this IGlobalSession self, Brutal.SlangApi.BuiltinModuleName module, void* moduleData, ByteSize64 sizeInBytes)
|
||||
=> self.LoadBuiltinModule(module, moduleData, sizeInBytes);
|
||||
public static ISlangBlob SaveBuiltinModule(this IGlobalSession self, Brutal.SlangApi.BuiltinModuleName module, Brutal.SlangApi.ArchiveType archiveType)
|
||||
{
|
||||
self.SaveBuiltinModule(module, archiveType, out var __result).ThrowIfFailure();
|
||||
return __result;
|
||||
}
|
||||
public static Result TrySaveBuiltinModule(this IGlobalSession self, Brutal.SlangApi.BuiltinModuleName module, Brutal.SlangApi.ArchiveType archiveType, out ISlangBlob outBlob)
|
||||
=> self.SaveBuiltinModule(module, archiveType, out outBlob);
|
||||
}
|
||||
|
||||
public static unsafe partial class ISessionExtensions
|
||||
{
|
||||
public static ISlangBlob GetTypeRTTIMangledName(this ISession self, Brutal.SlangApi.TypeReflection type)
|
||||
{
|
||||
self.GetTypeRTTIMangledName(type, out var __result).ThrowIfFailure();
|
||||
return __result;
|
||||
}
|
||||
public static Result TryGetTypeRTTIMangledName(this ISession self, Brutal.SlangApi.TypeReflection type, out ISlangBlob outNameBlob)
|
||||
=> self.GetTypeRTTIMangledName(type, out outNameBlob);
|
||||
public static ISlangBlob GetTypeConformanceWitnessMangledName(this ISession self, Brutal.SlangApi.TypeReflection type, Brutal.SlangApi.TypeReflection interfaceType)
|
||||
{
|
||||
self.GetTypeConformanceWitnessMangledName(type, interfaceType, out var __result).ThrowIfFailure();
|
||||
return __result;
|
||||
}
|
||||
public static Result TryGetTypeConformanceWitnessMangledName(this ISession self, Brutal.SlangApi.TypeReflection type, Brutal.SlangApi.TypeReflection interfaceType, out ISlangBlob outNameBlob)
|
||||
=> self.GetTypeConformanceWitnessMangledName(type, interfaceType, out outNameBlob);
|
||||
public static uint GetTypeConformanceWitnessSequentialID(this ISession self, Brutal.SlangApi.TypeReflection type, Brutal.SlangApi.TypeReflection interfaceType)
|
||||
{
|
||||
self.GetTypeConformanceWitnessSequentialID(type, interfaceType, out var __result).ThrowIfFailure();
|
||||
return __result;
|
||||
}
|
||||
public static Result TryGetTypeConformanceWitnessSequentialID(this ISession self, Brutal.SlangApi.TypeReflection type, Brutal.SlangApi.TypeReflection interfaceType, out uint outId)
|
||||
=> self.GetTypeConformanceWitnessSequentialID(type, interfaceType, out outId);
|
||||
public static CompileRequest CreateCompileRequest(this ISession self)
|
||||
{
|
||||
self.CreateCompileRequest(out var __result).ThrowIfFailure();
|
||||
return __result;
|
||||
}
|
||||
public static Result TryCreateCompileRequest(this ISession self, out CompileRequest outCompileRequest)
|
||||
=> self.CreateCompileRequest(out outCompileRequest);
|
||||
public static ISlangBlob CreateTypeConformanceComponentType(this ISession self, Brutal.SlangApi.TypeReflection type, Brutal.SlangApi.TypeReflection interfaceType, out Brutal.SlangApi.ITypeConformance outConformance, Int conformanceIdOverride)
|
||||
{
|
||||
self.CreateTypeConformanceComponentType(type, interfaceType, out outConformance, conformanceIdOverride, out var __result).ThrowIfFailure();
|
||||
return __result;
|
||||
}
|
||||
public static Result TryCreateTypeConformanceComponentType(this ISession self, Brutal.SlangApi.TypeReflection type, Brutal.SlangApi.TypeReflection interfaceType, out Brutal.SlangApi.ITypeConformance outConformance, Int conformanceIdOverride, out ISlangBlob outDiagnostics)
|
||||
=> self.CreateTypeConformanceComponentType(type, interfaceType, out outConformance, conformanceIdOverride, out outDiagnostics);
|
||||
public static Result TryGetDynamicObjectRTTIBytes(this ISession self, Brutal.SlangApi.TypeReflection type, Brutal.SlangApi.TypeReflection interfaceType, out uint outRTTIDataBuffer, uint bufferSizeInBytes)
|
||||
=> self.GetDynamicObjectRTTIBytes(type, interfaceType, out outRTTIDataBuffer, bufferSizeInBytes);
|
||||
public static Result TryLoadModuleInfoFromIRBlob(this ISession self, IBlob source, ref Int outModuleVersion, ref byte* outModuleCompilerVersion, ref byte* outModuleName)
|
||||
=> self.LoadModuleInfoFromIRBlob(source, ref outModuleVersion, ref outModuleCompilerVersion, ref outModuleName);
|
||||
public static Brutal.SlangApi.SourceLocation GetDeclSourceLocation(this ISession self, Brutal.SlangApi.DeclReflection decl)
|
||||
{
|
||||
self.GetDeclSourceLocation(decl, out var __result).ThrowIfFailure();
|
||||
return __result;
|
||||
}
|
||||
public static Result TryGetDeclSourceLocation(this ISession self, Brutal.SlangApi.DeclReflection decl, out Brutal.SlangApi.SourceLocation outLocation)
|
||||
=> self.GetDeclSourceLocation(decl, out outLocation);
|
||||
}
|
||||
|
||||
public static unsafe partial class IComponentTypeExtensions
|
||||
{
|
||||
public static IBlob GetEntryPointCode(this IComponentType self, Int entryPointIndex, Int targetIndex, out IBlob outDiagnostics)
|
||||
{
|
||||
self.GetEntryPointCode(entryPointIndex, targetIndex, out var __result, out outDiagnostics).ThrowIfFailure();
|
||||
return __result;
|
||||
}
|
||||
public static Result TryGetEntryPointCode(this IComponentType self, Int entryPointIndex, Int targetIndex, out IBlob outCode, out IBlob outDiagnostics)
|
||||
=> self.GetEntryPointCode(entryPointIndex, targetIndex, out outCode, out outDiagnostics);
|
||||
public static ISlangMutableFileSystem GetResultAsFileSystem(this IComponentType self, Int entryPointIndex, Int targetIndex)
|
||||
{
|
||||
self.GetResultAsFileSystem(entryPointIndex, targetIndex, out var __result).ThrowIfFailure();
|
||||
return __result;
|
||||
}
|
||||
public static Result TryGetResultAsFileSystem(this IComponentType self, Int entryPointIndex, Int targetIndex, out ISlangMutableFileSystem outFileSystem)
|
||||
=> self.GetResultAsFileSystem(entryPointIndex, targetIndex, out outFileSystem);
|
||||
public static Brutal.SlangApi.IComponentType Specialize(this IComponentType self, in Brutal.SlangApi.SpecializationArg specializationArgs, Int specializationArgCount, out ISlangBlob outDiagnostics)
|
||||
{
|
||||
self.Specialize(in specializationArgs, specializationArgCount, out var __result, out outDiagnostics).ThrowIfFailure();
|
||||
return __result;
|
||||
}
|
||||
public static Result TrySpecialize(this IComponentType self, in Brutal.SlangApi.SpecializationArg specializationArgs, Int specializationArgCount, out Brutal.SlangApi.IComponentType outSpecializedComponentType, out ISlangBlob outDiagnostics)
|
||||
=> self.Specialize(in specializationArgs, specializationArgCount, out outSpecializedComponentType, out outDiagnostics);
|
||||
public static Brutal.SlangApi.IComponentType Link(this IComponentType self, out ISlangBlob outDiagnostics)
|
||||
{
|
||||
self.Link(out var __result, out outDiagnostics).ThrowIfFailure();
|
||||
return __result;
|
||||
}
|
||||
public static Result TryLink(this IComponentType self, out Brutal.SlangApi.IComponentType outLinkedComponentType, out ISlangBlob outDiagnostics)
|
||||
=> self.Link(out outLinkedComponentType, out outDiagnostics);
|
||||
public static ISlangSharedLibrary GetEntryPointHostCallable(this IComponentType self, int entryPointIndex, int targetIndex, out IBlob outDiagnostics)
|
||||
{
|
||||
self.GetEntryPointHostCallable(entryPointIndex, targetIndex, out var __result, out outDiagnostics).ThrowIfFailure();
|
||||
return __result;
|
||||
}
|
||||
public static Result TryGetEntryPointHostCallable(this IComponentType self, int entryPointIndex, int targetIndex, out ISlangSharedLibrary outSharedLibrary, out IBlob outDiagnostics)
|
||||
=> self.GetEntryPointHostCallable(entryPointIndex, targetIndex, out outSharedLibrary, out outDiagnostics);
|
||||
public static Brutal.SlangApi.IComponentType RenameEntryPoint(this IComponentType self, byte* newName)
|
||||
{
|
||||
self.RenameEntryPoint(newName, out var __result).ThrowIfFailure();
|
||||
return __result;
|
||||
}
|
||||
public static Result TryRenameEntryPoint(this IComponentType self, byte* newName, out Brutal.SlangApi.IComponentType outEntryPoint)
|
||||
=> self.RenameEntryPoint(newName, out outEntryPoint);
|
||||
public static ISlangBlob LinkWithOptions(this IComponentType self, out Brutal.SlangApi.IComponentType outLinkedComponentType, uint compilerOptionEntryCount, in Brutal.SlangApi.CompilerOptionEntry compilerOptionEntries)
|
||||
{
|
||||
self.LinkWithOptions(out outLinkedComponentType, compilerOptionEntryCount, in compilerOptionEntries, out var __result).ThrowIfFailure();
|
||||
return __result;
|
||||
}
|
||||
public static Result TryLinkWithOptions(this IComponentType self, out Brutal.SlangApi.IComponentType outLinkedComponentType, uint compilerOptionEntryCount, in Brutal.SlangApi.CompilerOptionEntry compilerOptionEntries, out ISlangBlob outDiagnostics)
|
||||
=> self.LinkWithOptions(out outLinkedComponentType, compilerOptionEntryCount, in compilerOptionEntries, out outDiagnostics);
|
||||
public static IBlob GetTargetCode(this IComponentType self, Int targetIndex, out IBlob outDiagnostics)
|
||||
{
|
||||
self.GetTargetCode(targetIndex, out var __result, out outDiagnostics).ThrowIfFailure();
|
||||
return __result;
|
||||
}
|
||||
public static Result TryGetTargetCode(this IComponentType self, Int targetIndex, out IBlob outCode, out IBlob outDiagnostics)
|
||||
=> self.GetTargetCode(targetIndex, out outCode, out outDiagnostics);
|
||||
public static Brutal.SlangApi.IMetadata GetTargetMetadata(this IComponentType self, Int targetIndex, out IBlob outDiagnostics)
|
||||
{
|
||||
self.GetTargetMetadata(targetIndex, out var __result, out outDiagnostics).ThrowIfFailure();
|
||||
return __result;
|
||||
}
|
||||
public static Result TryGetTargetMetadata(this IComponentType self, Int targetIndex, out Brutal.SlangApi.IMetadata outMetadata, out IBlob outDiagnostics)
|
||||
=> self.GetTargetMetadata(targetIndex, out outMetadata, out outDiagnostics);
|
||||
public static Brutal.SlangApi.IMetadata GetEntryPointMetadata(this IComponentType self, Int entryPointIndex, Int targetIndex, out IBlob outDiagnostics)
|
||||
{
|
||||
self.GetEntryPointMetadata(entryPointIndex, targetIndex, out var __result, out outDiagnostics).ThrowIfFailure();
|
||||
return __result;
|
||||
}
|
||||
public static Result TryGetEntryPointMetadata(this IComponentType self, Int entryPointIndex, Int targetIndex, out Brutal.SlangApi.IMetadata outMetadata, out IBlob outDiagnostics)
|
||||
=> self.GetEntryPointMetadata(entryPointIndex, targetIndex, out outMetadata, out outDiagnostics);
|
||||
}
|
||||
|
||||
public static unsafe partial class IModuleExtensions
|
||||
{
|
||||
public static Brutal.SlangApi.IEntryPoint FindEntryPointByName(this IModule self, byte* name)
|
||||
{
|
||||
self.FindEntryPointByName(name, out var __result).ThrowIfFailure();
|
||||
return __result;
|
||||
}
|
||||
public static Result TryFindEntryPointByName(this IModule self, byte* name, out Brutal.SlangApi.IEntryPoint outEntryPoint)
|
||||
=> self.FindEntryPointByName(name, out outEntryPoint);
|
||||
public static Brutal.SlangApi.IEntryPoint GetDefinedEntryPoint(this IModule self, Int32 index)
|
||||
{
|
||||
self.GetDefinedEntryPoint(index, out var __result).ThrowIfFailure();
|
||||
return __result;
|
||||
}
|
||||
public static Result TryGetDefinedEntryPoint(this IModule self, Int32 index, out Brutal.SlangApi.IEntryPoint outEntryPoint)
|
||||
=> self.GetDefinedEntryPoint(index, out outEntryPoint);
|
||||
public static ISlangBlob Serialize(this IModule self)
|
||||
{
|
||||
self.Serialize(out var __result).ThrowIfFailure();
|
||||
return __result;
|
||||
}
|
||||
public static Result TrySerialize(this IModule self, out ISlangBlob outSerializedBlob)
|
||||
=> self.Serialize(out outSerializedBlob);
|
||||
public static Result TryWriteToFile(this IModule self, byte* fileName)
|
||||
=> self.WriteToFile(fileName);
|
||||
public static Brutal.SlangApi.IEntryPoint FindAndCheckEntryPoint(this IModule self, byte* name, Brutal.SlangApi.Stage stage, out ISlangBlob outDiagnostics)
|
||||
{
|
||||
self.FindAndCheckEntryPoint(name, stage, out var __result, out outDiagnostics).ThrowIfFailure();
|
||||
return __result;
|
||||
}
|
||||
public static Result TryFindAndCheckEntryPoint(this IModule self, byte* name, Brutal.SlangApi.Stage stage, out Brutal.SlangApi.IEntryPoint outEntryPoint, out ISlangBlob outDiagnostics)
|
||||
=> self.FindAndCheckEntryPoint(name, stage, out outEntryPoint, out outDiagnostics);
|
||||
public static IBlob Disassemble(this IModule self)
|
||||
{
|
||||
self.Disassemble(out var __result).ThrowIfFailure();
|
||||
return __result;
|
||||
}
|
||||
public static Result TryDisassemble(this IModule self, out IBlob outDisassembledBlob)
|
||||
=> self.Disassemble(out outDisassembledBlob);
|
||||
}
|
||||
|
||||
public static unsafe partial class IMetadataExtensions
|
||||
{
|
||||
public static Result TryIsParameterLocationUsed(this IMetadata self, Brutal.SlangApi.ParameterCategory category, UInt spaceIndex, UInt registerIndex, ref Brutal.Bool8 outUsed)
|
||||
=> self.IsParameterLocationUsed(category, spaceIndex, registerIndex, ref outUsed);
|
||||
}
|
||||
|
||||
public static unsafe partial class ICompileResultExtensions
|
||||
{
|
||||
public static IBlob GetItemData(this ICompileResult self, uint index)
|
||||
{
|
||||
self.GetItemData(index, out var __result).ThrowIfFailure();
|
||||
return __result;
|
||||
}
|
||||
public static Result TryGetItemData(this ICompileResult self, uint index, out IBlob outblob)
|
||||
=> self.GetItemData(index, out outblob);
|
||||
public static Brutal.SlangApi.IMetadata GetMetadata(this ICompileResult self)
|
||||
{
|
||||
self.GetMetadata(out var __result).ThrowIfFailure();
|
||||
return __result;
|
||||
}
|
||||
public static Result TryGetMetadata(this ICompileResult self, out Brutal.SlangApi.IMetadata outMetadata)
|
||||
=> self.GetMetadata(out outMetadata);
|
||||
}
|
||||
|
||||
public static unsafe partial class IComponentType2Extensions
|
||||
{
|
||||
public static Brutal.SlangApi.ICompileResult GetTargetCompileResult(this IComponentType2 self, Int targetIndex, out IBlob outDiagnostics)
|
||||
{
|
||||
self.GetTargetCompileResult(targetIndex, out var __result, out outDiagnostics).ThrowIfFailure();
|
||||
return __result;
|
||||
}
|
||||
public static Result TryGetTargetCompileResult(this IComponentType2 self, Int targetIndex, out Brutal.SlangApi.ICompileResult outCompileResult, out IBlob outDiagnostics)
|
||||
=> self.GetTargetCompileResult(targetIndex, out outCompileResult, out outDiagnostics);
|
||||
public static Brutal.SlangApi.ICompileResult GetEntryPointCompileResult(this IComponentType2 self, Int entryPointIndex, Int targetIndex, out IBlob outDiagnostics)
|
||||
{
|
||||
self.GetEntryPointCompileResult(entryPointIndex, targetIndex, out var __result, out outDiagnostics).ThrowIfFailure();
|
||||
return __result;
|
||||
}
|
||||
public static Result TryGetEntryPointCompileResult(this IComponentType2 self, Int entryPointIndex, Int targetIndex, out Brutal.SlangApi.ICompileResult outCompileResult, out IBlob outDiagnostics)
|
||||
=> self.GetEntryPointCompileResult(entryPointIndex, targetIndex, out outCompileResult, out outDiagnostics);
|
||||
public static ISlangSharedLibrary GetTargetHostCallable(this IComponentType2 self, int targetIndex, out IBlob outDiagnostics)
|
||||
{
|
||||
self.GetTargetHostCallable(targetIndex, out var __result, out outDiagnostics).ThrowIfFailure();
|
||||
return __result;
|
||||
}
|
||||
public static Result TryGetTargetHostCallable(this IComponentType2 self, int targetIndex, out ISlangSharedLibrary outSharedLibrary, out IBlob outDiagnostics)
|
||||
=> self.GetTargetHostCallable(targetIndex, out outSharedLibrary, out outDiagnostics);
|
||||
}
|
||||
|
||||
public static unsafe partial class IModulePrecompileService_ExperimentalExtensions
|
||||
{
|
||||
public static ISlangBlob PrecompileForTarget(this IModulePrecompileService_Experimental self, Brutal.SlangApi.CompileTarget target)
|
||||
{
|
||||
self.PrecompileForTarget(target, out var __result).ThrowIfFailure();
|
||||
return __result;
|
||||
}
|
||||
public static Result TryPrecompileForTarget(this IModulePrecompileService_Experimental self, Brutal.SlangApi.CompileTarget target, out ISlangBlob outDiagnostics)
|
||||
=> self.PrecompileForTarget(target, out outDiagnostics);
|
||||
public static IBlob GetPrecompiledTargetCode(this IModulePrecompileService_Experimental self, Brutal.SlangApi.CompileTarget target, out IBlob outDiagnostics)
|
||||
{
|
||||
self.GetPrecompiledTargetCode(target, out var __result, out outDiagnostics).ThrowIfFailure();
|
||||
return __result;
|
||||
}
|
||||
public static Result TryGetPrecompiledTargetCode(this IModulePrecompileService_Experimental self, Brutal.SlangApi.CompileTarget target, out IBlob outCode, out IBlob outDiagnostics)
|
||||
=> self.GetPrecompiledTargetCode(target, out outCode, out outDiagnostics);
|
||||
public static Brutal.SlangApi.IModule GetModuleDependency(this IModulePrecompileService_Experimental self, Int dependencyIndex, out IBlob outDiagnostics)
|
||||
{
|
||||
self.GetModuleDependency(dependencyIndex, out var __result, out outDiagnostics).ThrowIfFailure();
|
||||
return __result;
|
||||
}
|
||||
public static Result TryGetModuleDependency(this IModulePrecompileService_Experimental self, Int dependencyIndex, out Brutal.SlangApi.IModule outModule, out IBlob outDiagnostics)
|
||||
=> self.GetModuleDependency(dependencyIndex, out outModule, out outDiagnostics);
|
||||
}
|
||||
|
||||
public static unsafe partial class IByteCodeRunnerExtensions
|
||||
{
|
||||
public static Result TryLoadModule(this IByteCodeRunner self, IBlob moduleBlob)
|
||||
=> self.LoadModule(moduleBlob);
|
||||
public static Result TrySelectFunctionByIndex(this IByteCodeRunner self, uint functionIndex)
|
||||
=> self.SelectFunctionByIndex(functionIndex);
|
||||
public static Brutal.SlangApi.ByteCodeFuncInfo GetFunctionInfo(this IByteCodeRunner self, uint index)
|
||||
{
|
||||
self.GetFunctionInfo(index, out var __result).ThrowIfFailure();
|
||||
return __result;
|
||||
}
|
||||
public static Result TryGetFunctionInfo(this IByteCodeRunner self, uint index, out Brutal.SlangApi.ByteCodeFuncInfo outInfo)
|
||||
=> self.GetFunctionInfo(index, out outInfo);
|
||||
public static Result TryExecute(this IByteCodeRunner self, void* argumentData, ByteSize64 argumentSize)
|
||||
=> self.Execute(argumentData, argumentSize);
|
||||
public static Result TryRegisterExtCall(this IByteCodeRunner self, byte* name, VMExtFunction functionPtr)
|
||||
=> self.RegisterExtCall(name, functionPtr);
|
||||
public static Result TrySetPrintCallback(this IByteCodeRunner self, VMPrintFunc callback, void* userData)
|
||||
=> self.SetPrintCallback(callback, userData);
|
||||
}
|
||||
|
||||
2419
Brutal.Slang/Generated/Slang.gen.cs
Normal file
2419
Brutal.Slang/Generated/Slang.gen.cs
Normal file
File diff suppressed because it is too large
Load diff
1455
Brutal.Slang/Generated/Structs.gen.cs
Normal file
1455
Brutal.Slang/Generated/Structs.gen.cs
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue