Ranvier.Wgpu 0.1.0

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
                    
NuGet\Install-Package Ranvier.Wgpu -Version 0.1.0
                    
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" />
                    
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" />
                    
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
                    
#r "nuget: Ranvier.Wgpu, 0.1.0"
                    
#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
                    
#: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
                    
Install as a Cake Addin
#tool nuget:?package=Ranvier.Wgpu&version=0.1.0
                    
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

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 (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.