Ranvier.Wgpu.Sdl.Traced
0.2.1
dotnet add package Ranvier.Wgpu.Sdl.Traced --version 0.2.1
NuGet\Install-Package Ranvier.Wgpu.Sdl.Traced -Version 0.2.1
<PackageReference Include="Ranvier.Wgpu.Sdl.Traced" Version="0.2.1" />
<PackageVersion Include="Ranvier.Wgpu.Sdl.Traced" Version="0.2.1" />
<PackageReference Include="Ranvier.Wgpu.Sdl.Traced" />
paket add Ranvier.Wgpu.Sdl.Traced --version 0.2.1
#r "nuget: Ranvier.Wgpu.Sdl.Traced, 0.2.1"
#:package Ranvier.Wgpu.Sdl.Traced@0.2.1
#addin nuget:?package=Ranvier.Wgpu.Sdl.Traced&version=0.2.1
#tool nuget:?package=Ranvier.Wgpu.Sdl.Traced&version=0.2.1
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, and SVG overlay compositing.
Install
dotnet add package Ranvier.Wgpu.Sdl --version 0.2.1
Use Ranvier.Wgpu.Sdl.Traced when building against Ranvier.View.WebCore.Sdl.Traced.
Quick Start
open System
open Ranvier.View.WebCore.Sdl
open Ranvier.Wgpu
open Ranvier.Wgpu.Sdl
use window = Window.Create("Ranvier + Wgpu", 1280, 800)
let viewport = window.Host.Document.getElementById "viewport"
use wgpu = window |> WgpuSdlSurface.createContext
use subscription =
viewport
|> WgpuSdlSurface.lend window wgpu (fun surface ->
let pass = ScenePass.create camera |> ScenePass.withBatches [| batch |]
pass |> WgpuSdlSurface.render surface |> ignore
{ new IDisposable with member _.Dispose() = () })
Requirements
FSharp.Core10.0.100 or later, which ships with the first .NET 10 SDK, so any .NET 10 SDK builds against this package. Versions up to 0.2.0 requiredFSharp.Core10.1.401 (.NET SDK 10.0.401).Ranvier.View.WebCore.Sdl0.2.0 or later. An app that also referencesRanvier.View.WebCore.Hmrneeds 0.1.2 or later of it, which is built against that version.
Custom shaders
WgpuSdlSurface.CreateContext(window, customWgsl = wgsl) passes custom WGSL to the context. Build it with
Shaders.composeScene, feed it application data with context.SetUserUniforms, and check it in a test with
WgpuContext.ValidateWgsl, which opens no window. The limits of the engine (no textures, line-list lines, discs
not depth-sorted) are listed in the Ranvier.Wgpu README.
| 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.0.100)
- Ranvier.View.WebCore.Sdl.Traced (>= 0.2.0)
- Ranvier.Wgpu (>= 0.2.1)
NuGet packages
This package is not used by any NuGet packages.
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 | 51 | 11/14/2026 |
| 0.1.0-alpha.2 | 51 | 11/13/2026 |
Pre-1.0 release. The API may change before 1.0.