yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
e9d166cd
vulkan-sdk-1.4.363.0
1#version 460 core 2 3#extension GL_ARM_tensors : enable 4 5uniform tensorARM < int , 1 > t ; 6 7void main () { 8// Type checking should render these accesses invalid 9int i = 33 ; 10float w = 1.5 ; 11tensorWriteARM ( t , uint []( 0 , 0 ) , i ) ; 12tensorWriteARM ( t , uint []( 0 , 0 ) , w ) ; 13float r ; 14tensorReadARM ( t , uint []( 0 , 0 ) , i ) ; 15tensorReadARM ( t , uint []( 0 , 0 ) , r ) ; 16 17// Signed vs unsigned. 18uint u = 34 ; 19tensorReadARM ( t , uint []( 0 ) , u ) ; 20tensorWriteARM ( t , uint []( 0 ) , u ) ; 21 22// OutOfBounds value is only valid with tensorReadARM. 23tensorWriteARM ( t , uint []( 1 ) , i , gl_TensorOperandsOutOfBoundsValueARM , 14 ) ; 24 25// OutOfBounds value must be provided. 26tensorReadARM ( t , uint []( 1 ) , i , gl_TensorOperandsOutOfBoundsValueARM ) ; 27// OutOfBounds value must be constant. 28tensorReadARM ( t , uint []( 2 ) , i , gl_TensorOperandsOutOfBoundsValueARM , i ) ; 29// OutOfBounds value type must match tensor element type. 30tensorReadARM ( t , uint []( 3 ) , i , gl_TensorOperandsOutOfBoundsValueARM , 3.14 ) ; 31// OutOfBounds value type must match tensor element type. 32tensorReadARM ( t , uint []( 3 ) , i , gl_TensorOperandsOutOfBoundsValueARM , 3u ) ; 33}