From bc2363901a2f8e54bcfa86c77fe1dd857088573d Mon Sep 17 00:00:00 2001 From: hyde zhou Date: Wed, 26 Jun 2024 09:48:36 +0800 Subject: [PATCH] remove index buffer usage from default buffer (#17214) --- native/cocos/renderer/gfx-base/GFXDevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/cocos/renderer/gfx-base/GFXDevice.cpp b/native/cocos/renderer/gfx-base/GFXDevice.cpp index a19e4da5198..1398b573a89 100644 --- a/native/cocos/renderer/gfx-base/GFXDevice.cpp +++ b/native/cocos/renderer/gfx-base/GFXDevice.cpp @@ -168,7 +168,7 @@ DefaultResource::DefaultResource(Device *device) { } { BufferInfo bufferInfo = {}; - bufferInfo.usage = BufferUsageBit::STORAGE | BufferUsageBit::TRANSFER_DST | BufferUsageBit::TRANSFER_SRC | BufferUsageBit::VERTEX | BufferUsageBit::INDEX | BufferUsageBit::INDIRECT; + bufferInfo.usage = BufferUsageBit::STORAGE | BufferUsageBit::TRANSFER_DST | BufferUsageBit::TRANSFER_SRC | BufferUsageBit::VERTEX | BufferUsageBit::INDIRECT; bufferInfo.memUsage = MemoryUsageBit::DEVICE | MemoryUsageBit::HOST; bufferInfo.size = 5 * sizeof(uint32_t); // for indirect command buffer bufferInfo.stride = bufferInfo.size;