Merge pull request #44 from Sergio0694/feature_vortice-update
Vortice.Windows package updates
このコミットが含まれているのは:
18ファイル変更
+30
-29
検索条件に一致するファイルはありません
@@ -1,5 +1,5 @@
|
||||
using System;
|
||||
using Vortice.DirectX.Direct3D12;
|
||||
using Vortice.Direct3D12;
|
||||
|
||||
namespace ComputeSharp.Graphics.Buffers.Abstract
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
using ComputeSharp.Graphics.Buffers.Enums;
|
||||
using ComputeSharp.Graphics.Helpers;
|
||||
using Vortice.DirectX.Direct3D12;
|
||||
using Vortice.Direct3D12;
|
||||
using CommandList = ComputeSharp.Graphics.Commands.CommandList;
|
||||
|
||||
namespace ComputeSharp.Graphics.Buffers.Abstract
|
||||
|
||||
@@ -3,7 +3,7 @@ using System.Diagnostics.Contracts;
|
||||
using System.Runtime.CompilerServices;
|
||||
using ComputeSharp.Graphics.Buffers.Abstract;
|
||||
using ComputeSharp.Graphics.Buffers.Enums;
|
||||
using Vortice.DirectX.Direct3D12;
|
||||
using Vortice.Direct3D12;
|
||||
|
||||
namespace ComputeSharp.Graphics.Buffers
|
||||
{
|
||||
|
||||
@@ -7,7 +7,7 @@ using ComputeSharp.Graphics;
|
||||
using ComputeSharp.Graphics.Buffers.Abstract;
|
||||
using ComputeSharp.Graphics.Buffers.Enums;
|
||||
using ComputeSharp.Graphics.Helpers;
|
||||
using Vortice.DirectX.Direct3D12;
|
||||
using Vortice.Direct3D12;
|
||||
using CommandList = ComputeSharp.Graphics.Commands.CommandList;
|
||||
|
||||
namespace ComputeSharp
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using System;
|
||||
using Vortice.DirectX.Direct3D12;
|
||||
using Vortice.Direct3D12;
|
||||
|
||||
namespace ComputeSharp.Graphics.Commands.Abstract
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.Contracts;
|
||||
using ComputeSharp.Graphics.Commands.Abstract;
|
||||
using Vortice.DirectX.Direct3D12;
|
||||
using Vortice.Direct3D12;
|
||||
|
||||
namespace ComputeSharp.Graphics.Commands
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using ComputeSharp.Graphics.Buffers.Abstract;
|
||||
using ComputeSharp.Graphics.Commands.Abstract;
|
||||
using Vortice.DirectX.Direct3D12;
|
||||
using Vortice.Direct3D12;
|
||||
|
||||
namespace ComputeSharp.Graphics.Commands
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Vortice.DirectX.Direct3D12;
|
||||
using Vortice.Direct3D12;
|
||||
|
||||
namespace ComputeSharp.Graphics.Commands
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="4.6.0-preview8.19405.3" />
|
||||
<PackageReference Include="Vortice.DirectX.Direct3D12" Version="1.0.0" />
|
||||
<PackageReference Include="Vortice.Direct3D12" Version="1.2.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using System;
|
||||
using Vortice.DirectX.Direct3D12;
|
||||
using Vortice.Direct3D12;
|
||||
|
||||
namespace ComputeSharp.Graphics
|
||||
{
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
using System;
|
||||
using System.Threading;
|
||||
using ComputeSharp.Graphics.Commands;
|
||||
using Vortice.Direct3D12;
|
||||
using Vortice.DirectX.Direct3D;
|
||||
using Vortice.DirectX.Direct3D12;
|
||||
using Vortice.DirectX.DXGI;
|
||||
using Vortice.DXGI;
|
||||
using CommandList = ComputeSharp.Graphics.Commands.CommandList;
|
||||
|
||||
namespace ComputeSharp.Graphics
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.Contracts;
|
||||
using Vortice.Direct3D12;
|
||||
using Vortice.DirectX.Direct3D;
|
||||
using Vortice.DirectX.Direct3D12;
|
||||
using Vortice.DirectX.DXGI;
|
||||
using Vortice.DXGI;
|
||||
|
||||
namespace ComputeSharp.Graphics.Helpers
|
||||
{
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<PackageReference Include="ICSharpCode.Decompiler" Version="5.0.0.5066-preview4" />
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="3.3.0-beta2-final" />
|
||||
<PackageReference Include="Stubble.Core" Version="1.4.12" />
|
||||
<PackageReference Include="Vortice.Dxc" Version="1.0.0" />
|
||||
<PackageReference Include="Vortice.Dxc" Version="1.2.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
* AUTO GENERATED
|
||||
* ===============
|
||||
* This shader was created by ComputeSharp.
|
||||
* Builder version: 1.0.0
|
||||
* For info or issues: https://github.com/Sergio0694/ComputeSharp */
|
||||
|
||||
{{!Captured variables buffer}}
|
||||
|
||||
@@ -8,7 +8,7 @@ using ComputeSharp.Graphics.Buffers.Extensions;
|
||||
using ComputeSharp.Shaders.Renderer;
|
||||
using ComputeSharp.Shaders.Renderer.Models;
|
||||
using ComputeSharp.Shaders.Translation;
|
||||
using Vortice.DirectX.Direct3D12;
|
||||
using Vortice.Direct3D12;
|
||||
using CommandList = ComputeSharp.Graphics.Commands.CommandList;
|
||||
using PipelineState = ComputeSharp.Graphics.Commands.PipelineState;
|
||||
|
||||
@@ -87,7 +87,7 @@ namespace ComputeSharp.Shaders
|
||||
string shaderSource = ShaderRenderer.Instance.Render(shaderInfo);
|
||||
|
||||
// Compile the loaded shader to HLSL bytecode
|
||||
ShaderBytecode shaderBytecode = ShaderCompiler.Instance.CompileShader(shaderSource);
|
||||
ShaderBytecode shaderBytecode = ShaderCompiler.CompileShader(shaderSource);
|
||||
|
||||
// Cache for later use
|
||||
shaderData = (shaderLoader, shaderBytecode);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
using System.Diagnostics.Contracts;
|
||||
using Vortice.DirectX.Direct3D12;
|
||||
using Vortice.Direct3D12;
|
||||
using Vortice.Dxc;
|
||||
|
||||
namespace ComputeSharp.Shaders.Translation
|
||||
@@ -8,17 +8,19 @@ namespace ComputeSharp.Shaders.Translation
|
||||
/// <summary>
|
||||
/// A <see langword="class"/> that uses the <see cref="DxcCompiler"/> APIs to compile compute shaders
|
||||
/// </summary>
|
||||
internal sealed class ShaderCompiler
|
||||
internal static class ShaderCompiler
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the singleton <see cref="ShaderCompiler"/> instance to use
|
||||
/// </summary>
|
||||
public static ShaderCompiler Instance { get; } = new ShaderCompiler();
|
||||
// Loads the dxil.dll library, needed to create a pipeline state for a shader to dispatch
|
||||
static ShaderCompiler()
|
||||
{
|
||||
Dxil.LoadLibrary();
|
||||
Library = Dxc.CreateDxcLibrary(); // This needs to be loaded after dxil.dll
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The <see cref="IDxcLibrary"/> instance to use to create the bytecode for HLSL sources
|
||||
/// </summary>
|
||||
private readonly IDxcLibrary Library = Dxc.CreateDxcLibrary();
|
||||
private static readonly IDxcLibrary Library;
|
||||
|
||||
/// <summary>
|
||||
/// Compiles a new HLSL shader from the input source code
|
||||
@@ -26,7 +28,7 @@ namespace ComputeSharp.Shaders.Translation
|
||||
/// <param name="source">The HLSL source code to compile</param>
|
||||
/// <returns>The bytecode for the compiled shader</returns>
|
||||
[Pure]
|
||||
public ShaderBytecode CompileShader(string source)
|
||||
public static ShaderBytecode CompileShader(string source)
|
||||
{
|
||||
var result = DxcCompiler.Compile(DxcShaderStage.ComputeShader, source, "CSMain", string.Empty, new DxcCompilerOptions { ShaderModel = DxcShaderModel.Model6_1 });
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ using ComputeSharp.Shaders.Renderer.Models.Fields.Abstract;
|
||||
using ComputeSharp.Shaders.Translation.Models;
|
||||
using Microsoft.CodeAnalysis;
|
||||
using Microsoft.CodeAnalysis.CSharp.Syntax;
|
||||
using Vortice.DirectX.Direct3D12;
|
||||
using Vortice.Direct3D12;
|
||||
|
||||
#pragma warning disable CS8618 // Non-nullable field is uninitialized
|
||||
|
||||
|
||||
@@ -4,8 +4,8 @@ using System.Diagnostics.Contracts;
|
||||
using System.Linq;
|
||||
using ComputeSharp.Graphics;
|
||||
using ComputeSharp.Graphics.Helpers;
|
||||
using Vortice.DirectX.Direct3D12;
|
||||
using Vortice.DirectX.DXGI;
|
||||
using Vortice.Direct3D12;
|
||||
using Vortice.DXGI;
|
||||
|
||||
namespace ComputeSharp
|
||||
{
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする