Rework folder structure (again)

This commit is contained in:
Amer Koleci
2022-10-07 11:04:57 +02:00
parent bbd36faeeb
commit 870a6a433c
106 changed files with 7116 additions and 33108 deletions

View File

@@ -945,6 +945,10 @@ public static class Program
{ "D3D11_BUFFER_UAV::Flags", "D3D11_BUFFER_UAV_FLAG" },
{ "D3D11_BUFFEREX_SRV::Flags", "D3D11_BUFFEREX_SRV_FLAG" },
{ "D3D11_RESOURCE_FLAGS::BindFlags", "D3D11_BIND_FLAG" },
{ "D3D11_RESOURCE_FLAGS::CPUAccessFlags", "D3D11_CPU_ACCESS_FLAG" },
{ "D3D11_RESOURCE_FLAGS::MiscFlags", "D3D11_RESOURCE_MISC_FLAG" },
// D3D12
{ "D3D12_RENDER_TARGET_BLEND_DESC::RenderTargetWriteMask", "D3D12_COLOR_WRITE_ENABLE" },
@@ -996,6 +1000,8 @@ public static class Program
{ "D3DCompileFromFile::Flags1", "D3DCOMPILE" },
{ "D3DCompressShaders::uFlags", "D3D_COMPRESS_SHADER" },
{ "D3DDisassemble::Flags", "D3D_DISASM" },
{ "D3D11On12CreateDevice::Flags", "D3D11_CREATE_DEVICE_FLAG" },
};
private static readonly HashSet<string> s_visitedEnums = new();
@@ -1051,17 +1057,18 @@ public static class Program
}
string docFile = splits[1];
string fileName = string.Empty;
string subFolderName = string.Empty;
for (int i = 1; i < splits.Length - 1; i++)
{
if (string.IsNullOrEmpty(fileName) == false)
if (string.IsNullOrEmpty(subFolderName) == false)
{
fileName += ".";
subFolderName += ".";
}
fileName += splits[i];
subFolderName += splits[i];
}
string fileName = subFolderName;
string ns = string.Empty;
if (string.IsNullOrWhiteSpace(fileName) == true)
{
@@ -1073,13 +1080,10 @@ public static class Program
ns = $"{folderRoot}.{fileName}";
}
fileName += ".cs";
if (docFile != "json")
{
string subdirectory = Path.Combine(outputFolder, docFile);
if (Directory.Exists(subdirectory) == false)
Directory.CreateDirectory(subdirectory);
}
else
{
@@ -1092,7 +1096,10 @@ public static class Program
}
string apiName = ns;
string apiFolder = Path.Combine(outputFolder, docFile);
string apiFolder = Path.Combine(outputFolder, subFolderName);
if (Directory.Exists(apiFolder) == false)
Directory.CreateDirectory(apiFolder);
GenerateConstants(apiFolder, apiName, docFile, api);
GenerateTypes(apiFolder, apiName, docFile, api);
@@ -1102,11 +1109,12 @@ public static class Program
private static void GenerateConstants(string folder, string apiName, string docFileName, ApiData api)
{
using CodeWriter writer = new(
Path.Combine(folder, "Apis.cs"),
Path.Combine(folder, $"Apis.cs"),
apiName,
docFileName,
$"Win32.{apiName}");
bool needNewLine = false;
using (writer.PushBlock($"public static partial class Apis"))
{
foreach (var constant in api.Constants)
@@ -1127,6 +1135,11 @@ public static class Program
if (skipValue)
continue;
if (needNewLine)
{
writer.WriteLine();
}
string typeName = GetTypeName(constant.Type);
if (typeName == "Guid")
{
@@ -1157,7 +1170,7 @@ public static class Program
writer.WriteLine($"public const {typeName} {constant.Name} = {constant.Value};");
}
writer.WriteLine();
needNewLine = true;
}
}
writer.WriteLine();

View File

@@ -2396,6 +2396,5 @@ public static partial class Apis
public const string D3DCSX_DLL_A = "d3dcsx_47.dll";
public const string D3DCSX_DLL = "d3dcsx_47.dll";
}

View File

@@ -12,5 +12,5 @@ namespace Win32.Graphics.Direct3D11on12;
public static unsafe partial class Apis
{
[DllImport("d3d11.dll", ExactSpelling = true)]
public static extern HResult D3D11On12CreateDevice(IUnknown* pDevice, uint Flags, Graphics.Direct3D.FeatureLevel* pFeatureLevels, uint FeatureLevels, IUnknown** ppCommandQueues, uint NumQueues, uint NodeMask, Graphics.Direct3D11.ID3D11Device** ppDevice, Graphics.Direct3D11.ID3D11DeviceContext** ppImmediateContext, Graphics.Direct3D.FeatureLevel* pChosenFeatureLevel);
public static extern HResult D3D11On12CreateDevice(IUnknown* pDevice, D3D11_CREATE_DEVICE_FLAG Flags, Graphics.Direct3D.FeatureLevel* pFeatureLevels, uint FeatureLevels, IUnknown** ppCommandQueues, uint NumQueues, uint NodeMask, Graphics.Direct3D11.ID3D11Device** ppDevice, Graphics.Direct3D11.ID3D11DeviceContext** ppImmediateContext, Graphics.Direct3D.FeatureLevel* pChosenFeatureLevel);
}

View File

@@ -14,13 +14,13 @@ namespace Win32.Graphics.Direct3D11on12;
public partial struct ResourceFlags
{
/// <include file='Direct3D11on12.xml' path='doc/member[@name="D3D11_RESOURCE_FLAGS::BindFlags"]/*' />
public uint BindFlags;
public D3D11_BIND_FLAG BindFlags;
/// <include file='Direct3D11on12.xml' path='doc/member[@name="D3D11_RESOURCE_FLAGS::MiscFlags"]/*' />
public uint MiscFlags;
public D3D11_RESOURCE_MISC_FLAG MiscFlags;
/// <include file='Direct3D11on12.xml' path='doc/member[@name="D3D11_RESOURCE_FLAGS::CPUAccessFlags"]/*' />
public uint CPUAccessFlags;
public D3D11_CPU_ACCESS_FLAG CPUAccessFlags;
/// <include file='Direct3D11on12.xml' path='doc/member[@name="D3D11_RESOURCE_FLAGS::StructureByteStride"]/*' />
public uint StructureByteStride;

View File

@@ -1160,6 +1160,5 @@ public static partial class Apis
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
}

View File

@@ -0,0 +1,15 @@
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
namespace Win32.Graphics.Direct2D.Common;
public static partial class Apis
{
}

View File

@@ -1578,6 +1578,5 @@ public static partial class Apis
public const uint D2D1_APPEND_ALIGNED_ELEMENT = 4294967295;
public const uint FACILITY_D2D = 2201;
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,19 @@
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
namespace Win32.Graphics.Direct3D.Dxc;
public static unsafe partial class Apis
{
[DllImport("dxcompiler.dll", ExactSpelling = true)]
public static extern HResult DxcCreateInstance(Guid* rclsid, Guid* riid, void** ppv);
[DllImport("dxcompiler.dll", ExactSpelling = true)]
public static extern HResult DxcCreateInstance2(Com.IMalloc* pMalloc, Guid* rclsid, Guid* riid, void** ppv);
}

View File

@@ -0,0 +1,320 @@
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
namespace Win32.Graphics.Direct3D.Dxc;
public static partial class Apis
{
public const string DXC_ARG_DEBUG = "-Zi";
public const string DXC_ARG_SKIP_VALIDATION = "-Vd";
public const string DXC_ARG_SKIP_OPTIMIZATIONS = "-Od";
public const string DXC_ARG_PACK_MATRIX_ROW_MAJOR = "-Zpr";
public const string DXC_ARG_PACK_MATRIX_COLUMN_MAJOR = "-Zpc";
public const string DXC_ARG_AVOID_FLOW_CONTROL = "-Gfa";
public const string DXC_ARG_PREFER_FLOW_CONTROL = "-Gfp";
public const string DXC_ARG_ENABLE_STRICTNESS = "-Ges";
public const string DXC_ARG_ENABLE_BACKWARDS_COMPATIBILITY = "-Gec";
public const string DXC_ARG_IEEE_STRICTNESS = "-Gis";
public const string DXC_ARG_OPTIMIZATION_LEVEL0 = "-O0";
public const string DXC_ARG_OPTIMIZATION_LEVEL1 = "-O1";
public const string DXC_ARG_OPTIMIZATION_LEVEL2 = "-O2";
public const string DXC_ARG_OPTIMIZATION_LEVEL3 = "-O3";
public const string DXC_ARG_WARNINGS_ARE_ERRORS = "-WX";
public const string DXC_ARG_RESOURCES_MAY_ALIAS = "-res_may_alias";
public const string DXC_ARG_ALL_RESOURCES_BOUND = "-all_resources_bound";
public const string DXC_ARG_DEBUG_NAME_FOR_SOURCE = "-Zss";
public const string DXC_ARG_DEBUG_NAME_FOR_BINARY = "-Zsb";
public const string DXC_EXTRA_OUTPUT_NAME_STDOUT = "*stdout*";
public const string DXC_EXTRA_OUTPUT_NAME_STDERR = "*stderr*";
public static ref readonly Guid CLSID_DxcCompiler
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x93, 0x2D, 0xE2, 0x73,
0xCE, 0xE6,
0xF3, 0x47,
0xB5,
0xBF,
0xF0,
0x66,
0x4F,
0x39,
0xC1,
0xB0
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
public static ref readonly Guid CLSID_DxcLinker
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x87, 0x80, 0x6A, 0xEF,
0xEA, 0xB0,
0x56, 0x4D,
0x9E,
0x45,
0xD0,
0x7E,
0x1A,
0x8B,
0x78,
0x06
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
public static ref readonly Guid CLSID_DxcDiaDataSource
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x73, 0x6B, 0x1F, 0xCD,
0xB0, 0x2A,
0x4D, 0x48,
0x8E,
0xDC,
0xEB,
0xE7,
0xA4,
0x3C,
0xA0,
0x9F
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
public static ref readonly Guid CLSID_DxcCompilerArgs
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x82, 0xAE, 0x56, 0x3E,
0x4D, 0x22,
0x0F, 0x47,
0xA1,
0xA1,
0xFE,
0x30,
0x16,
0xEE,
0x9F,
0x9D
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
public static ref readonly Guid CLSID_DxcLibrary
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0xAF, 0xD6, 0x45, 0x62,
0xE0, 0x66,
0xFD, 0x48,
0x80,
0xB4,
0x4D,
0x27,
0x17,
0x96,
0x74,
0x8C
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
public static ref readonly Guid CLSID_DxcValidator
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x15, 0xE2, 0xA3, 0x8C,
0x28, 0xF7,
0xF3, 0x4C,
0x8C,
0xDD,
0x88,
0xAF,
0x91,
0x75,
0x87,
0xA1
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
public static ref readonly Guid CLSID_DxcAssembler
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x68, 0xDB, 0x28, 0xD7,
0x03, 0xF9,
0x80, 0x4F,
0x94,
0xCD,
0xDC,
0xCF,
0x76,
0xEC,
0x71,
0x51
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
public static ref readonly Guid CLSID_DxcContainerReflection
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x89, 0x44, 0xF5, 0xB9,
0xB8, 0x55,
0x0C, 0x40,
0xBA,
0x3A,
0x16,
0x75,
0xE4,
0x72,
0x8B,
0x91
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
public static ref readonly Guid CLSID_DxcOptimizer
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x9F, 0xD7, 0x2C, 0xAE,
0x22, 0xCC,
0x3F, 0x45,
0x9B,
0x6B,
0xB1,
0x24,
0xE7,
0xA5,
0x20,
0x4C
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
public static ref readonly Guid CLSID_DxcContainerBuilder
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x94, 0x42, 0x13, 0x94,
0x1F, 0x41,
0x74, 0x45,
0xB4,
0xD0,
0x87,
0x41,
0xE2,
0x52,
0x40,
0xD2
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
public static ref readonly Guid CLSID_DxcPdbUtils
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0xFB, 0x1D, 0x62, 0x54,
0xCE, 0xF2,
0x7E, 0x45,
0xAE,
0x8C,
0xEC,
0x35,
0x5F,
0xAE,
0xEC,
0x7C
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
}

View File

@@ -0,0 +1,18 @@
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
namespace Win32.Graphics.Direct3D.Fxc;
public static partial class Apis
{
public const uint D3D_COMPILER_VERSION = 47;
public const uint D3D_GET_INST_OFFSETS_INCLUDE_NON_EXECUTABLE = 1;
}

View File

@@ -7,13 +7,248 @@
// </auto-generated>
// ------------------------------------------------------------------------------
namespace Win32.Graphics.Direct3D.Fxc;
namespace Win32.Graphics.Direct3D;
public static partial class Apis
{
public const uint D3D_COMPILER_VERSION = 47;
public const uint D3D_FL9_1_REQ_TEXTURE1D_U_DIMENSION = 2048;
public const uint D3D_GET_INST_OFFSETS_INCLUDE_NON_EXECUTABLE = 1;
public const uint D3D_FL9_3_REQ_TEXTURE1D_U_DIMENSION = 4096;
public const uint D3D_FL9_1_REQ_TEXTURE2D_U_OR_V_DIMENSION = 2048;
public const uint D3D_FL9_3_REQ_TEXTURE2D_U_OR_V_DIMENSION = 4096;
public const uint D3D_FL9_1_REQ_TEXTURECUBE_DIMENSION = 512;
public const uint D3D_FL9_3_REQ_TEXTURECUBE_DIMENSION = 4096;
public const uint D3D_FL9_1_REQ_TEXTURE3D_U_V_OR_W_DIMENSION = 256;
public const uint D3D_FL9_1_DEFAULT_MAX_ANISOTROPY = 2;
public const uint D3D_FL9_1_IA_PRIMITIVE_MAX_COUNT = 65535;
public const uint D3D_FL9_2_IA_PRIMITIVE_MAX_COUNT = 1048575;
public const uint D3D_FL9_1_SIMULTANEOUS_RENDER_TARGET_COUNT = 1;
public const uint D3D_FL9_3_SIMULTANEOUS_RENDER_TARGET_COUNT = 4;
public const uint D3D_FL9_1_MAX_TEXTURE_REPEAT = 128;
public const uint D3D_FL9_2_MAX_TEXTURE_REPEAT = 2048;
public const uint D3D_FL9_3_MAX_TEXTURE_REPEAT = 8192;
public const uint D3D_SHADER_FEATURE_DOUBLES = 1;
public const uint D3D_SHADER_FEATURE_COMPUTE_SHADERS_PLUS_RAW_AND_STRUCTURED_BUFFERS_VIA_SHADER_4_X = 2;
public const uint D3D_SHADER_FEATURE_UAVS_AT_EVERY_STAGE = 4;
public const uint D3D_SHADER_FEATURE_64_UAVS = 8;
public const uint D3D_SHADER_FEATURE_MINIMUM_PRECISION = 16;
public const uint D3D_SHADER_FEATURE_11_1_DOUBLE_EXTENSIONS = 32;
public const uint D3D_SHADER_FEATURE_11_1_SHADER_EXTENSIONS = 64;
public const uint D3D_SHADER_FEATURE_LEVEL_9_COMPARISON_FILTERING = 128;
public const uint D3D_SHADER_FEATURE_TILED_RESOURCES = 256;
public const uint D3D_SHADER_FEATURE_STENCIL_REF = 512;
public const uint D3D_SHADER_FEATURE_INNER_COVERAGE = 1024;
public const uint D3D_SHADER_FEATURE_TYPED_UAV_LOAD_ADDITIONAL_FORMATS = 2048;
public const uint D3D_SHADER_FEATURE_ROVS = 4096;
public const uint D3D_SHADER_FEATURE_VIEWPORT_AND_RT_ARRAY_INDEX_FROM_ANY_SHADER_FEEDING_RASTERIZER = 8192;
public const uint D3D_SHADER_FEATURE_WAVE_OPS = 16384;
public const uint D3D_SHADER_FEATURE_INT64_OPS = 32768;
public const uint D3D_SHADER_FEATURE_VIEW_ID = 65536;
public const uint D3D_SHADER_FEATURE_BARYCENTRICS = 131072;
public const uint D3D_SHADER_FEATURE_NATIVE_16BIT_OPS = 262144;
public const uint D3D_SHADER_FEATURE_SHADING_RATE = 524288;
public const uint D3D_SHADER_FEATURE_RAYTRACING_TIER_1_1 = 1048576;
public const uint D3D_SHADER_FEATURE_SAMPLER_FEEDBACK = 2097152;
public const uint D3D_SHADER_FEATURE_ATOMIC_INT64_ON_TYPED_RESOURCE = 4194304;
public const uint D3D_SHADER_FEATURE_ATOMIC_INT64_ON_GROUP_SHARED = 8388608;
public const uint D3D_SHADER_FEATURE_DERIVATIVES_IN_MESH_AND_AMPLIFICATION_SHADERS = 16777216;
public const uint D3D_SHADER_FEATURE_RESOURCE_DESCRIPTOR_HEAP_INDEXING = 33554432;
public const uint D3D_SHADER_FEATURE_SAMPLER_DESCRIPTOR_HEAP_INDEXING = 67108864;
public const uint D3D_SHADER_FEATURE_WAVE_MMA = 134217728;
public const uint D3D_SHADER_FEATURE_ATOMIC_INT64_ON_DESCRIPTOR_HEAP_RESOURCE = 268435456;
public static ref readonly Guid WKPDID_D3DDebugObjectName
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x22, 0x8C, 0x9B, 0x42,
0x88, 0x91,
0x0C, 0x4B,
0x87,
0x42,
0xAC,
0xB0,
0xBF,
0x85,
0xC2,
0x00
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
public static ref readonly Guid WKPDID_D3DDebugObjectNameW
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0xD8, 0x5F, 0xCA, 0x4C,
0x1F, 0x92,
0xC8, 0x42,
0x85,
0x66,
0x70,
0xCA,
0xF2,
0xA9,
0xB7,
0x41
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
public static ref readonly Guid WKPDID_CommentStringW
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0xC0, 0x9D, 0x14, 0xD0,
0xE8, 0x90,
0xC8, 0x4E,
0x81,
0x44,
0xE9,
0x00,
0xAD,
0x26,
0x6B,
0xB2
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
public static ref readonly Guid WKPDID_D3D12UniqueObjectId
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x15, 0xDE, 0x39, 0x1B,
0x04, 0xEC,
0xAE, 0x4B,
0xBA,
0x4D,
0x8C,
0xEF,
0x79,
0xFC,
0x04,
0xC1
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
public const uint D3D_COMPONENT_MASK_X = 1;
public const uint D3D_COMPONENT_MASK_Y = 2;
public const uint D3D_COMPONENT_MASK_Z = 4;
public const uint D3D_COMPONENT_MASK_W = 8;
public static ref readonly Guid D3D_TEXTURE_LAYOUT_ROW_MAJOR
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x4F, 0x23, 0xDC, 0xB5,
0xBB, 0x72,
0xEC, 0x4B,
0x97,
0x05,
0x8C,
0xF2,
0x58,
0xDF,
0x6B,
0x6C
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
public static ref readonly Guid D3D_TEXTURE_LAYOUT_64KB_STANDARD_SWIZZLE
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0xE3, 0x29, 0x0F, 0x4C,
0x5F, 0x3F,
0x35, 0x4D,
0x84,
0xC9,
0xBC,
0x09,
0x83,
0xB6,
0x2C,
0x28
};
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -24,6 +24,5 @@ public static partial class Apis
public static readonly HResult DWRITE_E_DOWNLOADFAILED = -2003283953;
public static readonly HResult DWRITE_E_TOOMANYDOWNLOADS = -2003283952;
}

View File

@@ -1,43 +0,0 @@
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
namespace Win32.Graphics.DirectWrite;
public partial struct _decorative_e__Struct
{
/// <include file='DirectWrite.xml' path='doc/member[@name="_decorative_e__Struct::familyKind"]/*' />
public byte familyKind;
/// <include file='DirectWrite.xml' path='doc/member[@name="_decorative_e__Struct::decorativeClass"]/*' />
public byte decorativeClass;
/// <include file='DirectWrite.xml' path='doc/member[@name="_decorative_e__Struct::weight"]/*' />
public byte weight;
/// <include file='DirectWrite.xml' path='doc/member[@name="_decorative_e__Struct::aspect"]/*' />
public byte aspect;
/// <include file='DirectWrite.xml' path='doc/member[@name="_decorative_e__Struct::contrast"]/*' />
public byte contrast;
/// <include file='DirectWrite.xml' path='doc/member[@name="_decorative_e__Struct::serifVariant"]/*' />
public byte serifVariant;
/// <include file='DirectWrite.xml' path='doc/member[@name="_decorative_e__Struct::fill"]/*' />
public byte fill;
/// <include file='DirectWrite.xml' path='doc/member[@name="_decorative_e__Struct::lining"]/*' />
public byte lining;
/// <include file='DirectWrite.xml' path='doc/member[@name="_decorative_e__Struct::decorativeTopology"]/*' />
public byte decorativeTopology;
/// <include file='DirectWrite.xml' path='doc/member[@name="_decorative_e__Struct::characterRange"]/*' />
public byte characterRange;
}

View File

@@ -1,43 +0,0 @@
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
namespace Win32.Graphics.DirectWrite;
public partial struct _script_e__Struct
{
/// <include file='DirectWrite.xml' path='doc/member[@name="_script_e__Struct::familyKind"]/*' />
public byte familyKind;
/// <include file='DirectWrite.xml' path='doc/member[@name="_script_e__Struct::toolKind"]/*' />
public byte toolKind;
/// <include file='DirectWrite.xml' path='doc/member[@name="_script_e__Struct::weight"]/*' />
public byte weight;
/// <include file='DirectWrite.xml' path='doc/member[@name="_script_e__Struct::spacing"]/*' />
public byte spacing;
/// <include file='DirectWrite.xml' path='doc/member[@name="_script_e__Struct::aspectRatio"]/*' />
public byte aspectRatio;
/// <include file='DirectWrite.xml' path='doc/member[@name="_script_e__Struct::contrast"]/*' />
public byte contrast;
/// <include file='DirectWrite.xml' path='doc/member[@name="_script_e__Struct::scriptTopology"]/*' />
public byte scriptTopology;
/// <include file='DirectWrite.xml' path='doc/member[@name="_script_e__Struct::scriptForm"]/*' />
public byte scriptForm;
/// <include file='DirectWrite.xml' path='doc/member[@name="_script_e__Struct::finials"]/*' />
public byte finials;
/// <include file='DirectWrite.xml' path='doc/member[@name="_script_e__Struct::xAscent"]/*' />
public byte xAscent;
}

View File

@@ -1,43 +0,0 @@
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
namespace Win32.Graphics.DirectWrite;
public partial struct _symbol_e__Struct
{
/// <include file='DirectWrite.xml' path='doc/member[@name="_symbol_e__Struct::familyKind"]/*' />
public byte familyKind;
/// <include file='DirectWrite.xml' path='doc/member[@name="_symbol_e__Struct::symbolKind"]/*' />
public byte symbolKind;
/// <include file='DirectWrite.xml' path='doc/member[@name="_symbol_e__Struct::weight"]/*' />
public byte weight;
/// <include file='DirectWrite.xml' path='doc/member[@name="_symbol_e__Struct::spacing"]/*' />
public byte spacing;
/// <include file='DirectWrite.xml' path='doc/member[@name="_symbol_e__Struct::aspectRatioAndContrast"]/*' />
public byte aspectRatioAndContrast;
/// <include file='DirectWrite.xml' path='doc/member[@name="_symbol_e__Struct::aspectRatio94"]/*' />
public byte aspectRatio94;
/// <include file='DirectWrite.xml' path='doc/member[@name="_symbol_e__Struct::aspectRatio119"]/*' />
public byte aspectRatio119;
/// <include file='DirectWrite.xml' path='doc/member[@name="_symbol_e__Struct::aspectRatio157"]/*' />
public byte aspectRatio157;
/// <include file='DirectWrite.xml' path='doc/member[@name="_symbol_e__Struct::aspectRatio163"]/*' />
public byte aspectRatio163;
/// <include file='DirectWrite.xml' path='doc/member[@name="_symbol_e__Struct::aspectRatio211"]/*' />
public byte aspectRatio211;
}

View File

@@ -1,43 +0,0 @@
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
namespace Win32.Graphics.DirectWrite;
public partial struct _text_e__Struct
{
/// <include file='DirectWrite.xml' path='doc/member[@name="_text_e__Struct::familyKind"]/*' />
public byte familyKind;
/// <include file='DirectWrite.xml' path='doc/member[@name="_text_e__Struct::serifStyle"]/*' />
public byte serifStyle;
/// <include file='DirectWrite.xml' path='doc/member[@name="_text_e__Struct::weight"]/*' />
public byte weight;
/// <include file='DirectWrite.xml' path='doc/member[@name="_text_e__Struct::proportion"]/*' />
public byte proportion;
/// <include file='DirectWrite.xml' path='doc/member[@name="_text_e__Struct::contrast"]/*' />
public byte contrast;
/// <include file='DirectWrite.xml' path='doc/member[@name="_text_e__Struct::strokeVariation"]/*' />
public byte strokeVariation;
/// <include file='DirectWrite.xml' path='doc/member[@name="_text_e__Struct::armStyle"]/*' />
public byte armStyle;
/// <include file='DirectWrite.xml' path='doc/member[@name="_text_e__Struct::letterform"]/*' />
public byte letterform;
/// <include file='DirectWrite.xml' path='doc/member[@name="_text_e__Struct::midline"]/*' />
public byte midline;
/// <include file='DirectWrite.xml' path='doc/member[@name="_text_e__Struct::xHeight"]/*' />
public byte xHeight;
}

View File

@@ -0,0 +1,18 @@
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
namespace Win32.Graphics.Dxgi.Common;
public static partial class Apis
{
public const uint DXGI_STANDARD_MULTISAMPLE_QUALITY_PATTERN = 4294967295;
public const uint DXGI_CENTER_MULTISAMPLE_QUALITY_PATTERN = 4294967294;
}

View File

@@ -184,6 +184,5 @@ public static partial class Apis
public static readonly HResult DXGI_ERROR_CACHE_HASH_COLLISION = -2005270475;
public static readonly HResult DXGI_ERROR_ALREADY_EXISTS = -2005270474;
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,15 @@
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
namespace Win32.Graphics.Imaging.D2D;
public static partial class Apis
{
}

Some files were not shown because too many files have changed in this diff Show More