PHP code example of ffi-headers / vulkan-headers
1. Go to this page and download the library: Download ffi-headers/vulkan-headers library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ffi-headers / vulkan-headers example snippets
use FFI\Headers\Vulkan;
$headers = Vulkan::create(
platform: Vulkan\Platform::XLIB, // Platform
betaExtensions: true, // Enable Beta Extensions
version: Vulkan\Version::V1_3_207, // Headers Version
);
echo $headers;