google / google/amber

Add an element index option to EXPECT commands

Open
#660 0 comments 0 reactions 0 assignees View on GitHub
amberscript enhancement
Dominant language
C++
Stars
228
Forks
77
PR merge metrics
No merged PRs in 30d

Description

Right now the EXPECT command uses `IDX` which is a byte-offset. It would likely be useful to measure in terms of the buffer's data type. So `ELEM_IDX` of 5 of an int32 buffer would be the 6'th int32. This will be useful with STD140 layouts.

I would expect that data type of the EXPECT command must match the data type of the buffer to use ELEM_IDX.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.