From eade2235827c90023de44549eebb17b1aca16d2f Mon Sep 17 00:00:00 2001 From: Amer Koleci Date: Mon, 10 Oct 2022 09:06:57 +0200 Subject: [PATCH] Separate Fxc bindings and bump version 1.8.2 --- Directory.Build.props | 2 +- Vortice.Win32.sln | 6 ++ src/Generator/Program.cs | 13 +++- .../Apis.cs | 3 +- .../FxcCompilationException.cs | 0 .../Generated/BlobPart.cs | 67 +++++++++++++++++++ .../Generated}/CompileEffectFlags.cs | 0 .../Generated}/CompileFlags.cs | 0 .../Generated}/CompileFlags2.cs | 0 .../Generated}/CompileSecondaryFlags.cs | 0 .../Generated}/CompressShaderFlags.cs | 0 .../Generated}/DisasmFlags.cs | 0 .../Graphics.Direct3D.Fxc.Apis.Functions.cs | 42 ++++++------ .../Generated}/Graphics.Direct3D.Fxc.Apis.cs | 0 .../Generated}/ShaderData.cs | 6 +- .../Generated/StripFlags.cs | 33 +++++++++ ...Vortice.Win32.Graphics.Direct3D.Fxc.csproj | 23 +++++++ .../Graphics/Direct3D.Fxc/BlobPart.cs | 67 ------------------- .../Graphics/Direct3D.Fxc/StripFlags.cs | 33 --------- src/Vortice.Win32/Properties/AssemblyInfo.cs | 1 + .../01-ClearScreen/01-ClearScreen.csproj | 1 + 21 files changed, 168 insertions(+), 129 deletions(-) rename src/{Vortice.Win32/Graphics/Fxc => Vortice.Win32.Graphics.Direct3D.Fxc}/Apis.cs (99%) rename src/{Vortice.Win32/Graphics/Fxc => Vortice.Win32.Graphics.Direct3D.Fxc}/FxcCompilationException.cs (100%) create mode 100644 src/Vortice.Win32.Graphics.Direct3D.Fxc/Generated/BlobPart.cs rename src/{Vortice.Win32/Generated/Graphics/Direct3D.Fxc => Vortice.Win32.Graphics.Direct3D.Fxc/Generated}/CompileEffectFlags.cs (100%) rename src/{Vortice.Win32/Generated/Graphics/Direct3D.Fxc => Vortice.Win32.Graphics.Direct3D.Fxc/Generated}/CompileFlags.cs (100%) rename src/{Vortice.Win32/Generated/Graphics/Direct3D.Fxc => Vortice.Win32.Graphics.Direct3D.Fxc/Generated}/CompileFlags2.cs (100%) rename src/{Vortice.Win32/Generated/Graphics/Direct3D.Fxc => Vortice.Win32.Graphics.Direct3D.Fxc/Generated}/CompileSecondaryFlags.cs (100%) rename src/{Vortice.Win32/Generated/Graphics/Direct3D.Fxc => Vortice.Win32.Graphics.Direct3D.Fxc/Generated}/CompressShaderFlags.cs (100%) rename src/{Vortice.Win32/Generated/Graphics/Direct3D.Fxc => Vortice.Win32.Graphics.Direct3D.Fxc/Generated}/DisasmFlags.cs (100%) rename src/{Vortice.Win32/Generated/Graphics/Direct3D.Fxc => Vortice.Win32.Graphics.Direct3D.Fxc/Generated}/Graphics.Direct3D.Fxc.Apis.Functions.cs (67%) rename src/{Vortice.Win32/Generated/Graphics/Direct3D.Fxc => Vortice.Win32.Graphics.Direct3D.Fxc/Generated}/Graphics.Direct3D.Fxc.Apis.cs (100%) rename src/{Vortice.Win32/Generated/Graphics/Direct3D.Fxc => Vortice.Win32.Graphics.Direct3D.Fxc/Generated}/ShaderData.cs (58%) create mode 100644 src/Vortice.Win32.Graphics.Direct3D.Fxc/Generated/StripFlags.cs create mode 100644 src/Vortice.Win32.Graphics.Direct3D.Fxc/Vortice.Win32.Graphics.Direct3D.Fxc.csproj delete mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D.Fxc/BlobPart.cs delete mode 100644 src/Vortice.Win32/Generated/Graphics/Direct3D.Fxc/StripFlags.cs diff --git a/Directory.Build.props b/Directory.Build.props index 44dba4e..0bc051a 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -7,7 +7,7 @@ true true - 1.8.1 + 1.8.2 true diff --git a/Vortice.Win32.sln b/Vortice.Win32.sln index 424a696..df71818 100644 --- a/Vortice.Win32.sln +++ b/Vortice.Win32.sln @@ -38,6 +38,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Vortice.Win32.Graphics.Dire EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Vortice.Win32.Graphics.Dxgi", "src\Vortice.Win32.Graphics.Dxgi\Vortice.Win32.Graphics.Dxgi.csproj", "{9E48F17C-2AC5-45F3-8B08-3BB51690C040}" EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Vortice.Win32.Graphics.Direct3D.Fxc", "src\Vortice.Win32.Graphics.Direct3D.Fxc\Vortice.Win32.Graphics.Direct3D.Fxc.csproj", "{65052A2C-E59E-4A75-B15D-2276225D859C}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -88,6 +90,10 @@ Global {9E48F17C-2AC5-45F3-8B08-3BB51690C040}.Debug|Any CPU.Build.0 = Debug|Any CPU {9E48F17C-2AC5-45F3-8B08-3BB51690C040}.Release|Any CPU.ActiveCfg = Release|Any CPU {9E48F17C-2AC5-45F3-8B08-3BB51690C040}.Release|Any CPU.Build.0 = Release|Any CPU + {65052A2C-E59E-4A75-B15D-2276225D859C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {65052A2C-E59E-4A75-B15D-2276225D859C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {65052A2C-E59E-4A75-B15D-2276225D859C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {65052A2C-E59E-4A75-B15D-2276225D859C}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/src/Generator/Program.cs b/src/Generator/Program.cs index 7bfe04e..9f40e75 100644 --- a/src/Generator/Program.cs +++ b/src/Generator/Program.cs @@ -1047,6 +1047,7 @@ public static class Program string wicPath = Path.Combine(new DirectoryInfo(repoRoot).Parent.FullName, "Vortice.Win32.Graphics.Imaging"); string d2dPath = Path.Combine(new DirectoryInfo(repoRoot).Parent.FullName, "Vortice.Win32.Graphics.Direct2D"); string dxcPath = Path.Combine(new DirectoryInfo(repoRoot).Parent.FullName, "Vortice.Win32.Graphics.Direct3D.Dxc"); + string fxcPath = Path.Combine(new DirectoryInfo(repoRoot).Parent.FullName, "Vortice.Win32.Graphics.Direct3D.Fxc"); // Generate docs //DocGenerator.Generate(new[] { "DXGI" }, Path.Combine(repoRoot, "Generated", "Graphics", "Dxgi.xml")); @@ -1109,12 +1110,16 @@ public static class Program outputPath = dwritePath; useSubFolders = false; } - - else if (jsonFile.EndsWith("Direct3D.Dxc.json")) + else if (jsonFile == "Graphics.Direct3D.Dxc.json") { outputPath = dxcPath; useSubFolders = false; } + else if (jsonFile == "Graphics.Direct3D.Fxc.json") + { + outputPath = fxcPath; + useSubFolders = false; + } outputPath = Path.Combine(outputPath, "Generated"); @@ -1180,6 +1185,10 @@ public static class Program { docFile = $"../Vortice.Win32.Graphics.Direct3D11/Direct3D11"; } + else if (jsonFile == "Graphics.Direct3D.Fxc.json") + { + docFile = $"../Vortice.Win32/Generated/Graphics/Direct3D"; + } string apiName = ns; string apiFolder; diff --git a/src/Vortice.Win32/Graphics/Fxc/Apis.cs b/src/Vortice.Win32.Graphics.Direct3D.Fxc/Apis.cs similarity index 99% rename from src/Vortice.Win32/Graphics/Fxc/Apis.cs rename to src/Vortice.Win32.Graphics.Direct3D.Fxc/Apis.cs index 40fd272..29d9b64 100644 --- a/src/Vortice.Win32/Graphics/Fxc/Apis.cs +++ b/src/Vortice.Win32.Graphics.Direct3D.Fxc/Apis.cs @@ -2,9 +2,8 @@ // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. using System.Buffers; -using System.Text; using System.Text.RegularExpressions; -using static Win32.Apis; +using System.Text; namespace Win32.Graphics.Direct3D.Fxc; diff --git a/src/Vortice.Win32/Graphics/Fxc/FxcCompilationException.cs b/src/Vortice.Win32.Graphics.Direct3D.Fxc/FxcCompilationException.cs similarity index 100% rename from src/Vortice.Win32/Graphics/Fxc/FxcCompilationException.cs rename to src/Vortice.Win32.Graphics.Direct3D.Fxc/FxcCompilationException.cs diff --git a/src/Vortice.Win32.Graphics.Direct3D.Fxc/Generated/BlobPart.cs b/src/Vortice.Win32.Graphics.Direct3D.Fxc/Generated/BlobPart.cs new file mode 100644 index 0000000..0c20260 --- /dev/null +++ b/src/Vortice.Win32.Graphics.Direct3D.Fxc/Generated/BlobPart.cs @@ -0,0 +1,67 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +namespace Win32.Graphics.Direct3D.Fxc; + +/// +/// D3D_BLOB_PART +public enum BlobPart : int +{ + /// + /// D3D_BLOB_INPUT_SIGNATURE_BLOB + InputSignatureBlob = 0, + /// + /// D3D_BLOB_OUTPUT_SIGNATURE_BLOB + OutputSignatureBlob = 1, + /// + /// D3D_BLOB_INPUT_AND_OUTPUT_SIGNATURE_BLOB + InputAndOutputSignatureBlob = 2, + /// + /// D3D_BLOB_PATCH_CONSTANT_SIGNATURE_BLOB + PatchConstantSignatureBlob = 3, + /// + /// D3D_BLOB_ALL_SIGNATURE_BLOB + AllSignatureBlob = 4, + /// + /// D3D_BLOB_DEBUG_INFO + DebugInfo = 5, + /// + /// D3D_BLOB_LEGACY_SHADER + LegacyShader = 6, + /// + /// D3D_BLOB_XNA_PREPASS_SHADER + XNAPrepassShader = 7, + /// + /// D3D_BLOB_XNA_SHADER + XNAShader = 8, + /// + /// D3D_BLOB_PDB + Pdb = 9, + /// + /// D3D_BLOB_PRIVATE_DATA + PrivateData = 10, + /// + /// D3D_BLOB_ROOT_SIGNATURE + RootSignature = 11, + /// + /// D3D_BLOB_DEBUG_NAME + DebugName = 12, + /// + /// D3D_BLOB_TEST_ALTERNATE_SHADER + TestAlternateShader = 32768, + /// + /// D3D_BLOB_TEST_COMPILE_DETAILS + TestCompileDetails = 32769, + /// + /// D3D_BLOB_TEST_COMPILE_PERF + TestCompilePerf = 32770, + /// + /// D3D_BLOB_TEST_COMPILE_REPORT + TestCompileReport = 32771, +} diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D.Fxc/CompileEffectFlags.cs b/src/Vortice.Win32.Graphics.Direct3D.Fxc/Generated/CompileEffectFlags.cs similarity index 100% rename from src/Vortice.Win32/Generated/Graphics/Direct3D.Fxc/CompileEffectFlags.cs rename to src/Vortice.Win32.Graphics.Direct3D.Fxc/Generated/CompileEffectFlags.cs diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D.Fxc/CompileFlags.cs b/src/Vortice.Win32.Graphics.Direct3D.Fxc/Generated/CompileFlags.cs similarity index 100% rename from src/Vortice.Win32/Generated/Graphics/Direct3D.Fxc/CompileFlags.cs rename to src/Vortice.Win32.Graphics.Direct3D.Fxc/Generated/CompileFlags.cs diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D.Fxc/CompileFlags2.cs b/src/Vortice.Win32.Graphics.Direct3D.Fxc/Generated/CompileFlags2.cs similarity index 100% rename from src/Vortice.Win32/Generated/Graphics/Direct3D.Fxc/CompileFlags2.cs rename to src/Vortice.Win32.Graphics.Direct3D.Fxc/Generated/CompileFlags2.cs diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D.Fxc/CompileSecondaryFlags.cs b/src/Vortice.Win32.Graphics.Direct3D.Fxc/Generated/CompileSecondaryFlags.cs similarity index 100% rename from src/Vortice.Win32/Generated/Graphics/Direct3D.Fxc/CompileSecondaryFlags.cs rename to src/Vortice.Win32.Graphics.Direct3D.Fxc/Generated/CompileSecondaryFlags.cs diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D.Fxc/CompressShaderFlags.cs b/src/Vortice.Win32.Graphics.Direct3D.Fxc/Generated/CompressShaderFlags.cs similarity index 100% rename from src/Vortice.Win32/Generated/Graphics/Direct3D.Fxc/CompressShaderFlags.cs rename to src/Vortice.Win32.Graphics.Direct3D.Fxc/Generated/CompressShaderFlags.cs diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D.Fxc/DisasmFlags.cs b/src/Vortice.Win32.Graphics.Direct3D.Fxc/Generated/DisasmFlags.cs similarity index 100% rename from src/Vortice.Win32/Generated/Graphics/Direct3D.Fxc/DisasmFlags.cs rename to src/Vortice.Win32.Graphics.Direct3D.Fxc/Generated/DisasmFlags.cs diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D.Fxc/Graphics.Direct3D.Fxc.Apis.Functions.cs b/src/Vortice.Win32.Graphics.Direct3D.Fxc/Generated/Graphics.Direct3D.Fxc.Apis.Functions.cs similarity index 67% rename from src/Vortice.Win32/Generated/Graphics/Direct3D.Fxc/Graphics.Direct3D.Fxc.Apis.Functions.cs rename to src/Vortice.Win32.Graphics.Direct3D.Fxc/Generated/Graphics.Direct3D.Fxc.Apis.Functions.cs index 73effe7..7b9f9b5 100644 --- a/src/Vortice.Win32/Generated/Graphics/Direct3D.Fxc/Graphics.Direct3D.Fxc.Apis.Functions.cs +++ b/src/Vortice.Win32.Graphics.Direct3D.Fxc/Generated/Graphics.Direct3D.Fxc.Apis.Functions.cs @@ -11,87 +11,87 @@ namespace Win32.Graphics.Direct3D.Fxc; public static unsafe partial class Apis { - /// + /// [DllImport("D3DCOMPILER_47.dll", ExactSpelling = true)] public static extern HResult D3DReadFileToBlob(ushort* pFileName, Graphics.Direct3D.ID3DBlob** ppContents); - /// + /// [DllImport("D3DCOMPILER_47.dll", ExactSpelling = true)] public static extern HResult D3DWriteBlobToFile(Graphics.Direct3D.ID3DBlob* pBlob, ushort* pFileName, Bool32 bOverwrite); - /// + /// [DllImport("D3DCOMPILER_47.dll", ExactSpelling = true)] public static extern HResult D3DCompile(void* pSrcData, nuint SrcDataSize, sbyte* pSourceName, Graphics.Direct3D.ShaderMacro* pDefines, Graphics.Direct3D.ID3DInclude* pInclude, sbyte* pEntrypoint, sbyte* pTarget, CompileFlags Flags1, uint Flags2, Graphics.Direct3D.ID3DBlob** ppCode, Graphics.Direct3D.ID3DBlob** ppErrorMsgs); - /// + /// [DllImport("D3DCOMPILER_47.dll", ExactSpelling = true)] public static extern HResult D3DCompile2(void* pSrcData, nuint SrcDataSize, sbyte* pSourceName, Graphics.Direct3D.ShaderMacro* pDefines, Graphics.Direct3D.ID3DInclude* pInclude, sbyte* pEntrypoint, sbyte* pTarget, CompileFlags Flags1, uint Flags2, uint SecondaryDataFlags, void* pSecondaryData, nuint SecondaryDataSize, Graphics.Direct3D.ID3DBlob** ppCode, Graphics.Direct3D.ID3DBlob** ppErrorMsgs); - /// + /// [DllImport("D3DCOMPILER_47.dll", ExactSpelling = true)] public static extern HResult D3DCompileFromFile(ushort* pFileName, Graphics.Direct3D.ShaderMacro* pDefines, Graphics.Direct3D.ID3DInclude* pInclude, sbyte* pEntrypoint, sbyte* pTarget, CompileFlags Flags1, uint Flags2, Graphics.Direct3D.ID3DBlob** ppCode, Graphics.Direct3D.ID3DBlob** ppErrorMsgs); - /// + /// [DllImport("D3DCOMPILER_47.dll", ExactSpelling = true)] public static extern HResult D3DPreprocess(void* pSrcData, nuint SrcDataSize, sbyte* pSourceName, Graphics.Direct3D.ShaderMacro* pDefines, Graphics.Direct3D.ID3DInclude* pInclude, Graphics.Direct3D.ID3DBlob** ppCodeText, Graphics.Direct3D.ID3DBlob** ppErrorMsgs); - /// + /// [DllImport("D3DCOMPILER_47.dll", ExactSpelling = true)] public static extern HResult D3DGetDebugInfo(void* pSrcData, nuint SrcDataSize, Graphics.Direct3D.ID3DBlob** ppDebugInfo); - /// + /// [DllImport("D3DCOMPILER_47.dll", ExactSpelling = true)] public static extern HResult D3DReflect(void* pSrcData, nuint SrcDataSize, Guid* pInterface, void** ppReflector); - /// + /// [DllImport("D3DCOMPILER_47.dll", ExactSpelling = true)] public static extern HResult D3DReflectLibrary(void* pSrcData, nuint SrcDataSize, Guid* riid, void** ppReflector); - /// + /// [DllImport("D3DCOMPILER_47.dll", ExactSpelling = true)] public static extern HResult D3DDisassemble(void* pSrcData, nuint SrcDataSize, DisasmFlags Flags, sbyte* szComments, Graphics.Direct3D.ID3DBlob** ppDisassembly); - /// + /// [DllImport("D3DCOMPILER_47.dll", ExactSpelling = true)] public static extern HResult D3DDisassembleRegion(void* pSrcData, nuint SrcDataSize, uint Flags, sbyte* szComments, nuint StartByteOffset, nuint NumInsts, nuint* pFinishByteOffset, Graphics.Direct3D.ID3DBlob** ppDisassembly); - /// + /// [DllImport("D3DCOMPILER_47.dll", ExactSpelling = true)] public static extern HResult D3DGetTraceInstructionOffsets(void* pSrcData, nuint SrcDataSize, uint Flags, nuint StartInstIndex, nuint NumInsts, nuint* pOffsets, nuint* pTotalInsts); - /// + /// [DllImport("D3DCOMPILER_47.dll", ExactSpelling = true)] public static extern HResult D3DGetInputSignatureBlob(void* pSrcData, nuint SrcDataSize, Graphics.Direct3D.ID3DBlob** ppSignatureBlob); - /// + /// [DllImport("D3DCOMPILER_47.dll", ExactSpelling = true)] public static extern HResult D3DGetOutputSignatureBlob(void* pSrcData, nuint SrcDataSize, Graphics.Direct3D.ID3DBlob** ppSignatureBlob); - /// + /// [DllImport("D3DCOMPILER_47.dll", ExactSpelling = true)] public static extern HResult D3DGetInputAndOutputSignatureBlob(void* pSrcData, nuint SrcDataSize, Graphics.Direct3D.ID3DBlob** ppSignatureBlob); - /// + /// [DllImport("D3DCOMPILER_47.dll", ExactSpelling = true)] public static extern HResult D3DStripShader(void* pShaderBytecode, nuint BytecodeLength, uint uStripFlags, Graphics.Direct3D.ID3DBlob** ppStrippedBlob); - /// + /// [DllImport("D3DCOMPILER_47.dll", ExactSpelling = true)] public static extern HResult D3DGetBlobPart(void* pSrcData, nuint SrcDataSize, BlobPart Part, uint Flags, Graphics.Direct3D.ID3DBlob** ppPart); - /// + /// [DllImport("D3DCOMPILER_47.dll", ExactSpelling = true)] public static extern HResult D3DSetBlobPart(void* pSrcData, nuint SrcDataSize, BlobPart Part, uint Flags, void* pPart, nuint PartSize, Graphics.Direct3D.ID3DBlob** ppNewShader); - /// + /// [DllImport("D3DCOMPILER_47.dll", ExactSpelling = true)] public static extern HResult D3DCreateBlob(nuint Size, Graphics.Direct3D.ID3DBlob** ppBlob); - /// + /// [DllImport("D3DCOMPILER_47.dll", ExactSpelling = true)] public static extern HResult D3DCompressShaders(uint uNumShaders, ShaderData* pShaderData, CompressShaderFlags uFlags, Graphics.Direct3D.ID3DBlob** ppCompressedData); - /// + /// [DllImport("D3DCOMPILER_47.dll", ExactSpelling = true)] public static extern HResult D3DDecompressShaders(void* pSrcData, nuint SrcDataSize, uint uNumShaders, uint uStartIndex, uint* pIndices, uint uFlags, Graphics.Direct3D.ID3DBlob** ppShaders, uint* pTotalShaders); } diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D.Fxc/Graphics.Direct3D.Fxc.Apis.cs b/src/Vortice.Win32.Graphics.Direct3D.Fxc/Generated/Graphics.Direct3D.Fxc.Apis.cs similarity index 100% rename from src/Vortice.Win32/Generated/Graphics/Direct3D.Fxc/Graphics.Direct3D.Fxc.Apis.cs rename to src/Vortice.Win32.Graphics.Direct3D.Fxc/Generated/Graphics.Direct3D.Fxc.Apis.cs diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D.Fxc/ShaderData.cs b/src/Vortice.Win32.Graphics.Direct3D.Fxc/Generated/ShaderData.cs similarity index 58% rename from src/Vortice.Win32/Generated/Graphics/Direct3D.Fxc/ShaderData.cs rename to src/Vortice.Win32.Graphics.Direct3D.Fxc/Generated/ShaderData.cs index f1503ac..2370bf9 100644 --- a/src/Vortice.Win32/Generated/Graphics/Direct3D.Fxc/ShaderData.cs +++ b/src/Vortice.Win32.Graphics.Direct3D.Fxc/Generated/ShaderData.cs @@ -9,13 +9,13 @@ namespace Win32.Graphics.Direct3D.Fxc; -/// +/// /// D3D_SHADER_DATA public partial struct ShaderData { - /// + /// public unsafe void* pBytecode; - /// + /// public nuint BytecodeLength; } diff --git a/src/Vortice.Win32.Graphics.Direct3D.Fxc/Generated/StripFlags.cs b/src/Vortice.Win32.Graphics.Direct3D.Fxc/Generated/StripFlags.cs new file mode 100644 index 0000000..d0eaeb6 --- /dev/null +++ b/src/Vortice.Win32.Graphics.Direct3D.Fxc/Generated/StripFlags.cs @@ -0,0 +1,33 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +namespace Win32.Graphics.Direct3D.Fxc; + +/// +/// D3DCOMPILER_STRIP_FLAGS +[Flags] +public enum StripFlags : int +{ + None = 0, + /// + /// D3DCOMPILER_STRIP_REFLECTION_DATA + ReflectionData = 1, + /// + /// D3DCOMPILER_STRIP_DEBUG_INFO + DebugInfo = 2, + /// + /// D3DCOMPILER_STRIP_TEST_BLOBS + TestBlobs = 4, + /// + /// D3DCOMPILER_STRIP_PRIVATE_DATA + PrivateData = 8, + /// + /// D3DCOMPILER_STRIP_ROOT_SIGNATURE + RootSignature = 16, +} diff --git a/src/Vortice.Win32.Graphics.Direct3D.Fxc/Vortice.Win32.Graphics.Direct3D.Fxc.csproj b/src/Vortice.Win32.Graphics.Direct3D.Fxc/Vortice.Win32.Graphics.Direct3D.Fxc.csproj new file mode 100644 index 0000000..3ebf372 --- /dev/null +++ b/src/Vortice.Win32.Graphics.Direct3D.Fxc/Vortice.Win32.Graphics.Direct3D.Fxc.csproj @@ -0,0 +1,23 @@ + + + + netstandard2.0;netstandard2.1;net6.0;net7.0 + FXC bindings. + + $(NoWarn);CS0419;IDE0017 + + + + + + + + + + + + + + + + diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D.Fxc/BlobPart.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D.Fxc/BlobPart.cs deleted file mode 100644 index a0b0d36..0000000 --- a/src/Vortice.Win32/Generated/Graphics/Direct3D.Fxc/BlobPart.cs +++ /dev/null @@ -1,67 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -namespace Win32.Graphics.Direct3D.Fxc; - -/// -/// D3D_BLOB_PART -public enum BlobPart : int -{ - /// - /// D3D_BLOB_INPUT_SIGNATURE_BLOB - InputSignatureBlob = 0, - /// - /// D3D_BLOB_OUTPUT_SIGNATURE_BLOB - OutputSignatureBlob = 1, - /// - /// D3D_BLOB_INPUT_AND_OUTPUT_SIGNATURE_BLOB - InputAndOutputSignatureBlob = 2, - /// - /// D3D_BLOB_PATCH_CONSTANT_SIGNATURE_BLOB - PatchConstantSignatureBlob = 3, - /// - /// D3D_BLOB_ALL_SIGNATURE_BLOB - AllSignatureBlob = 4, - /// - /// D3D_BLOB_DEBUG_INFO - DebugInfo = 5, - /// - /// D3D_BLOB_LEGACY_SHADER - LegacyShader = 6, - /// - /// D3D_BLOB_XNA_PREPASS_SHADER - XNAPrepassShader = 7, - /// - /// D3D_BLOB_XNA_SHADER - XNAShader = 8, - /// - /// D3D_BLOB_PDB - Pdb = 9, - /// - /// D3D_BLOB_PRIVATE_DATA - PrivateData = 10, - /// - /// D3D_BLOB_ROOT_SIGNATURE - RootSignature = 11, - /// - /// D3D_BLOB_DEBUG_NAME - DebugName = 12, - /// - /// D3D_BLOB_TEST_ALTERNATE_SHADER - TestAlternateShader = 32768, - /// - /// D3D_BLOB_TEST_COMPILE_DETAILS - TestCompileDetails = 32769, - /// - /// D3D_BLOB_TEST_COMPILE_PERF - TestCompilePerf = 32770, - /// - /// D3D_BLOB_TEST_COMPILE_REPORT - TestCompileReport = 32771, -} diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D.Fxc/StripFlags.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D.Fxc/StripFlags.cs deleted file mode 100644 index 1324003..0000000 --- a/src/Vortice.Win32/Generated/Graphics/Direct3D.Fxc/StripFlags.cs +++ /dev/null @@ -1,33 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -namespace Win32.Graphics.Direct3D.Fxc; - -/// -/// D3DCOMPILER_STRIP_FLAGS -[Flags] -public enum StripFlags : int -{ - None = 0, - /// - /// D3DCOMPILER_STRIP_REFLECTION_DATA - ReflectionData = 1, - /// - /// D3DCOMPILER_STRIP_DEBUG_INFO - DebugInfo = 2, - /// - /// D3DCOMPILER_STRIP_TEST_BLOBS - TestBlobs = 4, - /// - /// D3DCOMPILER_STRIP_PRIVATE_DATA - PrivateData = 8, - /// - /// D3DCOMPILER_STRIP_ROOT_SIGNATURE - RootSignature = 16, -} diff --git a/src/Vortice.Win32/Properties/AssemblyInfo.cs b/src/Vortice.Win32/Properties/AssemblyInfo.cs index c2cec7c..95400d0 100644 --- a/src/Vortice.Win32/Properties/AssemblyInfo.cs +++ b/src/Vortice.Win32/Properties/AssemblyInfo.cs @@ -8,3 +8,4 @@ [assembly: InternalsVisibleTo("Vortice.Win32.Graphics.DirectWrite")] [assembly: InternalsVisibleTo("Vortice.Win32.Graphics.Direct2D")] [assembly: InternalsVisibleTo("Vortice.Win32.Graphics.Direct3D.Dxc")] +[assembly: InternalsVisibleTo("Vortice.Win32.Graphics.Direct3D.Fxc")] diff --git a/src/samples/01-ClearScreen/01-ClearScreen.csproj b/src/samples/01-ClearScreen/01-ClearScreen.csproj index 01902a8..c996953 100644 --- a/src/samples/01-ClearScreen/01-ClearScreen.csproj +++ b/src/samples/01-ClearScreen/01-ClearScreen.csproj @@ -14,6 +14,7 @@ +