| 1 |
/* |
| 2 |
* Copyright 2024 Valve Corporation |
| 3 |
* Copyright 2024 Alyssa Rosenzweig |
| 4 |
* Copyright 2022-2023 Collabora Ltd. and Red Hat Inc. |
| 5 |
* SPDX-License-Identifier: MIT |
| 6 |
*/ |
| 7 |
|
| 8 |
#pragma once |
| 9 |
|
| 10 |
#include "util/xmlconfig.h" |
| 11 |
#include "vk_instance.h" |
| 12 |
|
| 13 |
struct hk_instance { |
| 14 |
struct vk_instance vk; |
| 15 |
|
| 16 |
struct driOptionCache dri_options; |
| 17 |
struct driOptionCache available_dri_options; |
| 18 |
|
| 19 |
uint8_t driver_build_sha[BLAKE3_KEY_LEN]; |
| 20 |
uint32_t force_vk_vendor; |
| 21 |
|
| 22 |
bool no_border; |
| 23 |
bool fake_minmax; |
| 24 |
bool image_view_min_lod; |
| 25 |
bool vertex_stores; |
| 26 |
}; |
| 27 |
|
| 28 |
VK_DEFINE_HANDLE_CASTS(hk_instance, vk.base, VkInstance, |
| 29 |
VK_OBJECT_TYPE_INSTANCE) |