| 1 |
; SPIR-V |
| 2 |
; Version: 1.3 |
| 3 |
; Generator: Khronos SPIR-V Tools Assembler; 0 |
| 4 |
; Bound: 37 |
| 5 |
; Schema: 0 |
| 6 |
OpCapability Shader |
| 7 |
%1 = OpExtInstImport "DebugInfo" |
| 8 |
OpMemoryModel Logical GLSL450 |
| 9 |
OpEntryPoint GLCompute %2 "main" %3 |
| 10 |
OpExecutionMode %2 LocalSize 1 1 1 |
| 11 |
%4 = OpString "negateInputs.comp" |
| 12 |
%5 = OpString "negateInputs" |
| 13 |
%6 = OpString "main" |
| 14 |
%7 = OpString "" |
| 15 |
OpSource GLSL 430 |
| 16 |
OpName %2 "main" |
| 17 |
OpName %3 "gl_GlobalInvocationID" |
| 18 |
OpDecorate %3 BuiltIn GlobalInvocationId |
| 19 |
OpDecorate %8 BufferBlock |
| 20 |
OpDecorate %9 DescriptorSet 0 |
| 21 |
OpDecorate %9 Binding 0 |
| 22 |
OpDecorate %10 DescriptorSet 0 |
| 23 |
OpDecorate %10 Binding 1 |
| 24 |
OpDecorate %11 ArrayStride 4 |
| 25 |
OpMemberDecorate %8 0 Offset 0 |
| 26 |
OpLine %4 0 0 |
| 27 |
%12 = OpTypeBool |
| 28 |
%13 = OpTypeVoid |
| 29 |
%14 = OpTypeFunction %13 |
| 30 |
%15 = OpTypeInt 32 0 |
| 31 |
%16 = OpTypeInt 32 1 |
| 32 |
%17 = OpTypeFloat 32 |
| 33 |
%18 = OpTypeVector %15 3 |
| 34 |
%19 = OpTypeVector %17 3 |
| 35 |
%20 = OpTypePointer Input %18 |
| 36 |
%21 = OpTypePointer Uniform %16 |
| 37 |
%22 = OpTypePointer Uniform %17 |
| 38 |
%23 = OpTypeRuntimeArray %16 |
| 39 |
%11 = OpTypeRuntimeArray %17 |
| 40 |
%8 = OpTypeStruct %11 |
| 41 |
%24 = OpTypePointer Uniform %8 |
| 42 |
%9 = OpVariable %24 Uniform |
| 43 |
%10 = OpVariable %24 Uniform |
| 44 |
OpLine %4 0 1 |
| 45 |
OpLine %5 1 0 |
| 46 |
OpLine %4 1000 100000 |
| 47 |
%3 = OpVariable %20 Input |
| 48 |
%25 = OpConstant %16 0 |
| 49 |
OpNoLine |
| 50 |
OpLine %4 1 1 |
| 51 |
%26 = OpExtInst %13 %1 DebugInfoNone |
| 52 |
%27 = OpExtInst %13 %1 DebugTypeFunction %13 |
| 53 |
%28 = OpExtInst %13 %1 DebugFunction %6 %27 %4 1 1 %4 %7 FlagIsDefinition|FlagPrototyped|FlagIsOptimized 1 %26 %26 |
| 54 |
%2 = OpFunction %13 None %14 |
| 55 |
%29 = OpLabel |
| 56 |
%30 = OpExtInst %13 %1 DebugScope %28 |
| 57 |
OpLine %4 1 1 |
| 58 |
%31 = OpLoad %18 %3 |
| 59 |
%32 = OpCompositeExtract %15 %31 0 |
| 60 |
%33 = OpAccessChain %22 %9 %25 %32 |
| 61 |
%34 = OpLoad %17 %33 |
| 62 |
%35 = OpFNegate %17 %34 |
| 63 |
%36 = OpAccessChain %22 %10 %25 %32 |
| 64 |
OpStore %36 %35 |
| 65 |
OpNoLine |
| 66 |
OpReturn |
| 67 |
OpFunctionEnd |