wivrn namespace: move all server classes
This commit is contained in:
@@ -21,6 +21,9 @@
|
||||
|
||||
#include "os/os_threading.h"
|
||||
|
||||
namespace wivrn
|
||||
{
|
||||
|
||||
class scoped_lock
|
||||
{
|
||||
os_mutex & mutex;
|
||||
@@ -36,3 +39,4 @@ public:
|
||||
os_mutex_unlock(&mutex);
|
||||
}
|
||||
};
|
||||
} // namespace wivrn
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
wivrn_vk_bundle::wivrn_vk_bundle(vk_bundle & vk, std::span<const char *> requested_instance_extensions, std::span<const char *> requested_device_extensions) :
|
||||
wivrn::wivrn_vk_bundle::wivrn_vk_bundle(vk_bundle & vk, std::span<const char *> requested_instance_extensions, std::span<const char *> requested_device_extensions) :
|
||||
vk(vk),
|
||||
instance(vk_ctx, vk.instance),
|
||||
physical_device(instance, vk.physical_device),
|
||||
@@ -147,7 +147,7 @@ wivrn_vk_bundle::wivrn_vk_bundle(vk_bundle & vk, std::span<const char *> request
|
||||
}
|
||||
}
|
||||
|
||||
uint32_t wivrn_vk_bundle::get_memory_type(uint32_t type_bits, vk::MemoryPropertyFlags memory_props)
|
||||
uint32_t wivrn::wivrn_vk_bundle::get_memory_type(uint32_t type_bits, vk::MemoryPropertyFlags memory_props)
|
||||
{
|
||||
auto mem_prop = physical_device.getMemoryProperties();
|
||||
|
||||
|
||||
@@ -27,6 +27,9 @@
|
||||
|
||||
struct vk_bundle;
|
||||
|
||||
namespace wivrn
|
||||
{
|
||||
|
||||
// to use vk::raii we need a vk::raii::{Instance,PhysicalDevice,Device}
|
||||
// however we don't own it, so deactivate the destructor
|
||||
struct raii_instance : public vk::raii::Instance
|
||||
@@ -68,3 +71,4 @@ struct wivrn_vk_bundle
|
||||
|
||||
uint32_t get_memory_type(uint32_t type_bits, vk::MemoryPropertyFlags memory_props);
|
||||
};
|
||||
} // namespace wivrn
|
||||
|
||||
Reference in New Issue
Block a user