Minor code refactoring

このコミットが含まれているのは:
Sergio Pedri committed 2019-09-16 03:20:21 +02:00
1 親 90a326aef5
コミット 0be404c9b3
2ファイル変更
+35 -3

検索条件に一致するファイルはありません

+31
ファイルの表示
@@ -0,0 +1,31 @@
using Vortice.Direct3D12;
namespace ComputeSharp.Shaders.Translation.Models
{
/// <summary>
/// A <see langword="struct"/> that contains info on a cached shader
/// </summary>
internal readonly struct CachedShader
{
/// <summary>
/// The <see cref="ShaderLoader"/> instance with the shader metadata
/// </summary>
public readonly ShaderLoader Loader;
/// <summary>
/// The compiled shader bytecode
/// </summary>
public readonly ShaderBytecode Bytecode;
/// <summary>
/// Creates a new <see cref="CachedShader"/> instance with the specified parameters
/// </summary>
/// <param name="loader">The <see cref="ShaderLoader"/> instance with the shader metadata</param>
/// <param name="bytecode">The compiled shader bytecode</param>
public CachedShader(ShaderLoader loader, ShaderBytecode bytecode)
{
Loader = loader;
Bytecode = bytecode;
}
}
}