Files
sbox-public/engine/Sandbox.Engine/Systems/Render/ShaderCompile/CompiledCombo.cs
s&box team 71f266059a Open source release
This commit imports the C# engine code and game files, excluding C++ source code.

[Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
2025-11-24 09:05:18 +00:00

36 lines
887 B
C#

namespace Sandbox.Engine.Shaders;
/// <summary>
/// The results of compiling a single combo
/// </summary>
class CompiledCombo
{
private VfxCompiledShaderInfo_t _native;
private ProgramSource program;
private ulong staticCombo;
private ulong dynamicCombo;
public ulong StaticCombo => staticCombo;
public ulong DynamicCombo => dynamicCombo;
public ShaderProgramType ProgramType => program.ProgramType;
public bool IsSuccess => !_native.compileFailed;
public string CompilerOutput => _native.compilerOutput;
public CompiledCombo( VfxCompiledShaderInfo_t result, ProgramSource program, ulong staticCombo, ulong dynamicCombo )
{
_native = result;
this.program = program;
this.staticCombo = staticCombo;
this.dynamicCombo = dynamicCombo;
}
public VfxCompiledShaderInfo_t GetResult() => _native;
~CompiledCombo()
{
_native.Delete();
_native = default;
}
}