Allow 8/16-bit integer as array index
Also enable 8/16 bit int capability in SPIR-V in such cases. Also enable 64 bit capabilities when used in operations. Fixes #2779
This commit is contained in:
parent
6351fcef28
commit
82b2668d58
6 changed files with 988 additions and 924 deletions
|
|
@ -117,6 +117,8 @@ void operators()
|
|||
int32_t i;
|
||||
int16_t i16;
|
||||
bool b;
|
||||
float arr[4] = {1.0, 2.0, 3.0, 4.0};
|
||||
float f;
|
||||
|
||||
// Unary
|
||||
u8v++;
|
||||
|
|
@ -164,6 +166,9 @@ void operators()
|
|||
uv = u8v & uv;
|
||||
uv ^= i8;
|
||||
u8v = u8v ^ i8;
|
||||
|
||||
// Index
|
||||
f = arr[i8];
|
||||
}
|
||||
|
||||
void builtinFuncs()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue