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