early-access version 2887

This commit is contained in:
pineappleEA
2022-08-02 08:42:45 +02:00
parent f23ace47e6
commit dbdc64c687
3 changed files with 28 additions and 22 deletions

View File

@@ -1288,10 +1288,11 @@ Image::Image(TextureCacheRuntime& runtime_, const ImageInfo& info_, GPUVAddr gpu
}
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)} {
: VideoCommon::ImageBase(params), scheduler{&runtime_.scheduler}, runtime{&runtime_} {
info.format = PixelFormat::A8B8G8R8_UNORM;
original_image = MakeImage(runtime_.device, info);
aspect_mask = ImageAspectMask(info.format);
commit = runtime_.memory_allocator.Commit(original_image, MemoryUsage::DeviceLocal);
if (runtime->device.HasDebuggingToolAttached()) {
original_image.SetObjectNameEXT("NullImage");
}