mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-24 08:21:25 +01:00
69 lines
1.8 KiB
Plaintext
69 lines
1.8 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.0
|
|
; Generator: rspirv
|
|
; Bound: 44
|
|
OpCapability Shader
|
|
%1 = OpExtInstImport "GLSL.std.450"
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint Vertex %32 "vertex_two_structs" %21 %25 %27 %29
|
|
OpMemberDecorate %7 0 Offset 0
|
|
OpMemberDecorate %7 1 Offset 16
|
|
OpMemberDecorate %9 0 Offset 0
|
|
OpMemberDecorate %9 1 Offset 4
|
|
OpMemberDecorate %9 2 Offset 8
|
|
OpDecorate %11 ArrayStride 4
|
|
OpMemberDecorate %14 0 Offset 0
|
|
OpMemberDecorate %15 0 Offset 0
|
|
OpDecorate %21 BuiltIn VertexIndex
|
|
OpDecorate %25 BuiltIn InstanceIndex
|
|
OpDecorate %27 Invariant
|
|
OpDecorate %27 BuiltIn Position
|
|
OpDecorate %29 BuiltIn PointSize
|
|
%2 = OpTypeVoid
|
|
%4 = OpTypeInt 32 1
|
|
%3 = OpConstant %4 1
|
|
%6 = OpTypeFloat 32
|
|
%5 = OpTypeVector %6 4
|
|
%7 = OpTypeStruct %5 %6
|
|
%8 = OpTypeInt 32 0
|
|
%9 = OpTypeStruct %6 %8 %6
|
|
%10 = OpTypeBool
|
|
%12 = OpConstant %8 1
|
|
%11 = OpTypeArray %8 %12
|
|
%13 = OpTypeVector %8 3
|
|
%14 = OpTypeStruct %8
|
|
%15 = OpTypeStruct %8
|
|
%17 = OpTypePointer Function %8
|
|
%18 = OpConstantNull %8
|
|
%22 = OpTypePointer Input %8
|
|
%21 = OpVariable %22 Input
|
|
%25 = OpVariable %22 Input
|
|
%28 = OpTypePointer Output %5
|
|
%27 = OpVariable %28 Output
|
|
%30 = OpTypePointer Output %6
|
|
%29 = OpVariable %30 Output
|
|
%31 = OpConstant %6 1.0
|
|
%33 = OpTypeFunction %2
|
|
%34 = OpConstant %8 2
|
|
%35 = OpConstant %6 0.0
|
|
%32 = OpFunction %2 None %33
|
|
%19 = OpLabel
|
|
%16 = OpVariable %17 Function %18
|
|
%23 = OpLoad %8 %21
|
|
%20 = OpCompositeConstruct %14 %23
|
|
%26 = OpLoad %8 %25
|
|
%24 = OpCompositeConstruct %15 %26
|
|
OpStore %29 %31
|
|
OpBranch %36
|
|
%36 = OpLabel
|
|
OpStore %16 %34
|
|
%37 = OpCompositeExtract %8 %20 0
|
|
%38 = OpConvertUToF %6 %37
|
|
%39 = OpCompositeExtract %8 %24 0
|
|
%40 = OpConvertUToF %6 %39
|
|
%41 = OpLoad %8 %16
|
|
%42 = OpConvertUToF %6 %41
|
|
%43 = OpCompositeConstruct %5 %38 %40 %42 %35
|
|
OpStore %27 %43
|
|
OpReturn
|
|
OpFunctionEnd |