mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-29 18:05:29 +03:00
Set eMutableFormat
in Texture Image Creation
We often need to alias the underlying data as multiple Vulkan formats which requires the `eMutableFormat` bit to be set in `VkImageCreateInfo`, without doing this there'll be validation layer errors and potentially GPU bugs.
This commit is contained in:
parent
dafcfa68ca
commit
731d06010d
@ -307,6 +307,7 @@ namespace skyline::gpu {
|
|||||||
usage |= vk::ImageUsageFlagBits::eDepthStencilAttachment;
|
usage |= vk::ImageUsageFlagBits::eDepthStencilAttachment;
|
||||||
|
|
||||||
vk::ImageCreateInfo imageCreateInfo{
|
vk::ImageCreateInfo imageCreateInfo{
|
||||||
|
.flags = vk::ImageCreateFlagBits::eMutableFormat,
|
||||||
.imageType = guest->dimensions.GetType(),
|
.imageType = guest->dimensions.GetType(),
|
||||||
.format = *guest->format,
|
.format = *guest->format,
|
||||||
.extent = guest->dimensions,
|
.extent = guest->dimensions,
|
||||||
|
Loading…
Reference in New Issue
Block a user