From d2950b4c1dfab14491ca3b66448c8488dab8f421 Mon Sep 17 00:00:00 2001 From: Torsten Kammer Date: Sun, 5 May 2024 16:47:11 +0200 Subject: [PATCH] Fix warning --- GLLara/GLLItemMeshState.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GLLara/GLLItemMeshState.swift b/GLLara/GLLItemMeshState.swift index 00047fc..e8642ee 100644 --- a/GLLara/GLLItemMeshState.swift +++ b/GLLara/GLLItemMeshState.swift @@ -345,7 +345,7 @@ class GLLItemMeshState { /// TODO Ugly let textures = loadedTextures.map { $0.texture } - commandEncoder.useResources(textures, usage: .read) + commandEncoder.useResources(textures, usage: .read, stages: [.fragment]) commandEncoder.setRenderPipelineState(pipelineStateInformation.pipelineState) commandEncoder.setFragmentBuffer(fragmentArgumentBuffer, offset: 0, index: Int(GLLFragmentBufferIndexArguments.rawValue))