aboutsummaryrefslogtreecommitdiff
path: root/src/physical_device_context.cc
blob: d265c9da2a380020ab45cd6c1c362860b37b9a50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "physical_device_context.hh"

namespace low_latency {
    
PhysicalDeviceContext::PhysicalDeviceContext(
    InstanceContext& instance_context, const VkPhysicalDevice& 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() {}

} // namespace low_latency