Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:common:applications:vulkan

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
products:sbc:common:applications:vulkan [2023/10/20 23:50]
nick
products:sbc:common:applications:vulkan [2025/07/15 09:32] (current)
nick
Line 1: Line 1:
 ====== Vulkan on Wayland ====== ====== Vulkan on Wayland ======
  
-''VIM3/3L/4/1S'' on ''Ubuntu 22.04 Gnome Desktop Wayland'' with ''5.15'' kernel supports ''Vulkan'', you can follow the steps below to test ''Vulkan''.+ 
 + 
 +[[:VIM3]] [[:VIM3L]] [[:VIM4]] [[:VIM1S]] with Ubuntu 22.04/24.04 Gnome Desktop and Wayland with **5.15** kernel supports Vulkan, you can follow this documentation to test Vulkan. 
 + 
 +<WRAP important > 
 +Only for VIM3/3L/4/1S with 5.15 kernel with Ubuntu 22.04/24.04 Gnome Desktop and Wayland. 
 +</WRAP> 
  
  
 ===== Install Vulkan tools ===== ===== Install Vulkan tools =====
 +
 +<tabbox Ubuntu 22.04>
  
 The default ''vulkan-tools'' doesn't support Wayland, so we rebuild it to support Wayland, you can follow the commands below to install ''vulkan-tools''. The default ''vulkan-tools'' doesn't support Wayland, so we rebuild it to support Wayland, you can follow the commands below to install ''vulkan-tools''.
  
 ```shell ```shell
 +sudo apt update
 sudo apt install vulkan-tools sudo apt install vulkan-tools
-wget https://dl.khadas.com/development/vulkan-tools_1.3.204.0%2Bdfsg1-1_arm64.deb+wget https://dl.khadas.com/resources/development/vulkan-tools_1.3.204.0%2Bdfsg1-1_arm64.deb
 sudo dpkg -i vulkan-tools_1.3.204.0+dfsg1-1_arm64.deb  sudo dpkg -i vulkan-tools_1.3.204.0+dfsg1-1_arm64.deb 
-vkcube-wayland 
 ``` ```
 +
 +<tabbox Ubuntu 24.04>
 +
 +```shell
 +sudo apt update
 +sudo apt install vulkan-tools
 +```
 +
 +</tabbox>
 +
  
 ===== Check Vulkan informations ===== ===== Check Vulkan informations =====
Line 93: Line 112:
  
  
 +===== Run Vulkan examples =====
 +
 +Run Vulkan examples from [[gh>SaschaWillems/Vulkan|]].
 +
 +Build the examples:
 +
 +```shell
 +$ sudo apt update
 +$ sudo apt install -y cmake g++ libvulkan-dev pkg-config libwayland-dev xorg-dev glslang-tools wayland-protocols
 +$ git clone https://github.com/SaschaWillems/Vulkan --depth=1
 +$ cd Vulkan
 +$ git submodule init
 +$ git submodule update
 +$ mkdir build && cd build
 +$ cmake -S .. -DGLSLANG_INSTALL_DIR=/usr -DUSE_WAYLAND_WSI=ON
 +$ make -j4
 +```
 +
 +Run Vulkan examples:
 +
 +```shell
 +$ cd bin/
 +$ ls
 +bloom                debugprintf            dynamicrenderingmultisampling  imgui                   offscreen           radialblur               renderheadless           terraintessellation     triangle
 +bufferdeviceaddress  debugutils             dynamicstate                   indirectdraw            oit                 rayquery                 screenshot               tessellation            trianglevulkan13
 +computecloth         deferred               dynamicuniformbuffer           inlineuniformblocks     parallaxmapping     raytracingbasic          shaderobjects            textoverlay             variablerateshading
 +computecullandlod    deferredmultisampling  gears                          inputattachments        particlesystem      raytracingcallable       shadowmapping            texture                 vertexattributes
 +computeheadless      deferredshadows        geometryshader                 instancing              pbrbasic            raytracinggltf           shadowmappingcascade     texture3d               viewportarray
 +computenbody         descriptorbuffer       gltfloading                    meshshader              pbribl              raytracingintersection   shadowmappingomni        texturearray            vulkanscene
 +computeparticles     descriptorindexing     gltfscenerendering             multisampling           pbrtexture          raytracingpositionfetch  specializationconstants  texturecubemap
 +computeraytracing    descriptorsets         gltfskinning                   multithreading          pipelines           raytracingreflections    sphericalenvmapping      texturecubemaparray
 +computeshader        displacement           graphicspipelinelibrary        multiview               pipelinestatistics  raytracingsbtdata        ssao                     texturemipmapgen
 +conditionalrender    distancefieldfonts     hdr                            negativeviewportheight  pushconstants       raytracingshadows        stencilbuffer            texturesparseresidency
 +conservativeraster   dynamicrendering       hostimagecopy                  occlusionquery          pushdescriptors     raytracingtextures       subpasses                timelinesemaphore
 +$ ./radialblur
 +
 +```
 +
 +{{:products:sbc:common:applications:vulkan-radialblur.webp?800}}
  
  
  
Last modified: 2023/10/20 23:50 by nick