early-access version 2883
This commit is contained in:
@@ -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;
|
||||
|
||||
|
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user