Граф коммитов

19 Коммитов

Автор SHA1 Сообщение Дата
Matt Heimlich 9cecb90ba1
Fix adapter selection in Vulkan demo (#17442)
Changed the adapter index in the for loop to correctly iterate through available adapters. This ensures that the correct adapter is selected based on its Luid.
2024-11-06 17:18:44 +00:00
Julien Lebosquain b30894cb5c
Warning fixes: spring wave (#15747)
* Fix duplicated trimming attributes warning in Markup.Xaml.Loader

* Fix nullability warnings

* Update ImageSharp to 2.1.8

* Removed obsolete attributes on ValueStore

* Ignore CA1815 on private API RenderTargetProperties

* Fix switch expression warnings

* Fix warnings in Vulkan project

* Only include PThread for WasmEnableThreads

* Rename pollfd to PollFd to fix CS8981

* Fix incompatible packages being used in ControlCatalog.Desktop

---------

Co-authored-by: Max Katz <maxkatz6@outlook.com>
2024-05-21 03:57:47 +00:00
Nikita Tsukanov 3a1a69b145
Vulkan backend (#12737)
* Ported the old Vulkan PR

* chop-chop

* Support for external objects in vulkan backend

* Fixed structure type

* Removed debug code

* sln fix

* Don't force vulkan on windows
2024-04-29 09:47:49 +00:00
Max Katz 326ef7c9fd
Add .NET 8 target (Avalonia 11.1) (#14535)
* Add .NET 8 target to packable projects

* Update test projects

* Update sample projects to target .NET 8

* Update main Avalonia package to target .NET 8 as well

* Remove MSBuildEnableWorkloadResolver hack and some minor change

* Use net8.0 in nuke build as well

* Pin 8.0.0 SDK

* Adjust API validation

* Pin a valid version

* Remove net461 target from Avalonia package

* Remove unused net6.0 target from Avalonia.Designer.HostApp

* Adjust API diff

* Update ControlCatalog.Android.csproj

* Remove MSBuildEnableWorkloadResolver

* Fix Browser issues on .NET 8

* Fix .NET 8 error

* Fix merge conflicts

* Replace explicit TFMs in .csproj files with a centralized registry

* Fix merge conflict

* Fix AvsLegacyWindowsTargetFrameworks and add hacks for the tests

* Update XCode project CommandLineArgument

---------

Co-authored-by: Nikita Tsukanov <keks9n@gmail.com>
2024-03-05 13:37:26 -08:00
Vladimir Drobyshev d44bd39f07
Fix colorAttachment cleaning in the GpuInterop Vulkan demo (#13923) 2023-12-12 23:18:40 +00:00
Julien Lebosquain 3fa13d3b64
Warning cleanup 2 (#13696) 2023-11-23 10:42:27 +00:00
Nikita Tsukanov 700b199602 Use double for compositor types 2023-06-13 19:52:13 +06:00
Nikita Tsukanov f300a24402 Media system refactoring
- animation/layout/render cycle is now managed from a central location
- animations are now throttled if animation/layout/render pass takes longer than a frame which previously caused a soft-freeze with input not being processed
- the public API is trimmed to make sure that we can make other planned changes during the 11.x support cycle

"Changelog":
- IClock is hidden and is planned to be replaced later
- Animator classes are hidden and are planned to be refactored later
- IAnimation members are hidden, it's supposed to be a marker interface for Style.Animations collection now, to start animations manually use Animation.RunAsync
- Sealed several classes in Avalonia.Animation namespace
- Spring class is removed from the public API (it wasn't possible to use it directly in a meaningful way anyway)
- Sealed brushes, transforms, effects and drawings
- Removed separate dispatcher priorities for Layout and Composition, everything now happens from a central place with Render priority (same as WPF)
- - some private "hook" priorities are added for now, those will be removed later
- IRenderLoop is hidden and removed from locator
- IRenderer is hidden (the plan is to remove that concept later)
- - Renderer.Start/Stop exposed as StartRendering/StopRendering on the toplevel (will be on a CompositionTarget/PresentationSource-like type later)
- - Renderer.Diagnistics exposed as RendererDiagnostics (same)
- - Renderer is no longer created by the platform code and is created by TopLevel itself
- - From the user-code hit-testing should be done by VisualExtensions.GetVisual(s)At, which has the same features
- - For unit tests a separate IHitTester interface is added which can be changed for a particular toplevel
- ILayoutManager is hidden
- - LayoutManager.ExecuteLayoutPass() exposed as TopLevel.UpdateLayout()
- Custom animators now have a separate base class that only deals with interpolation

Minor improvements:
- Compositor has a mode that doesn't use DispatcherTimers, useful for unit tests
- Introduced ScopedTestBase that auto-resets the locator when test is finished
2023-05-29 13:48:59 +06:00
Steven Kirk 0b1b3476fb Make EnumExtensions internal. 2023-05-18 15:39:18 +02:00
Benedikt Stebner 7786a00623 Add Inter font reference to all samples 2023-02-28 18:36:22 +01:00
Nikita Tsukanov 9c33ee08dd
Use same flags in ExternalMemoryImageCreateInfo 2023-02-13 20:31:51 +03:00
kekekeks fc0ddcb320 Use NT shared handles for Vulkan interop on Windows 2023-02-13 16:19:19 +03:00
Max Katz 5b5930b9ca
Merge branch 'master' into fixes/Warnings/CS0618/GpuInterop 2023-02-01 13:08:11 -05:00
Giuseppe Lippolis 86dc4042ab fix: misc warning
- Warning CA1815 PlatformGraphicsExternalImageProperties should override Equals Avalonia.Base (net6.0) \src\Avalonia.Base\Platform\PlatformGraphicsExternalMemory.cs 7 N/A
- Warning CA1823 Unused field 'ProximityPoints' Avalonia.Controls (net6.0) src\Avalonia.Controls\Presenters\ScrollContentPresenter.cs 18 N/A
- Warning CS0169 The field 'VulkanDemoControl._vkInstance' is never used GpuInterop samples\GpuInterop\VulkanDemo\VulkanDemoControl.cs 19 N/A
- Warning CS0169 The field 'VulkanDemoControl._api' is never used GpuInterop samples\GpuInterop\VulkanDemo\VulkanDemoControl.cs 20 N/A
- Warning CS0219 The variable 'isZooming' is assigned but its value is never used ControlCatalog (netstandard2.0) samples\ControlCatalog\Pages\GesturePage.cs 73 N/A
- Warning xUnit2004 Do not use Assert.Equal() to check for boolean conditions. Avalonia.IntegrationTests.Appium tests\Avalonia.IntegrationTests.Appium\WindowTests_MacOS.cs 267 N/A
2023-02-01 16:54:00 +01:00
Giuseppe Lippolis ffcec80f80 fix(GpuInterop): CS0618 member is obsolete, due to the renaming of some members of the Silk.NET.Vulkan enums 2023-02-01 16:31:26 +01:00
Julien Lebosquain 5e13c5b59a Implemented layout and render time graph overlays 2023-01-31 15:40:17 +01:00
Giuseppe Lippolis 6189f52c1f fix: GpuInterop Build 2023-01-25 18:20:55 +01:00
Nikita Tsukanov 7a2ca3e999 Build 2023-01-20 04:06:14 +06:00
Nikita Tsukanov d714f37fce Implemented interop with externally managed GPU memory 2023-01-19 11:29:46 +06:00