Ranvier.Wgpu 0.1.0-alpha.2

This is a prerelease version of Ranvier.Wgpu.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Ranvier.Wgpu --version 0.1.0-alpha.2
                    
NuGet\Install-Package Ranvier.Wgpu -Version 0.1.0-alpha.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Ranvier.Wgpu" Version="0.1.0-alpha.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Ranvier.Wgpu" Version="0.1.0-alpha.2" />
                    
Directory.Packages.props
<PackageReference Include="Ranvier.Wgpu" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Ranvier.Wgpu --version 0.1.0-alpha.2
                    
#r "nuget: Ranvier.Wgpu, 0.1.0-alpha.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Ranvier.Wgpu@0.1.0-alpha.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Ranvier.Wgpu&version=0.1.0-alpha.2&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Ranvier.Wgpu&version=0.1.0-alpha.2&prerelease
                    
Install as a Cake Tool

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-alpha.2

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (6)

Showing the top 5 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.

Ranvier.D5.Wgpu

3D and multi-dimensional visualization scales, axes, encodings, surfaces, volumes and Ranvier reactive GPU sinks over Ranvier.Wgpu.

Ranvier.D5.Wgpu.Traced

3D and multi-dimensional visualization scales, axes, encodings, surfaces, volumes and Ranvier reactive GPU sinks over Ranvier.Wgpu.

Ranvier.D5.Graph3D.Wgpu

Adapters and reactive GPU sinks bridging Ranvier.D5.Graph3D layouts directly to Ranvier.D5.Wgpu.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.4.0 137 11/19/2026
0.3.1 272 11/19/2026
0.3.0 141 11/18/2026
0.2.1 117 11/16/2026
0.2.0 116 11/15/2026
0.1.0 806 11/14/2026
0.1.0-alpha.2 273 11/13/2026

Experimental alpha release. The API may change before 1.0.