Crafter.Graphics/examples/VulkanWindow
2026-03-02 23:53:13 +01:00
..
main.cpp windows build fix 2026-03-02 23:53:13 +01:00
project.json vulkan window 2026-01-27 22:34:24 +01:00
README.md new structure complete 2025-11-16 18:52:52 +01:00

HelloWindow Example

Description

This example demonstrates the minimal code needed to create a vulkan window and show it on the screen.

Expected Result

A blue tinted vulkan window with the title "HelloWindow" shows onscreen, with debug info in the console.

Highlighted Code Snippet

VulkanDevice::CreateDevice();
WindowWaylandVulkan window("HelloWindow", 1280, 720);
VkCommandBuffer cmd = window.StartInit();
window.FinishInit();
window.StartSync();

How to Run

crafter-build build executable -r