File tree Expand file tree Collapse file tree
src/main/java/net/vulkanmod/vulkan/shader/converter Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33import com .mojang .blaze3d .vertex .VertexFormat ;
44import it .unimi .dsi .fastutil .objects .ObjectArrayList ;
5+ import net .vulkanmod .Initializer ;
56import net .vulkanmod .vulkan .shader .descriptor .ImageDescriptor ;
67import net .vulkanmod .vulkan .shader .descriptor .UBO ;
78import net .vulkanmod .vulkan .shader .layout .AlignedStruct ;
@@ -297,8 +298,11 @@ private void parseAttribute() {
297298 attributeLocation = attributeNames .indexOf (attribute .id );
298299
299300 if (attributeLocation == -1 ) {
300- throw new IllegalStateException ("Element %s not found in elements %s" .formatted (attribute .id , attributeNames ));
301+ Initializer .LOGGER .error ("Element %s not found in elements %s" .formatted (attribute .id , attributeNames ));
302+ attributeLocation = currentInAtt ;
301303 }
304+
305+ currentInAtt ++;
302306 } else {
303307 attributeLocation = currentInAtt ++;
304308 }
You can’t perform that action at this time.
0 commit comments