SdlVulkan.Renderer
1.7.281
This package has a SemVer 2.0.0 package version: 1.7.281+232d1bc9a932b69559899b5b7b73855af83c4726.
dotnet add package SdlVulkan.Renderer --version 1.7.281
NuGet\Install-Package SdlVulkan.Renderer -Version 1.7.281
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="SdlVulkan.Renderer" Version="1.7.281" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SdlVulkan.Renderer" Version="1.7.281" />
<PackageReference Include="SdlVulkan.Renderer" />
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 SdlVulkan.Renderer --version 1.7.281
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SdlVulkan.Renderer, 1.7.281"
#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 SdlVulkan.Renderer@1.7.281
#: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=SdlVulkan.Renderer&version=1.7.281
#tool nuget:?package=SdlVulkan.Renderer&version=1.7.281
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
SdlVulkan.Renderer
SDL3 + Vortice.Vulkan rendering library built on DIR.Lib primitives.
Types
SdlVulkanWindow— SDL3 window with Vulkan instance and surface lifecycle. Creates maximized, resizable windows with Vulkan surface.VulkanContext— Vulkan device, swapchain, command buffers, sync management.MaxFramesInFlight = 2with per-frame vertex buffers.VkRenderer—Renderer<VulkanContext>implementation with FillRectangle, DrawRectangle, FillEllipse, DrawText. ExposesFontAtlasDirtyfor callers to trigger redraws after glyph rasterization.VkPipelineSet— GLSL 450 shader compilation and Vulkan pipeline creation (flat, textured, ellipse)VkFontAtlas— Dynamic glyph atlas with FreeType2 rasterization and Vulkan texture upload. Supports grow (512→2048), deferred eviction, andskipUnflushedto prevent sampling stale GPU texture data.
Font Atlas Lifecycle
Per frame:
BeginFrame()— handles deferred eviction if atlas was full last frameFlush(cmd)— uploads dirty staging region to GPU viavkCmdCopyBufferToImageDrawText(...)→GetGlyph(...)— cache hit returns UV coords; miss rasterizes into stagingGetGlyph(..., skipUnflushed: true)— in draw loops, returns zero-width for glyphs not yet uploaded
Thread safety: vkDeviceWaitIdle() before reusing the shared upload buffer (prevents race with MaxFramesInFlight = 2).
Diagnostic logging (Console.Error): [FontAtlas] / [VkRenderer] prefixed lines for Flush, Grow, EvictAll, cache miss, Resize. Capture with 2>stderr.log.
Usage
using SdlVulkan.Renderer;
using var window = SdlVulkanWindow.Create("My App", 800, 600);
window.GetSizeInPixels(out var w, out var h);
var ctx = VulkanContext.Create(window.Instance, window.Surface, (uint)w, (uint)h);
var renderer = new VkRenderer(ctx, (uint)w, (uint)h);
while (running)
{
if (!renderer.BeginFrame(bgColor)) { renderer.Resize(w, h); continue; }
renderer.FillRectangle(rect, color);
renderer.DrawText("Hello", fontPath, 14f, white, layout);
renderer.EndFrame();
if (renderer.FontAtlasDirty) needsRedraw = true;
}
Dependencies
- DIR.Lib — Rendering primitives + FreeType glyph rasterization
- SDL3-CS — SDL3 bindings
- Vortice.Vulkan — Vulkan bindings
- Vortice.ShaderCompiler — GLSL to SPIR-V
License
MIT
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- DIR.Lib (>= 1.8.371)
- SDL3-CS (>= 3.5.0-preview.20260213-150035)
- Vortice.ShaderCompiler (>= 1.9.0)
- Vortice.Vulkan (>= 3.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 |
|---|---|---|
| 1.7.281 | 0 | 4/7/2026 |
| 1.6.271 | 0 | 4/7/2026 |
| 1.6.261 | 139 | 4/1/2026 |
| 1.6.251 | 29 | 4/1/2026 |
| 1.6.242 | 21 | 3/31/2026 |
| 1.6.231 | 23 | 3/31/2026 |
| 1.6.221 | 23 | 3/31/2026 |
| 1.6.211 | 23 | 3/31/2026 |
| 1.6.201 | 29 | 3/31/2026 |
| 1.6.181 | 143 | 3/29/2026 |
| 1.5.171 | 24 | 3/29/2026 |
| 1.5.161 | 29 | 3/29/2026 |
| 1.4.151 | 50 | 3/28/2026 |
| 1.3.141 | 17 | 3/26/2026 |
| 1.3.131 | 24 | 3/26/2026 |
| 1.2.121 | 27 | 3/26/2026 |
| 1.2.111 | 56 | 3/25/2026 |
| 1.2.91 | 27 | 3/25/2026 |
| 1.2.81 | 22 | 3/25/2026 |
| 1.1.52 | 46 | 3/19/2026 |
Loading failed