mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-22 15:31:03 +01:00
99 lines
2.5 KiB
Plaintext
99 lines
2.5 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.1
|
|
; Generator: rspirv
|
|
; Bound: 51
|
|
OpCapability Shader
|
|
%1 = OpExtInstImport "GLSL.std.450"
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint Vertex %28 "vertex" %26
|
|
OpMemberName %5 0 "a"
|
|
OpName %5 "S"
|
|
OpMemberName %6 0 "a"
|
|
OpMemberName %6 1 "b"
|
|
OpName %6 "Test"
|
|
OpMemberName %10 0 "a"
|
|
OpMemberName %10 1 "b"
|
|
OpName %10 "Test2"
|
|
OpMemberName %12 0 "a"
|
|
OpMemberName %12 1 "b"
|
|
OpName %12 "Test3"
|
|
OpName %16 "input1"
|
|
OpName %19 "input2"
|
|
OpName %22 "input3"
|
|
OpName %28 "vertex"
|
|
OpMemberDecorate %5 0 Offset 0
|
|
OpMemberDecorate %6 0 Offset 0
|
|
OpMemberDecorate %6 1 Offset 16
|
|
OpDecorate %7 ArrayStride 16
|
|
OpMemberDecorate %10 0 Offset 0
|
|
OpMemberDecorate %10 1 Offset 32
|
|
OpMemberDecorate %12 0 Offset 0
|
|
OpMemberDecorate %12 0 ColMajor
|
|
OpMemberDecorate %12 0 MatrixStride 16
|
|
OpMemberDecorate %12 1 Offset 64
|
|
OpDecorate %16 DescriptorSet 0
|
|
OpDecorate %16 Binding 0
|
|
OpDecorate %17 Block
|
|
OpMemberDecorate %17 0 Offset 0
|
|
OpDecorate %19 DescriptorSet 0
|
|
OpDecorate %19 Binding 1
|
|
OpDecorate %20 Block
|
|
OpMemberDecorate %20 0 Offset 0
|
|
OpDecorate %22 DescriptorSet 0
|
|
OpDecorate %22 Binding 2
|
|
OpDecorate %23 Block
|
|
OpMemberDecorate %23 0 Offset 0
|
|
OpDecorate %26 BuiltIn Position
|
|
%2 = OpTypeVoid
|
|
%4 = OpTypeFloat 32
|
|
%3 = OpTypeVector %4 3
|
|
%5 = OpTypeStruct %3
|
|
%6 = OpTypeStruct %5 %4
|
|
%9 = OpTypeInt 32 0
|
|
%8 = OpConstant %9 2
|
|
%7 = OpTypeArray %3 %8
|
|
%10 = OpTypeStruct %7 %4
|
|
%11 = OpTypeMatrix %3 4
|
|
%12 = OpTypeStruct %11 %4
|
|
%13 = OpTypeVector %4 4
|
|
%15 = OpTypeInt 32 1
|
|
%14 = OpConstant %15 2
|
|
%17 = OpTypeStruct %6
|
|
%18 = OpTypePointer Uniform %17
|
|
%16 = OpVariable %18 Uniform
|
|
%20 = OpTypeStruct %10
|
|
%21 = OpTypePointer Uniform %20
|
|
%19 = OpVariable %21 Uniform
|
|
%23 = OpTypeStruct %12
|
|
%24 = OpTypePointer Uniform %23
|
|
%22 = OpVariable %24 Uniform
|
|
%27 = OpTypePointer Output %13
|
|
%26 = OpVariable %27 Output
|
|
%29 = OpTypeFunction %2
|
|
%30 = OpTypePointer Uniform %6
|
|
%31 = OpConstant %9 0
|
|
%33 = OpTypePointer Uniform %10
|
|
%35 = OpTypePointer Uniform %12
|
|
%37 = OpConstant %4 1.0
|
|
%40 = OpTypePointer Uniform %4
|
|
%41 = OpConstant %9 1
|
|
%28 = OpFunction %2 None %29
|
|
%25 = OpLabel
|
|
%32 = OpAccessChain %30 %16 %31
|
|
%34 = OpAccessChain %33 %19 %31
|
|
%36 = OpAccessChain %35 %22 %31
|
|
OpBranch %38
|
|
%38 = OpLabel
|
|
%39 = OpCompositeConstruct %13 %37 %37 %37 %37
|
|
%42 = OpAccessChain %40 %32 %41
|
|
%43 = OpLoad %4 %42
|
|
%44 = OpVectorTimesScalar %13 %39 %43
|
|
%45 = OpAccessChain %40 %34 %41
|
|
%46 = OpLoad %4 %45
|
|
%47 = OpVectorTimesScalar %13 %44 %46
|
|
%48 = OpAccessChain %40 %36 %41
|
|
%49 = OpLoad %4 %48
|
|
%50 = OpVectorTimesScalar %13 %47 %49
|
|
OpStore %26 %50
|
|
OpReturn
|
|
OpFunctionEnd |