ComputeTest: Fix Vulkan error

This commit is contained in:
SirLynix
2023-07-21 08:57:07 +02:00
committed by Jérôme Leclercq
parent dee47c6f15
commit e3da81dff4
3 changed files with 6 additions and 2 deletions

View File

@@ -54,6 +54,7 @@ int main()
texParams.renderDevice = device;
texParams.loadFormat = Nz::PixelFormat::RGBA8;
texParams.usageFlags = Nz::TextureUsage::ShaderReadWrite | Nz::TextureUsage::ShaderSampling | Nz::TextureUsage::TransferDestination;
texParams.buildMipmaps = false;
std::shared_ptr<Nz::Texture> texture = Nz::Texture::LoadFromFile(resourceDir / "lynix.jpg", texParams);