simvx.graphics.gpu.instance¶
VkInstance creation, debug messenger, and surface helpers.
Module Contents¶
Functions¶
Create a VkInstance with optional validation layers. |
|
Attach a debug utils messenger to instance. |
Data¶
API¶
- simvx.graphics.gpu.instance.__all__¶
[‘SYNC_VALIDATION_ENV’, ‘create_instance’, ‘create_debug_messenger’]
- simvx.graphics.gpu.instance.log¶
‘getLogger(…)’
- simvx.graphics.gpu.instance.SYNC_VALIDATION_ENV¶
‘SIMVX_SYNC_VALIDATION’
- simvx.graphics.gpu.instance.create_instance(app_name: str = 'SimVX', extensions: list[str] | None = None, validation: bool = True) tuple[Any, bool]¶
Create a VkInstance with optional validation layers.
With :data:
SYNC_VALIDATION_ENVset the layer is additionally asked for synchronisation validation, which is off by default; see that constant.Returns (instance, validation_enabled).
- simvx.graphics.gpu.instance.create_debug_messenger(instance: Any) Any¶
Attach a debug utils messenger to instance.