update parallel rdp

This commit is contained in:
Logan McNaughton committed 2022-05-29 18:33:47 -06:00
1 parent 37f61aef57
commit b96f789d1a
108 files changed
+58317 -109283

No files matched your search

+16 -2
View File
@@ -1,4 +1,4 @@
/* Copyright (c) 2017-2020 Hans-Kristian Arntzen
/* Copyright (c) 2017-2022 Hans-Kristian Arntzen
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
@@ -28,7 +28,6 @@ using namespace std;
namespace Vulkan
{
ImageView::ImageView(Device *device_, VkImageView view_, const ImageViewCreateInfo &info_)
: Cookie(device_)
, device(device_)
@@ -88,6 +87,21 @@ ImageView::~ImageView()
}
}
unsigned ImageView::get_view_width() const
{
return info.image->get_width(info.base_level);
}
unsigned ImageView::get_view_height() const
{
return info.image->get_height(info.base_level);
}
unsigned ImageView::get_view_depth() const
{
return info.image->get_depth(info.base_level);
}
Image::Image(Device *device_, VkImage image_, VkImageView default_view, const DeviceAllocation &alloc_,
const ImageCreateInfo &create_info_, VkImageViewType view_type)
: Cookie(device_)