Vulkan for noobs: 3D helloo world in python

Programming a new application in Vulkan may not be an easy step especially for the fact it is a 3d language made appositely to be more complex in order to optimize the resources on the gpu. To partially circumnavigate this problem and go straight to the result you can use for example a premade framework like QT or Unity. Or if you are good at programming and optimizing you can write your python app which runs on Vulkan. Take a look at this example from the official vulkan repository on github:

import ctypes
import os
import sdl2
import sdl2.ext
import time
from vulkan import *


WIDTH = 400
HEIGHT = 400


# ----------
# Init sdl2
if sdl2.SDL_Init(sdl2.SDL_INIT_VIDEO) != 0:
    raise Exception(sdl2.SDL_GetError())

window = sdl2.SDL_CreateWindow(
    'test'.encode('ascii'),
    sdl2.SDL_WINDOWPOS_UNDEFINED,
    sdl2.SDL_WINDOWPOS_UNDEFINED, WIDTH, HEIGHT, 0)

if not window:
    raise Exception(sdl2.SDL_GetError())

Well it is nothing difficult so far but while you add many many features on top you may also find the difficulty multiplying at infinite. Be warned.

Links
https://github.com/realitix/vulkan/blob/master/example/example_sdl2.py