Ranvier.Wgpu
0.1.0
See the version list below for details.
dotnet add package Ranvier.Wgpu --version 0.1.0
NuGet\Install-Package Ranvier.Wgpu -Version 0.1.0
<PackageReference Include="Ranvier.Wgpu" Version="0.1.0" />
<PackageVersion Include="Ranvier.Wgpu" Version="0.1.0" />
<PackageReference Include="Ranvier.Wgpu" />
paket add Ranvier.Wgpu --version 0.1.0
#r "nuget: Ranvier.Wgpu, 0.1.0"
#:package Ranvier.Wgpu@0.1.0
#addin nuget:?package=Ranvier.Wgpu&version=0.1.0
#tool nuget:?package=Ranvier.Wgpu&version=0.1.0
Ranvier.Wgpu
NativeAOT-compatible F# 3D and WebGPU (webgpu.h / wgpu-native) engine with runtime WGSL shaders, 4× MSAA, hardware instancing (MeshBatch, LineBatch, DiscBatch), live BIM section clipping, premultiplied sRGB blending, and 1×1 RGBA32Uint GPU pixel picking.
Install
dotnet add package Ranvier.Wgpu --version 0.1.0
Pair with Ranvier.Wgpu.Sdl to bind WgpuContext scenes directly onto Ranvier.View.WebCore.Sdl DOM elements with zero-copy VRAM texture compositing.
Quick Start
open System.Numerics
open Ranvier.Wgpu
use ctx = WgpuContext.create 1280 720
use mesh = Primitives.unitIcosphere 3 |> WgpuContext.uploadMesh <| ctx
use batch = ctx |> WgpuContext.createOpaqueBatch mesh
batch.SetSingle(
Instance3D.sphere Vector3.Zero 2.0f (RgbaColor.fromHex "#3b82f6") 0.28f 1u InstanceFlags.None
)
let camera = Camera3D.orbit Vector3.Zero 0.6f 0.4f 5.0f 45.0f
let pass =
ScenePass.create camera
|> ScenePass.withClear (RgbaColor.fromHex "#090d16")
|> ScenePass.withBatches [| batch |]
let metrics = pass |> WgpuContext.render ctx
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- FSharp.Core (>= 10.1.401)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Ranvier.Wgpu:
| Package | Downloads |
|---|---|
|
Ranvier.Wgpu.Sdl
Opt-in zero-copy GPU texture bridge binding Ranvier.Wgpu 3D scenes directly onto Ranvier.View.WebCore.Sdl DOM elements with natural HTML/CSS/SVG overlay compositing. |
|
|
Ranvier.Wgpu.Sdl.Traced
The traced build of Ranvier.Wgpu.Sdl, depending on Ranvier.View.WebCore.Sdl.Traced. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.2.1 | 0 | 11/16/2026 |
| 0.2.0 | 0 | 11/15/2026 |
| 0.1.0 | 142 | 11/14/2026 |
| 0.1.0-alpha.2 | 255 | 11/13/2026 |
Pre-1.0 release. The API may change before 1.0.