Skip to content

SharpAstro/SdlVulkan.Renderer

Repository files navigation

SdlVulkan.Renderer

SDL3 + Vortice.Vulkan rendering library built on DIR.Lib primitives.

Types

  • SdlVulkanWindow — SDL3 window with Vulkan instance and surface lifecycle
  • VulkanContext — Vulkan device, swapchain, command buffers, and sync management
  • VkRendererRenderer<VulkanContext> implementation with FillRectangle, DrawRectangle, FillEllipse, DrawText
  • VkPipelineSet — GLSL 450 shader compilation and Vulkan pipeline creation (flat, textured, ellipse)
  • VkFontAtlas — Dynamic glyph atlas with FreeType2 rasterization and Vulkan texture upload

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);

// Use renderer.FillRectangle, DrawText, etc.

Dependencies

License

MIT

About

SDL3 + Vulkan enabled rendering surface that is AOT compatible.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages