aboutsummaryrefslogtreecommitdiff
path: root/src/physical_device_context.cc
diff options
context:
space:
mode:
authorNicolas James <Eele1Ephe7uZahRie@tutanota.com>2026-02-13 18:21:04 +1100
committerNicolas James <Eele1Ephe7uZahRie@tutanota.com>2026-02-13 18:21:04 +1100
commit8f4501215c0dbbbde59da2d015fdec3dbe5131bc (patch)
treeac7e4b58309adb26e621c776f97fa8f08e608f04 /src/physical_device_context.cc
parent76f3ef1d7c2b4393a8e8b402deb924e606448d27 (diff)
add working frame tracking and commit before i break everything
Diffstat (limited to 'src/physical_device_context.cc')
-rw-r--r--src/physical_device_context.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/physical_device_context.cc b/src/physical_device_context.cc
index 105b840..d265c9d 100644
--- a/src/physical_device_context.cc
+++ b/src/physical_device_context.cc
@@ -1,10 +1,16 @@
#include "physical_device_context.hh"
namespace low_latency {
-
+
PhysicalDeviceContext::PhysicalDeviceContext(
InstanceContext& instance_context, const VkPhysicalDevice& physical_device)
- : instance(instance_context), physical_device(physical_device) {}
+ : instance(instance_context), physical_device(physical_device) {
+
+ auto props = VkPhysicalDeviceProperties{};
+ instance.vtable.GetPhysicalDeviceProperties(this->physical_device, &props);
+ this->properties =
+ std::make_unique<VkPhysicalDeviceProperties>(std::move(props));
+}
PhysicalDeviceContext::~PhysicalDeviceContext() {}