Crafter.Graphics/examples/VulkanWindow/README.md

31 lines
764 B
Markdown
Raw Normal View History

2025-06-13 23:59:36 +02: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
```cpp
VulkanDevice::CreateDevice();
WindowWaylandVulkan window("HelloWindow", 1280, 720);
VkCommandBuffer cmd = window.StartInit();
window.FinishInit();
window.StartSync();
```
## How to Run
```bash
crafter-build -c example -r
```
## Relevant documentation
2025-11-16 15:32:03 +01:00
[VulkanDevice](https://crafter-graphics.docs.catcrafts.net/classCrafter_1_1VulkanDevice.html)
[WindowWaylandVulkan](https://crafter-graphics.docs.catcrafts.net/classCrafter_1_1WindowWaylandVulkan.html)
2025-06-13 23:59:36 +02:00