Skip to content

Commit

Permalink
Move UByte1 Sizing
Browse files Browse the repository at this point in the history
Summary: Was previously int_8 vs uint8. Probably not an issue, but cleanup nonetheless

Reviewed By: corporateshark

Differential Revision: D50665033

fbshipit-source-id: 49d127ae290566cfb5534076593cd53f5b63d098
  • Loading branch information
MetaAndre authored and facebook-github-bot committed Oct 26, 2023
1 parent 834d756 commit fb5f040
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/igl/VertexInputState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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]);

Expand Down

0 comments on commit fb5f040

Please sign in to comment.