mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-24 05:29:01 +02:00
fix sgsr on android hopefully
This commit is contained in:
parent
9472fa6a93
commit
c291decd7c
2 changed files with 7 additions and 4 deletions
|
|
@ -23,6 +23,11 @@ SGSR::SGSR(const Device& device, MemoryAllocator& memory_allocator, size_t image
|
||||||
: m_device{device}, m_memory_allocator{memory_allocator}
|
: m_device{device}, m_memory_allocator{memory_allocator}
|
||||||
, m_image_count{image_count}, m_extent{extent}
|
, m_image_count{image_count}, m_extent{extent}
|
||||||
{
|
{
|
||||||
|
// Not finished yet initializing at ctor time?
|
||||||
|
Initialize();
|
||||||
|
}
|
||||||
|
|
||||||
|
void SGSR::Initialize() {
|
||||||
m_dynamic_images.resize(m_image_count);
|
m_dynamic_images.resize(m_image_count);
|
||||||
for (auto& images : m_dynamic_images) {
|
for (auto& images : m_dynamic_images) {
|
||||||
images.images[0] = CreateWrappedImage(m_memory_allocator, m_extent, VK_FORMAT_R16G16B16A16_SFLOAT);
|
images.images[0] = CreateWrappedImage(m_memory_allocator, m_extent, VK_FORMAT_R16G16B16A16_SFLOAT);
|
||||||
|
|
|
||||||
|
|
@ -16,11 +16,9 @@ class SGSR {
|
||||||
public:
|
public:
|
||||||
static constexpr size_t SGSR_STAGE_COUNT = 2;
|
static constexpr size_t SGSR_STAGE_COUNT = 2;
|
||||||
explicit SGSR(const Device& device, MemoryAllocator& memory_allocator, size_t image_count, VkExtent2D extent);
|
explicit SGSR(const Device& device, MemoryAllocator& memory_allocator, size_t image_count, VkExtent2D extent);
|
||||||
VkImageView Draw(Scheduler& scheduler, size_t image_index, VkImage source_image,
|
VkImageView Draw(Scheduler& scheduler, size_t image_index, VkImage source_image, VkImageView source_image_view, VkExtent2D input_image_extent, const Common::Rectangle<f32>& crop_rect);
|
||||||
VkImageView source_image_view, VkExtent2D input_image_extent,
|
|
||||||
const Common::Rectangle<f32>& crop_rect);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
void Initialize();
|
||||||
void UploadImages(Scheduler& scheduler);
|
void UploadImages(Scheduler& scheduler);
|
||||||
void UpdateDescriptorSets(VkImageView image_view, size_t image_index);
|
void UpdateDescriptorSets(VkImageView image_view, size_t image_index);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue