mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-28 09:09:19 +01:00
122 lines
3.3 KiB
Plaintext
122 lines
3.3 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.1
|
|
; Generator: rspirv
|
|
; Bound: 82
|
|
OpCapability Shader
|
|
OpExtension "SPV_KHR_storage_buffer_storage_class"
|
|
%1 = OpExtInstImport "GLSL.std.450"
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint Vertex %39 "foo" %34 %37
|
|
OpSource GLSL 450
|
|
OpName %25 "Bar"
|
|
OpMemberName %25 0 "matrix"
|
|
OpMemberName %25 1 "arr"
|
|
OpMemberName %25 2 "data"
|
|
OpName %27 "bar"
|
|
OpName %29 "foo"
|
|
OpName %31 "c"
|
|
OpName %34 "vi"
|
|
OpName %39 "foo"
|
|
OpDecorate %23 ArrayStride 8
|
|
OpDecorate %24 ArrayStride 4
|
|
OpDecorate %25 Block
|
|
OpMemberDecorate %25 0 Offset 0
|
|
OpMemberDecorate %25 0 ColMajor
|
|
OpMemberDecorate %25 0 MatrixStride 16
|
|
OpMemberDecorate %25 1 Offset 64
|
|
OpMemberDecorate %25 2 Offset 80
|
|
OpDecorate %26 ArrayStride 4
|
|
OpDecorate %27 DescriptorSet 0
|
|
OpDecorate %27 Binding 0
|
|
OpDecorate %34 BuiltIn VertexIndex
|
|
OpDecorate %37 BuiltIn Position
|
|
%2 = OpTypeVoid
|
|
%4 = OpTypeInt 32 1
|
|
%3 = OpConstant %4 2
|
|
%6 = OpTypeFloat 32
|
|
%5 = OpConstant %6 0.0
|
|
%7 = OpConstant %6 1.0
|
|
%9 = OpTypeInt 32 0
|
|
%8 = OpConstant %9 3
|
|
%10 = OpConstant %9 2
|
|
%11 = OpConstant %4 1
|
|
%12 = OpConstant %6 2.0
|
|
%13 = OpConstant %6 3.0
|
|
%14 = OpConstant %9 0
|
|
%15 = OpConstant %9 1
|
|
%16 = OpConstant %4 5
|
|
%17 = OpConstant %4 3
|
|
%18 = OpConstant %4 4
|
|
%19 = OpConstant %4 42
|
|
%21 = OpTypeVector %6 4
|
|
%20 = OpTypeMatrix %21 4
|
|
%22 = OpTypeVector %9 2
|
|
%23 = OpTypeArray %22 %3
|
|
%24 = OpTypeRuntimeArray %4
|
|
%25 = OpTypeStruct %20 %23 %24
|
|
%26 = OpTypeArray %4 %16
|
|
%28 = OpTypePointer StorageBuffer %25
|
|
%27 = OpVariable %28 StorageBuffer
|
|
%30 = OpTypePointer Function %6
|
|
%32 = OpTypePointer Function %26
|
|
%35 = OpTypePointer Input %9
|
|
%34 = OpVariable %35 Input
|
|
%38 = OpTypePointer Output %21
|
|
%37 = OpVariable %38 Output
|
|
%40 = OpTypeFunction %2
|
|
%43 = OpTypePointer StorageBuffer %20
|
|
%46 = OpTypePointer StorageBuffer %23
|
|
%49 = OpTypePointer StorageBuffer %21
|
|
%53 = OpTypePointer StorageBuffer %24
|
|
%56 = OpTypePointer StorageBuffer %4
|
|
%59 = OpTypePointer StorageBuffer %6
|
|
%74 = OpTypePointer Function %4
|
|
%78 = OpTypeVector %4 4
|
|
%39 = OpFunction %2 None %40
|
|
%33 = OpLabel
|
|
%29 = OpVariable %30 Function %5
|
|
%31 = OpVariable %32 Function
|
|
%36 = OpLoad %9 %34
|
|
OpBranch %41
|
|
%41 = OpLabel
|
|
%42 = OpLoad %6 %29
|
|
OpStore %29 %7
|
|
%44 = OpAccessChain %43 %27 %14
|
|
%45 = OpLoad %20 %44
|
|
%47 = OpAccessChain %46 %27 %15
|
|
%48 = OpLoad %23 %47
|
|
%50 = OpAccessChain %49 %27 %14 %8
|
|
%51 = OpLoad %21 %50
|
|
%52 = OpCompositeExtract %6 %51 0
|
|
%54 = OpArrayLength %9 %27 2
|
|
%55 = OpISub %9 %54 %10
|
|
%57 = OpAccessChain %56 %27 %10 %55
|
|
%58 = OpLoad %4 %57
|
|
%60 = OpAccessChain %59 %27 %14 %15 %10
|
|
OpStore %60 %7
|
|
%61 = OpCompositeConstruct %21 %5 %5 %5 %5
|
|
%62 = OpCompositeConstruct %21 %7 %7 %7 %7
|
|
%63 = OpCompositeConstruct %21 %12 %12 %12 %12
|
|
%64 = OpCompositeConstruct %21 %13 %13 %13 %13
|
|
%65 = OpCompositeConstruct %20 %61 %62 %63 %64
|
|
%66 = OpAccessChain %43 %27 %14
|
|
OpStore %66 %65
|
|
%67 = OpCompositeConstruct %22 %14 %14
|
|
%68 = OpCompositeConstruct %22 %15 %15
|
|
%69 = OpCompositeConstruct %23 %67 %68
|
|
%70 = OpAccessChain %46 %27 %15
|
|
OpStore %70 %69
|
|
%71 = OpConvertFToS %4 %52
|
|
%72 = OpCompositeConstruct %26 %58 %71 %17 %18 %16
|
|
OpStore %31 %72
|
|
%73 = OpIAdd %9 %36 %15
|
|
%75 = OpAccessChain %74 %31 %73
|
|
OpStore %75 %19
|
|
%76 = OpAccessChain %74 %31 %36
|
|
%77 = OpLoad %4 %76
|
|
%79 = OpCompositeConstruct %78 %77 %77 %77 %77
|
|
%80 = OpConvertSToF %21 %79
|
|
%81 = OpMatrixTimesVector %21 %45 %80
|
|
OpStore %37 %81
|
|
OpReturn
|
|
OpFunctionEnd |