early-access version 2883

This commit is contained in:
pineappleEA
2022-08-02 01:20:30 +02:00
parent cc8084a0ec
commit fd7b2535a2
6 changed files with 21 additions and 12 deletions

View File

@@ -1287,7 +1287,16 @@ Image::Image(TextureCacheRuntime& runtime_, const ImageInfo& info_, GPUVAddr gpu
}
}
Image::Image(const VideoCommon::NullImageParams& params) : VideoCommon::ImageBase{params} {}
Image::Image(TextureCacheRuntime& runtime_, const VideoCommon::NullImageParams& params)
: VideoCommon::ImageBase(params), scheduler{&runtime_.scheduler}, runtime{&runtime_},
original_image{MakeImage(runtime_.device, info)},
commit(runtime_.memory_allocator.Commit(original_image, MemoryUsage::DeviceLocal)),
aspect_mask{ImageAspectMask(info.format)} {
if (runtime->device.HasDebuggingToolAttached()) {
original_image.SetObjectNameEXT("NullImage");
}
current_image = *original_image;
}
Image::~Image() = default;

View File

@@ -110,7 +110,7 @@ class Image : public VideoCommon::ImageBase {
public:
explicit Image(TextureCacheRuntime&, const VideoCommon::ImageInfo& info, GPUVAddr gpu_addr,
VAddr cpu_addr);
explicit Image(const VideoCommon::NullImageParams&);
explicit Image(TextureCacheRuntime&, const VideoCommon::NullImageParams&);
~Image();