xtuzy / Veldrid.Maui.Controls

use Gpu by Veldrid in MAUI
MIT License
5 stars 1 forks source link
3d csharp gpu maui

Veldrid.Maui.Controls

NuGet version(Yang.MAUICollectionView)

It is extracted from Veldrid.Samples,this project focuses on optimizing controls

How to use

Install Veldrid.Maui.Controls

Install Veldrid Packages

current official veldrid packages have some bugs on maui, for temparery fix they, i push some packages to nuget.org, you can install they to your app project to override offical dll.

In order to replace official veldrid, you need to add these to .csproj (ExcludeAssets will delete officail dll):

<ItemGroup>
    <PackageReference Include="Veldrid.SPIRV" Version="1.0.15" ExcludeAssets="All"/>
    <PackageReference Include="Veldrid.Maui.SPIRV" Version="1.0.16.1" />

    <PackageReference Include="Veldrid" Version="4.9.0" ExcludeAssets="All"/>
    <PackageReference Include="Yang.Veldrid.Maui.iOS" Version="4.9.10-ga1b22d70a3" />
</ItemGroup>

Create view

Advice GraphicsBackend

** Current veldrid don't have a nice memory manager for Vulkan backend, will waste many memeory, i don't advice you try it.