Skip to content

php-ffi-headers/vulkan-headers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

04c2a4f · Aug 22, 2022

History

35 Commits
Aug 17, 2022
Aug 22, 2022
Aug 22, 2022
Mar 20, 2022
Mar 9, 2022
Aug 17, 2022
Mar 9, 2022
Mar 9, 2022
Aug 22, 2022
Mar 12, 2022
Mar 9, 2022
Mar 9, 2022

Repository files navigation

Latest Stable Version Latest Unstable Version Total Downloads License MIT

Vulkan Headers

This is a C headers of the Vulkan adopted for PHP.

Requirements

  • PHP >= 8.1

Installation

Library is available as composer repository and can be installed using the following command in a root of your project.

$ composer require ffi-headers/vulkan-headers

Usage

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;

Please note that the use of header files is not the latest version:

  • Takes time to download and install (This will be done in the background > during initialization).
  • May not be compatible with the PHP headers library.