| spv.longVectorArrayLength.comp |
| // Module Version 10300 |
| // Generated by (magic number): 8000b |
| // Id's are bound by 34 |
| |
| Capability Shader |
| Capability LongVectorEXT |
| Extension "SPV_EXT_long_vector" |
| 1: ExtInstImport "GLSL.std.450" |
| MemoryModel Logical GLSL450 |
| EntryPoint GLCompute 4 "main" |
| ExecutionMode 4 LocalSize 1 1 1 |
| Source GLSL 460 |
| SourceExtension "GL_EXT_long_vector" |
| Name 4 "main" |
| Name 8 "n" |
| Name 11 "InBuf" |
| MemberName 11(InBuf) 0 "vals" |
| Name 13 "inbuf" |
| Name 17 "OutBuf" |
| MemberName 17(OutBuf) 0 "out_len" |
| MemberName 17(OutBuf) 1 "out_last" |
| Name 19 "outbuf" |
| Decorate 10 ArrayStride 48 |
| Decorate 11(InBuf) Block |
| MemberDecorate 11(InBuf) 0 Offset 0 |
| Decorate 13(inbuf) Binding 0 |
| Decorate 13(inbuf) DescriptorSet 0 |
| Decorate 17(OutBuf) Block |
| MemberDecorate 17(OutBuf) 0 Offset 0 |
| MemberDecorate 17(OutBuf) 1 Offset 4 |
| Decorate 19(outbuf) Binding 1 |
| Decorate 19(outbuf) DescriptorSet 0 |
| Decorate 33 BuiltIn WorkgroupSize |
| 2: TypeVoid |
| 3: TypeFunction 2 |
| 6: TypeInt 32 1 |
| 7: TypePointer Function 6(int) |
| 9: TypeVector 6(int) 12 |
| 10: TypeRuntimeArray 9(ivec) |
| 11(InBuf): TypeStruct 10 |
| 12: TypePointer StorageBuffer 11(InBuf) |
| 13(inbuf): 12(ptr) Variable StorageBuffer |
| 14: TypeInt 32 0 |
| 17(OutBuf): TypeStruct 6(int) 6(int) |
| 18: TypePointer StorageBuffer 17(OutBuf) |
| 19(outbuf): 18(ptr) Variable StorageBuffer |
| 20: 6(int) Constant 0 |
| 22: TypePointer StorageBuffer 6(int) |
| 24: 6(int) Constant 1 |
| 27: 6(int) Constant 11 |
| 31: TypeVector 14(int) 3 |
| 32: 14(int) Constant 1 |
| 33: 31(ivec3) ConstantComposite 32 32 32 |
| 4(main): 2 Function None 3 |
| 5: Label |
| 8(n): 7(ptr) Variable Function |
| 15: 14(int) ArrayLength 13(inbuf) 0 |
| 16: 6(int) Bitcast 15 |
| Store 8(n) 16 |
| 21: 6(int) Load 8(n) |
| 23: 22(ptr) AccessChain 19(outbuf) 20 |
| Store 23 21 |
| 25: 6(int) Load 8(n) |
| 26: 6(int) ISub 25 24 |
| 28: 22(ptr) AccessChain 13(inbuf) 20 26 27 |
| 29: 6(int) Load 28 |
| 30: 22(ptr) AccessChain 19(outbuf) 24 |
| Store 30 29 |
| Return |
| FunctionEnd |