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: 0 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ jobs:
artifacts/test-results/**
artifacts/api-coverage/**
artifacts/sample-packages/**
artifacts/shader-build/**
artifacts/packages/**
if-no-files-found: warn

Expand Down
15 changes: 0 additions & 15 deletions DXSharp.sln
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,6 @@ 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 @@ -173,29 +171,17 @@ 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 @@ -488,7 +474,6 @@ 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: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,3 @@ 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: 0 additions & 2 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ 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: 0 additions & 6 deletions build/VerifyPackages.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,6 @@ 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: 0 additions & 1 deletion build/VerifySamples.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ 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: 0 additions & 31 deletions build/msbuild/DXSharp.Shaders.targets

This file was deleted.

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)' != '' and '$(DXSharpCopyDxcRuntime)' != 'false'">
<ItemGroup Condition="'$(PkgMicrosoft_Direct3D_DXC)' != ''">
<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", "DXSharp.Tools.Builds")
PACKAGE_IDS = ("DXSharp.Native", "DXSharp.Assets", "DXSharp.Core", "DXSharp.DirectML", "DXSharp.Framework.Desktop", "DXSharp.Framework")
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: 1 addition & 11 deletions build/verify_sample_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,17 +106,7 @@ 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", "--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")
run([str(character), "--warp", "--frames=9"], consumer, evidence / "character-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: 0 additions & 101 deletions build/verify_shader_build.py

This file was deleted.

5 changes: 1 addition & 4 deletions doc/API-Coverage.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# DirectX API coverage

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 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 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,9 +31,6 @@ 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