libretro_vulkan_sample_c

License: MIT

Information:

This sample build for libretro core vulkan triangle. The src file is from https://github.com/libretro/libretro-samples/tree/master/video/vulkan/vk_rendering

To able compile CMake build into library to run retroarch which compile into for .dll( windows ) or .so( linux ) .

This use libretro core api to access vulkan but need to config in Retroarch to enable vulkan graphics.

Reqiured:

  • cmake
  • msys64
  • vulkan sdk to compile shaders.

Compile shader:

windows

@echo off
setlocal
set VULKAN_VERSION=1.4.313.0
set VULKAN_Path=C:\VulkanSDK\%VULKAN_VERSION%\Bin\glslangValidator.exe
echo path "%VULKAN_Path%"

%VULKAN_Path% -V --vn triangle_vert shaders/triangle.vert -o include/triangle_vert.h
%VULKAN_Path% -V --vn triangle_frag shaders/triangle.frag -o include/triangle_frag.h

endlocal

Credits and Refs: