Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ jobs:
artifacts/test-results/**
artifacts/api-coverage/**
artifacts/sample-packages/**
artifacts/shader-build/**
artifacts/packages/**
if-no-files-found: warn

Expand Down
15 changes: 15 additions & 0 deletions DXSharp.sln
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BasicSample", "samples\Basi
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CharacterLab", "samples\CharacterLab\CharacterLab.csproj", "{BF80CE21-E7F9-4F5F-8D30-8595596B76B1}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CharacterLab.Native", "samples\CharacterLab.Native\CharacterLab.Native.csproj", "{3F26D680-7549-4ED0-B6E6-F940B2E2E8C1}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -171,17 +173,29 @@ Global
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{BF80CE21-E7F9-4F5F-8D30-8595596B76B1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3F26D680-7549-4ED0-B6E6-F940B2E2E8C1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BF80CE21-E7F9-4F5F-8D30-8595596B76B1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3F26D680-7549-4ED0-B6E6-F940B2E2E8C1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BF80CE21-E7F9-4F5F-8D30-8595596B76B1}.Debug|x64.ActiveCfg = Debug|x64
{3F26D680-7549-4ED0-B6E6-F940B2E2E8C1}.Debug|x64.ActiveCfg = Debug|x64
{BF80CE21-E7F9-4F5F-8D30-8595596B76B1}.Debug|x64.Build.0 = Debug|x64
{3F26D680-7549-4ED0-B6E6-F940B2E2E8C1}.Debug|x64.Build.0 = Debug|x64
{BF80CE21-E7F9-4F5F-8D30-8595596B76B1}.Debug|x86.ActiveCfg = Debug|Any CPU
{3F26D680-7549-4ED0-B6E6-F940B2E2E8C1}.Debug|x86.ActiveCfg = Debug|Any CPU
{BF80CE21-E7F9-4F5F-8D30-8595596B76B1}.Debug|x86.Build.0 = Debug|Any CPU
{3F26D680-7549-4ED0-B6E6-F940B2E2E8C1}.Debug|x86.Build.0 = Debug|Any CPU
{BF80CE21-E7F9-4F5F-8D30-8595596B76B1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3F26D680-7549-4ED0-B6E6-F940B2E2E8C1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BF80CE21-E7F9-4F5F-8D30-8595596B76B1}.Release|Any CPU.Build.0 = Release|Any CPU
{3F26D680-7549-4ED0-B6E6-F940B2E2E8C1}.Release|Any CPU.Build.0 = Release|Any CPU
{BF80CE21-E7F9-4F5F-8D30-8595596B76B1}.Release|x64.ActiveCfg = Release|x64
{3F26D680-7549-4ED0-B6E6-F940B2E2E8C1}.Release|x64.ActiveCfg = Release|x64
{BF80CE21-E7F9-4F5F-8D30-8595596B76B1}.Release|x64.Build.0 = Release|x64
{3F26D680-7549-4ED0-B6E6-F940B2E2E8C1}.Release|x64.Build.0 = Release|x64
{BF80CE21-E7F9-4F5F-8D30-8595596B76B1}.Release|x86.ActiveCfg = Release|Any CPU
{3F26D680-7549-4ED0-B6E6-F940B2E2E8C1}.Release|x86.ActiveCfg = Release|Any CPU
{BF80CE21-E7F9-4F5F-8D30-8595596B76B1}.Release|x86.Build.0 = Release|Any CPU
{3F26D680-7549-4ED0-B6E6-F940B2E2E8C1}.Release|x86.Build.0 = Release|Any CPU
{82FD3E3F-ECB1-4EA2-B538-E1561AE737EF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{82FD3E3F-ECB1-4EA2-B538-E1561AE737EF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{82FD3E3F-ECB1-4EA2-B538-E1561AE737EF}.Debug|x64.ActiveCfg = Debug|x64
Expand Down Expand Up @@ -474,6 +488,7 @@ Global
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{BF80CE21-E7F9-4F5F-8D30-8595596B76B1} = {AEE84FD5-7441-42CF-AA6C-5805B759E1F8}
{3F26D680-7549-4ED0-B6E6-F940B2E2E8C1} = {AEE84FD5-7441-42CF-AA6C-5805B759E1F8}
{82FD3E3F-ECB1-4EA2-B538-E1561AE737EF} = {29411031-4490-4542-B2D1-02D223BFD605}
{8A61B8EE-8D96-4AF1-9A7B-0026AA0AF498} = {4A52D278-0251-4FD5-BF3A-5C52C294480A}
{F3C57F0F-8540-4E97-B28D-A34091C53755} = {AEE84FD5-7441-42CF-AA6C-5805B759E1F8}
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,5 @@ Aaron Carter started DXSharp to prove that C# could support a full Direct3D 12 w
For contributions, open an issue or a pull request with a small reproduction and the adapter, runtime, and validation details. DXSharp is [MIT licensed](LICENSE.md).

The higher-level game runtime and tooling direction, including the experimental Framework migration, is documented in [Framework vision](doc/Framework-Vision.md).

The Preview 4 shader and native-window increment is documented in [Shader build and hosting](doc/Shader-Build-and-Hosting.md). It retains the WinForms API while sharing frame rendering with the native Win32 host and adds precompiled shader assets.
2 changes: 2 additions & 0 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ try {
Invoke-DotNet -Arguments @('pack', 'DXSharp.sln', '--configuration', $Configuration, '--no-build', '--no-restore', '-m:1')
foreach ($major in '10', '11') {
& (Join-Path $PSScriptRoot 'build/VerifyPackages.ps1') -Configuration $Configuration -RuntimeMajor $major
& python (Join-Path $PSScriptRoot 'build/verify_shader_build.py') --configuration $Configuration --runtime-major $major
if ($LASTEXITCODE -ne 0) { throw 'Shader build package qualification failed.' }
& (Join-Path $PSScriptRoot 'build/VerifySamplePackages.ps1') -Configuration $Configuration -RuntimeMajor $major
}
} finally {
Expand Down
6 changes: 6 additions & 0 deletions build/VerifyPackages.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ try {
}
} finally { $archive.Dispose() }
}
$toolArchive = [System.IO.Compression.ZipFile]::OpenRead((Join-Path $packageDirectory "DXSharp.Tools.Builds.$version.nupkg"))
try {
foreach ($entry in 'tasks/netstandard2.0/DXSharp.Tools.Builds.dll', 'buildTransitive/DXSharp.Tools.Builds.targets') {
if ($null -eq $toolArchive.GetEntry($entry)) { throw "Missing shader build asset: $entry" }
}
} finally { $toolArchive.Dispose() }
@"
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
Expand Down
1 change: 1 addition & 0 deletions build/VerifySamples.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ try {
if ($LASTEXITCODE -ne 0) { throw "$Name failed with exit code $LASTEXITCODE." }
}

Invoke-Sample 'CharacterLab-native' @('run', '--project', 'samples/CharacterLab.Native', '-c', 'Debug', '--', '--warp', '--frames=9', '--resize-test')
Invoke-Sample 'DepthStencil' @('run', '--project', 'samples/DepthStencil', '-c', 'Debug', '--', '--warp')

Invoke-Sample 'ModernTriangle' @('run', '--project', 'samples/ModernTriangle', '-c', 'Debug', '--',
Expand Down
31 changes: 31 additions & 0 deletions build/msbuild/DXSharp.Shaders.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<Project>
<PropertyGroup>
<DXSharpBuildShaders Condition="'$(DXSharpBuildShaders)' == ''">true</DXSharpBuildShaders>
<DXSharpShaderDebug Condition="'$(DXSharpShaderDebug)' == '' and '$(Configuration)' == 'Debug'">true</DXSharpShaderDebug>
<DXSharpShaderDebug Condition="'$(DXSharpShaderDebug)' == ''">false</DXSharpShaderDebug>
<DXSharpShaderWarningsAsErrors Condition="'$(DXSharpShaderWarningsAsErrors)' == ''">false</DXSharpShaderWarningsAsErrors>
<DXSharpDxcVersion Condition="'$(DXSharpDxcVersion)' == ''">1.9.2609.5</DXSharpDxcVersion>
<DXSharpDxcToolPath Condition="'$(DXSharpDxcToolPath)' == ''">$(NuGetPackageRoot)/microsoft.direct3d.dxc/$(DXSharpDxcVersion)/build/native/bin/x64/dxc.exe</DXSharpDxcToolPath>
<DXSharpShaderTaskAssembly Condition="'$(DXSharpShaderTaskAssembly)' == ''">$(MSBuildThisFileDirectory)../tasks/netstandard2.0/DXSharp.Tools.Builds.dll</DXSharpShaderTaskAssembly>
</PropertyGroup>
<UsingTask TaskName="DXSharp.Tools.Builds.Shaders.DxcTool" AssemblyFile="$(DXSharpShaderTaskAssembly)" />
<Target Name="CompileDXSharpShaders" BeforeTargets="AssignTargetPaths" DependsOnTargets="ResolveProjectReferences"
Condition="'@(DXSharpShader)' != '' and '$(DesignTimeBuild)' != 'true' and '$(DXSharpBuildShaders)' == 'true'">
<ItemGroup>
<_DXSharpShader Include="@(DXSharpShader)">
<OutputFile Condition="'%(DXSharpShader.OutputFile)' == ''">$(IntermediateOutputPath)shaders/%(DXSharpShader.Filename).%(DXSharpShader.EntryPoint).%(DXSharpShader.Profile).dxil</OutputFile>
<LogicalName Condition="'%(DXSharpShader.LogicalName)' == ''">Shaders.%(DXSharpShader.Filename).%(DXSharpShader.EntryPoint).dxil</LogicalName>
<TargetPath Condition="'%(DXSharpShader.TargetPath)' == ''">Shaders/%(DXSharpShader.Filename).%(DXSharpShader.EntryPoint).dxil</TargetPath>
</_DXSharpShader>
</ItemGroup>
<DxcTool ShaderFiles="@(_DXSharpShader)" CompilerPath="$(DXSharpDxcToolPath)" ProjectDirectory="$(MSBuildProjectDirectory)"
DebugShaders="$(DXSharpShaderDebug)" WarningsAsErrors="$(DXSharpShaderWarningsAsErrors)">
<Output TaskParameter="Outputs" ItemName="_DXSharpShaderOutputs" />
</DxcTool>
<ItemGroup>
<EmbeddedResource Include="@(_DXSharpShaderOutputs)" Condition="'$(DXSharpEmbedShaders)' != 'false'" />
<Content Include="@(_DXSharpShaderOutputs)" Condition="'$(DXSharpEmbedShaders)' == 'false'" CopyToOutputDirectory="PreserveNewest" CopyToPublishDirectory="PreserveNewest" />
<FileWrites Include="@(_DXSharpShaderOutputs);@(_DXSharpShaderOutputs->'%(Identity).state');@(_DXSharpShaderOutputs->'%(Identity).xml');@(_DXSharpShaderOutputs->'%(Identity).pdb')" />
</ItemGroup>
</Target>
</Project>
2 changes: 1 addition & 1 deletion build/msbuild/NativeDependencies.targets
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
Condition="'$(Configuration)' == 'Debug'"
Link="D3D12/%(Filename)%(Extension)" Pack="false" ExcludeFromSingleFile="true" CopyToOutputDirectory="PreserveNewest" CopyToPublishDirectory="Never" />
</ItemGroup>
<ItemGroup Condition="'$(PkgMicrosoft_Direct3D_DXC)' != ''">
<ItemGroup Condition="'$(PkgMicrosoft_Direct3D_DXC)' != '' and '$(DXSharpCopyDxcRuntime)' != 'false'">
<None Include="$(PkgMicrosoft_Direct3D_DXC)/build/native/bin/$(DXSharpNativeArchitecture)/dxcompiler.dll;$(PkgMicrosoft_Direct3D_DXC)/build/native/bin/$(DXSharpNativeArchitecture)/dxil.dll"
Link="%(Filename)%(Extension)" Pack="false" ExcludeFromSingleFile="true" CopyToOutputDirectory="PreserveNewest" CopyToPublishDirectory="PreserveNewest" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion build/release_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import xml.etree.ElementTree as ET
from zipfile import ZipFile

PACKAGE_IDS = ("DXSharp.Native", "DXSharp.Assets", "DXSharp.Core", "DXSharp.DirectML", "DXSharp.Framework.Desktop", "DXSharp.Framework")
PACKAGE_IDS = ("DXSharp.Native", "DXSharp.Assets", "DXSharp.Core", "DXSharp.DirectML", "DXSharp.Framework.Desktop", "DXSharp.Framework", "DXSharp.Tools.Builds")
PREVIEW = re.compile(r"(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)-(?:net10-)?preview\.[1-9][0-9]*")


Expand Down
12 changes: 11 additions & 1 deletion build/verify_sample_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,17 @@ def qualify(configuration, runtime_major):
fleet = consumer / "samples/FleetBattler/bin" / configuration / framework / "FleetBattler.dll"
run([str(fleet), "--warp", "--mute", "--frames=14", "--view-test"], consumer, evidence / "fleet-runtime.log")
character = consumer / "samples/CharacterLab/bin" / configuration / framework / "CharacterLab.dll"
run([str(character), "--warp", "--frames=9"], consumer, evidence / "character-runtime.log")
run([str(character), "--warp", "--frames=9", "--close-test"], consumer, evidence / "character-runtime.log")
native = consumer / "samples/CharacterLab.Native/bin" / configuration / framework / "CharacterLab.Native.dll"
runtime = json.loads(native.with_suffix('.runtimeconfig.json').read_text())['runtimeOptions']
runtime_frameworks = runtime.get('frameworks', [runtime.get('framework', {})])
if any(x.get('name', '').startswith('Microsoft.WindowsDesktop') for x in runtime_frameworks):
raise RuntimeError('Native sample requires the Windows Desktop runtime')
for name in ('dxcompiler.dll', 'dxil.dll'):
path = native.parent / name
if path.exists():
raise RuntimeError(f'Native precompiled consumer deployed {name}')
run([str(native), "--warp", "--frames=9", "--resize-test"], consumer, evidence / "character-native-runtime.log")
(evidence / "samples.json").write_text(json.dumps(manifest, indent=2) + "\n", encoding="utf-8")
print(f"PASS: all {len(manifest)} runnable samples consume packaged SDK {version} outside the checkout.")

Expand Down
101 changes: 101 additions & 0 deletions build/verify_shader_build.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
"""Qualify real DXC compilation, incremental state, includes, diagnostics and isolated build-tool packaging."""
import argparse
import json
import os
from pathlib import Path
import shutil
import subprocess
import tempfile
import xml.etree.ElementTree as ET


def main():
parser = argparse.ArgumentParser()
parser.add_argument('--configuration', default='Release')
parser.add_argument('--runtime-major', default='10')
parser.add_argument('--compiler')
parser.add_argument('--source-task', action='store_true')
args = parser.parse_args()
root = Path(__file__).resolve().parent.parent
version = subprocess.check_output(['dotnet', 'msbuild', str(root/'src/DXSharp.Core/DXSharp.Core.csproj'), '-getProperty:PackageVersion', '-nologo'], text=True).strip()
with tempfile.TemporaryDirectory(prefix='dxsharp shader build ') as temporary:
consumer = Path(temporary)
shutil.copyfile(root/'global.json', consumer/'global.json')
project = ET.Element('Project', Sdk='Microsoft.NET.Sdk')
properties = ET.SubElement(project, 'PropertyGroup')
for key, value in {'TargetFramework': f'net{args.runtime_major}.0', 'DXSharpEmbedShaders': 'false',
'DXSharpShaderDebug': 'false', 'NuGetAudit': 'false'}.items():
ET.SubElement(properties, key).text = value
if args.compiler:
ET.SubElement(properties, 'DXSharpDxcToolPath').text = args.compiler
if args.source_task:
ET.SubElement(properties, 'DXSharpShaderTaskAssembly').text = str(root/f'artifacts/bin/DXSharp.Tools.Builds/{args.configuration}/netstandard2.0/DXSharp.Tools.Builds.dll')
ET.SubElement(project, 'Import', Project=str(root/'build/msbuild/DXSharp.Shaders.targets'))
else:
group = ET.SubElement(project, 'ItemGroup')
ET.SubElement(group, 'PackageReference', Include='DXSharp.Tools.Builds', Version=f'[{version}]', PrivateAssets='all')
group = ET.SubElement(project, 'ItemGroup')
for entry, profile in [('VS', 'vs_6_0'), ('PS', 'ps_6_0')]:
ET.SubElement(group, 'DXSharpShader', Include='source with spaces/main.hlsl', EntryPoint=entry, Profile=profile,
Defines='FACTOR=$(Factor)', IncludeDirectories='source with spaces')
ET.SubElement(properties, 'Factor').text = '1'
ET.ElementTree(project).write(consumer/'Test.csproj', encoding='utf-8')
config = ET.Element('configuration'); sources = ET.SubElement(config, 'packageSources'); ET.SubElement(sources, 'clear')
ET.SubElement(sources, 'add', key='local', value=str(root/f'artifacts/packages/{args.configuration}'))
if not args.source_task:
ET.SubElement(sources, 'add', key='nuget.org', value='https://api.nuget.org/v3/index.json')
mapping = ET.SubElement(config, 'packageSourceMapping')
for key, pattern in [('local', 'DXSharp.*'), ('nuget.org', '*')]:
ET.SubElement(ET.SubElement(mapping, 'packageSource', key=key), 'package', pattern=pattern)
ET.ElementTree(config).write(consumer/'NuGet.Config', encoding='utf-8')
folder = consumer/'source with spaces'; (folder/'nested').mkdir(parents=True)
(folder/'main.hlsl').write_text('#include "nested/outer.hlsli"\nfloat4 VS(uint id:SV_VertexID):SV_Position{return float4(id,0,0,1);}\nfloat4 PS():SV_Target{return Shade()*FACTOR;}\n')
(folder/'nested/outer.hlsli').write_text('#include "../color.hlsli"\nfloat4 Shade(){return COLOR;}\n')
include = folder/'color.hlsli'; valid = '#define COLOR float4(1,0,0,1)\n'; include.write_text(valid)
logs = []
def run(*arguments, success=True):
result = subprocess.run(['dotnet', *arguments], cwd=consumer, text=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
logs.append(result.stdout)
if (result.returncode == 0) != success:
raise RuntimeError(result.stdout)
return result.stdout
run('restore', 'Test.csproj', '--packages', str(consumer/'packages'))
compiler_path = Path(run('msbuild', 'Test.csproj', '-getProperty:DXSharpDxcToolPath', '-nologo').strip())
if not compiler_path.is_file():
raise RuntimeError(f'Resolved compiler does not exist: {compiler_path}')
def build(*extra, success=True):
return run('build', 'Test.csproj', '--no-restore', '-c', args.configuration, '-p:UseSharedCompilation=false', '-nodeReuse:false', *extra, success=success)
first = build(); containers = sorted((consumer/'obj').rglob('*.dxil'))
if len(containers) != 2 or any(p.read_bytes()[:4] != b'DXBC' for p in containers):
raise RuntimeError('Expected two real shader containers')
first_times = [p.stat().st_mtime_ns for p in containers]
second = build()
if second.count('DXC up-to-date:') != 2 or first_times != [p.stat().st_mtime_ns for p in containers]:
raise RuntimeError('Unchanged shaders were recompiled')
include.write_text('#define COLOR float4(0,1,0,1)\n')
if build().count('DXC compiled:') != 2:
raise RuntimeError('Nested include modification did not invalidate both compilation units')
if build('-p:Factor=2').count('DXC compiled:') != 2:
raise RuntimeError('Define change did not invalidate compilation')
include.write_text('#error intentional shader failure\n')
failure = build(success=False)
if 'intentional shader failure' not in failure or 'DXSHADER' not in failure:
raise RuntimeError('Shader failure lost diagnostic information')
include.unlink(); build(success=False)
include.write_text(valid); build('-p:DXSharpShaderDebug=true')
if len(list((consumer/'obj').rglob('*.dxil.pdb'))) != 2:
raise RuntimeError('Missing debug PDBs')
manifest = ET.parse(containers[0].with_name(containers[0].name+'.xml'))
if not any(x.attrib['Path'].endswith('color.hlsli') for x in manifest.findall('Dependency')):
raise RuntimeError('Transitive include missing from shader manifest')
run('clean', 'Test.csproj', '-c', args.configuration)
if any(p.exists() for p in containers):
raise RuntimeError('Clean left shader intermediates behind')
evidence = root/f'artifacts/shader-build/{args.configuration}/net{args.runtime_major}'
evidence.mkdir(parents=True, exist_ok=True)
(evidence/'qualification.log').write_text('\n'.join(logs))
print('PASS: shader package; two entry points; paths with spaces; unchanged/define/transitive-include rebuilds; errors; deleted includes; PDBs; manifests; clean.')


if __name__ == '__main__':
main()
5 changes: 4 additions & 1 deletion doc/API-Coverage.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# DirectX API coverage

The preview 3 candidate exposes public native bindings through DXSharp.Native. Core builds its owned graphics API on the same declarations. Consumers can use the generated interfaces and NativeInterface<T> without generating another set of DirectX types.
The modern SDK exposes public native bindings through DXSharp.Native. Core builds its owned graphics API on the same declarations. Consumers can use the generated interfaces and NativeInterface<T> without generating another set of DirectX types.

The baseline is Microsoft.Windows.SDK.Win32Metadata 71.0.45-preview, CsWin32 0.3.371, Agility 1.620.2 D3D12 metadata, .NET 10/11, and Windows x64. The Windows metadata package supplies the non-D3D12 families; its modular D3D12 provider selects the pinned Agility WinMD. Exactly one D3D12 provider is selected. Native API names live under Windows.Win32. Entry points and constants use Windows.Win32.PInvoke. NativeInterface<T> ownership helpers live under DXSharp.Interop.

Expand Down Expand Up @@ -31,6 +31,9 @@ ApiCoverage reads the pinned WinMD and built assembly with System.Reflection.Met
| DirectComposition | 62 / 62 | 294 / 294 |
| XInput | 16 / 16 | 117 / 117 |
| GameInput | 80 / 80 | 802 / 802 |
| Window messages and HWND APIs | 198 / 198 | 3314 / 3314 |
| High DPI | 7 / 7 | 56 / 56 |
| Keyboard and mouse | 46 / 46 | 605 / 605 |

These counts measure the pinned metadata surface. They do not verify every overload, ABI layout, callback, native version, feature tier, or driver. In particular, interface generation through ID3D12Device16 does not imply that the selected runtime or adapter implements every interface. Query the required interface and check feature support before use.

Expand Down
Loading
Loading