From fb5f04060f422d525545a787fab18232a9645013 Mon Sep 17 00:00:00 2001 From: Andre Watson Date: Thu, 26 Oct 2023 11:15:40 -0700 Subject: [PATCH] Move UByte1 Sizing Summary: Was previously int_8 vs uint8. Probably not an issue, but cleanup nonetheless Reviewed By: corporateshark Differential Revision: D50665033 fbshipit-source-id: 49d127ae290566cfb5534076593cd53f5b63d098 --- src/igl/VertexInputState.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/igl/VertexInputState.cpp b/src/igl/VertexInputState.cpp index 69f5222c09..6279d9ed05 100644 --- a/src/igl/VertexInputState.cpp +++ b/src/igl/VertexInputState.cpp @@ -25,7 +25,6 @@ size_t VertexInputStateDesc::sizeForVertexAttributeFormat(VertexAttributeFormat case VertexAttributeFormat::Byte1: case VertexAttributeFormat::Byte1Norm: - case VertexAttributeFormat::UByte1: return sizeof(int8_t); case VertexAttributeFormat::Byte2: @@ -40,6 +39,7 @@ size_t VertexInputStateDesc::sizeForVertexAttributeFormat(VertexAttributeFormat case VertexAttributeFormat::Byte4Norm: return sizeof(int8_t[4]); + case VertexAttributeFormat::UByte1: case VertexAttributeFormat::UByte1Norm: return sizeof(uint8_t[1]);