Skip to content

Commit

Permalink
Turn off bindless textures for all AMD devices. Maybe can be re-enabl…
Browse files Browse the repository at this point in the history
…ed some day if AMD fixes their drivers...
  • Loading branch information
dpjudas committed Feb 12, 2025
1 parent 52a20bf commit c436b91
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions SurrealEngine/RenderDevice/Vulkan/VulkanRenderDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ VulkanRenderDevice::VulkanRenderDevice(Widget* InViewport, std::shared_ptr<Vulka
Device->EnabledFeatures.DescriptorIndexing.runtimeDescriptorArray &&
Device->EnabledFeatures.DescriptorIndexing.shaderSampledImageArrayNonUniformIndexing;

// AMD's driver produces artifacts when using bindless textures.
// This is not ideal, but can't get AMD to fix this as I'm not AAA and thus can't just call them...
if ((Device->PhysicalDevice.Properties.Properties.vendorID & 0xffff) == 0x1002)
SupportsBindless = false;

Commands.reset(new CommandBufferManager(this));
Samplers.reset(new SamplerManager(this));
Textures.reset(new TextureManager(this));
Expand Down

0 comments on commit c436b91

Please sign in to comment.