mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 10:49:14 +00:00
Pass the old/new VkImageLayouts to Vulkan image import/export
Returning the layouts from an export operation and then using them in a subsequent import operation allows the import to preserve the texture contents. This fixes Vukan image wrapping on some AMD/NVIDIA devices. Bug: dawn:200 Change-Id: Icbb6e759856d410bb69724b9f439bc3088756d19 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/28380 Commit-Queue: Austin Eng <enga@chromium.org> Reviewed-by: Kai Ninomiya <kainino@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
670858da9b
commit
0b29732cd8
@@ -195,8 +195,14 @@ namespace dawn_native {
|
||||
return GetProcMapNamesForTestingInternal();
|
||||
}
|
||||
|
||||
ExternalImageDescriptor::ExternalImageDescriptor(ExternalImageDescriptorType type)
|
||||
: type(type) {
|
||||
// ExternalImageDescriptor
|
||||
|
||||
ExternalImageDescriptor::ExternalImageDescriptor(ExternalImageType type) : type(type) {
|
||||
}
|
||||
|
||||
// ExternalImageExportInfo
|
||||
|
||||
ExternalImageExportInfo::ExternalImageExportInfo(ExternalImageType type) : type(type) {
|
||||
}
|
||||
|
||||
} // namespace dawn_native
|
||||
|
||||
Reference in New Issue
Block a user