An easy-to-use Python wrapper for the Vulkan API registry.
Project description
Vulkan Object Python Package
Parsing the vk.xml in Vulkan is easy, processing it is hard!
It is very easy for people to mess up trying to process the vk.xml file, so we created VulkanObject
VulkanObject is just a python dataclass that is defined in Vulkan-Headers/registry/vulkan_object.py. It uses the reg.py framework that the Vulkan Spec is generated with in order to populate the VulkanObject data structure.
This python package makes it super easy to get going.
pip install vulkan-object
from vulkan_object import get_vulkan_object, VulkanObject
vk = get_vulkan_object()
print(f'There are now {len([x for x in vk.extensions.values()])} extensions in Vulkan')
print(f'Built with the {vk.headerVersion} headers')
Updating this repo
run python update.py /path/to/Vulkan-Headers and it will do everything to sync this package up with the new headers
Testing locally
To test, grab the repo and go pip install -e . in the root directory and will simulate grabbing it from pip
What is this package/repo actually?
The Vulkan-Headers contain a bunch of scripts in the Vulkan-Headers/registry/ directory that repos can use to help generate code.
The main issue is the delivery mechanism for python projects. This package/repo just grabs the Vulkan-Headers scripts (not the C header files themselves!) and make it easier to integrate with projects.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vulkan_object-1.4.319.tar.gz.
File metadata
- Download URL: vulkan_object-1.4.319.tar.gz
- Upload date:
- Size: 347.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b3bc66213664b1f24e67e5d54134ab2d6f915ba0d787bce3cc17b95f4742a93
|
|
| MD5 |
a7075fce3de09fa899053e80c1292f83
|
|
| BLAKE2b-256 |
1e6d439fbfaf680325fb443c6539d0db2ab7dc9d8f5c3d434297e29805a2e183
|
Provenance
The following attestation bundles were made for vulkan_object-1.4.319.tar.gz:
Publisher:
publish.yml on KhronosGroup/vulkan-object
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vulkan_object-1.4.319.tar.gz -
Subject digest:
7b3bc66213664b1f24e67e5d54134ab2d6f915ba0d787bce3cc17b95f4742a93 - Sigstore transparency entry: 246019600
- Sigstore integration time:
-
Permalink:
KhronosGroup/vulkan-object@7732419bafc9e990164657278355118080e15cf2 -
Branch / Tag:
refs/tags/v1.4.139 - Owner: https://github.com/KhronosGroup
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7732419bafc9e990164657278355118080e15cf2 -
Trigger Event:
release
-
Statement type:
File details
Details for the file vulkan_object-1.4.319-py3-none-any.whl.
File metadata
- Download URL: vulkan_object-1.4.319-py3-none-any.whl
- Upload date:
- Size: 356.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96db5cb08ed5cdd64a3a2d5630fb2c2e17ed4bf23996153cc4bcf0ca69f00da7
|
|
| MD5 |
ebd6d0b8164608aaa4a6fb123f64ad9f
|
|
| BLAKE2b-256 |
0f1019b0d27026baecbbad4aa040240db05608baa42324036cfb6a671762fd64
|
Provenance
The following attestation bundles were made for vulkan_object-1.4.319-py3-none-any.whl:
Publisher:
publish.yml on KhronosGroup/vulkan-object
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vulkan_object-1.4.319-py3-none-any.whl -
Subject digest:
96db5cb08ed5cdd64a3a2d5630fb2c2e17ed4bf23996153cc4bcf0ca69f00da7 - Sigstore transparency entry: 246019604
- Sigstore integration time:
-
Permalink:
KhronosGroup/vulkan-object@7732419bafc9e990164657278355118080e15cf2 -
Branch / Tag:
refs/tags/v1.4.139 - Owner: https://github.com/KhronosGroup
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7732419bafc9e990164657278355118080e15cf2 -
Trigger Event:
release
-
Statement type: