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
                    
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.Sdl.Traced" Version="0.2.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Ranvier.Wgpu.Sdl.Traced" Version="0.2.1" />
                    
Directory.Packages.props
<PackageReference Include="Ranvier.Wgpu.Sdl.Traced" />
                    
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.Sdl.Traced --version 0.2.1
                    
#r "nuget: Ranvier.Wgpu.Sdl.Traced, 0.2.1"
                    
#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.Sdl.Traced@0.2.1
                    
#: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.Sdl.Traced&version=0.2.1
                    
Install as a Cake Addin
#tool nuget:?package=Ranvier.Wgpu.Sdl.Traced&version=0.2.1
                    
Install as a Cake Tool

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.Core 10.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 required FSharp.Core 10.1.401 (.NET SDK 10.0.401).
  • Ranvier.View.WebCore.Sdl 0.2.0 or later. An app that also references Ranvier.View.WebCore.Hmr needs 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 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

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.