Skip to content

Instantly share code, notes, and snippets.

@vmttmv
vmttmv / 17_swap_chain_recreation.cpp
Created April 17, 2026 18:41
vulkantutorial -> dynamic rendering
#define GLFW_INCLUDE_VULKAN
#include <GLFW/glfw3.h>
#include <iostream>
#include <fstream>
#include <stdexcept>
#include <algorithm>
#include <vector>
#include <cstring>
#include <cstdlib>
; A basic multiboot2 compatible longmode bootstrap that loads into a higher half kernel.
; It identity maps the lower 1GB of memory
; And then maps the lowest 1GB of memory to the last 2GB of memory. (higher-half)
; Then it jumps to entry64 if it successfuly enters long mode, entry32 if it loads successfully
; but is on a computer that does not support long mode, and error if it fails to load.
; This section of the code is for 32 bit execution
bits 32
section .text