diff options
| author | Nicolas James <Eele1Ephe7uZahRie@tutanota.com> | 2026-04-05 22:01:11 +1000 |
|---|---|---|
| committer | Nicolas James <Eele1Ephe7uZahRie@tutanota.com> | 2026-04-05 22:01:11 +1000 |
| commit | cf0bced6cd86782e9706acda1b3b6ce6b4e98481 (patch) | |
| tree | 618912ff9025cf0d249e10203b110002a26450f9 /src/device_context.hh | |
| parent | 21e55ae8a1b3ddd4dff6c24a57bdc7d7272fff16 (diff) | |
Implement refactored AL2, todo frame limit
Diffstat (limited to 'src/device_context.hh')
| -rw-r--r-- | src/device_context.hh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/device_context.hh b/src/device_context.hh index 975d67c..950d132 100644 --- a/src/device_context.hh +++ b/src/device_context.hh @@ -2,6 +2,7 @@ #define DEVICE_CONTEXT_HH_ #include <memory> +#include <shared_mutex> #include <unordered_map> #include <vulkan/utility/vk_dispatch_table.h> @@ -22,17 +23,15 @@ class DeviceContext final : public Context { public: InstanceContext& instance; PhysicalDeviceContext& physical_device; - // Whether or not we were asked to do NV_VK_LowLatency2 or VK_AMD_anti_lag // at the device level. const bool was_capability_requested; - const VkDevice device; const VkuDeviceDispatchTable vtable; + std::shared_mutex mutex; std::unique_ptr<DeviceClock> clock; std::unordered_map<VkQueue, std::shared_ptr<QueueContext>> queues; - std::unique_ptr<DeviceStrategy> strategy; public: |
