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))