Base vertex instance drawing enabled on simulator (#2518)

This commit is contained in:
Alex Cristici
2024-06-20 18:26:47 +03:00
committed by GitHub
parent f24286965b
commit 098dca8c5a

View File

@@ -46,7 +46,11 @@ RendererBackend::RendererBackend(const gfx::ContextMode contextMode_)
commandQueue(NS::TransferPtr(device->newCommandQueue())) {
assert(device);
assert(commandQueue);
#if TARGET_OS_SIMULATOR
baseVertexInstanceDrawingSupported = true;
#else
baseVertexInstanceDrawingSupported = device->supportsFamily(MTL::GPUFamilyApple3);
#endif
}
RendererBackend::~RendererBackend() = default;