Skip to content

Instantly share code, notes, and snippets.

@metora
Created August 16, 2017 11:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save metora/fc8533773354fdcc657d6dd46a093309 to your computer and use it in GitHub Desktop.
Save metora/fc8533773354fdcc657d6dd46a093309 to your computer and use it in GitHub Desktop.
; SPIR-V
; Version: 1.0
; Generator: Khronos Glslang Reference Front End; 1
; Bound: 80
; Schema: 0
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %18 "main" %11 %13 %15
OpSource GLSL 450
OpName %7 "Global0"
OpName %9 ""
OpMemberName %7 0 "g_World"
OpMemberName %7 1 "g_ViewProj"
OpName %11 "Position"
OpName %13 "UVSet0"
OpName %15 "VaryUVSet0"
OpName %18 "main"
OpName %21 "ProjPos"
OpName %23 "mat_ctor"
OpName %42 "vec_ctor"
OpName %49 "mat_ctor_1"
OpName %72 "gl_PerVertex"
OpMemberName %72 0 "gl_Position"
OpDecorate %7 Block
OpDecorate %9 DescriptorSet 0
OpDecorate %9 Binding 0
OpMemberDecorate %7 0 ColMajor
OpMemberDecorate %7 0 Offset 0
OpMemberDecorate %7 0 MatrixStride 16
OpMemberDecorate %7 1 ColMajor
OpMemberDecorate %7 1 Offset 64
OpMemberDecorate %7 1 MatrixStride 16
OpDecorate %11 Location 0
OpDecorate %13 Location 1
OpDecorate %15 Location 0
OpDecorate %72 Block
OpMemberDecorate %72 0 BuiltIn Position
%2 = OpTypeFloat 32
%3 = OpTypeVector %2 4
%4 = OpTypeMatrix %3 4
%5 = OpTypeVector %2 3
%6 = OpTypeVector %2 2
%7 = OpTypeStruct %4 %4
%8 = OpTypePointer Uniform %7
%9 = OpVariable %8 Uniform
%10 = OpTypePointer Input %5
%11 = OpVariable %10 Input
%12 = OpTypePointer Input %6
%13 = OpVariable %12 Input
%14 = OpTypePointer Output %6
%15 = OpVariable %14 Output
%16 = OpTypeVoid
%17 = OpTypeFunction %16
%20 = OpTypePointer Function %3
%22 = OpTypePointer Function %4
%24 = OpTypeInt 32 1
%25 = OpConstant %24 0
%29 = OpConstant %24 1
%33 = OpConstant %24 2
%37 = OpConstant %24 3
%41 = OpTypePointer Function %3
%43 = OpConstant %2 1
%44 = OpTypePointer Function %2
%70 = OpTypePointer Function %2
%74 = OpTypePointer Output %3
%72 = OpTypeStruct %3
%73 = OpTypePointer Output %72
%75 = OpVariable %73 Output
%76 = OpConstant %24 0
%18 = OpFunction %16 None %17
%19 = OpLabel
%21 = OpVariable %20 Function
%23 = OpVariable %22 Function
%26 = OpAccessChain %20 %9 %25 %25
%27 = OpAccessChain %20 %23 %25
%28 = OpLoad %3 %26
OpStore %27 %28
%30 = OpAccessChain %20 %9 %25 %29
%31 = OpAccessChain %20 %23 %29
%32 = OpLoad %3 %30
OpStore %31 %32
%34 = OpAccessChain %20 %9 %25 %33
%35 = OpAccessChain %20 %23 %33
%36 = OpLoad %3 %34
OpStore %35 %36
%38 = OpAccessChain %20 %9 %25 %37
%39 = OpAccessChain %20 %23 %37
%40 = OpLoad %3 %38
OpStore %39 %40
%42 = OpVariable %41 Function
%45 = OpAccessChain %44 %42 %37
OpStore %45 %43
%46 = OpLoad %5 %11
%47 = OpLoad %3 %42
%48 = OpVectorShuffle %3 %47 %46 4 5 6 3
OpStore %42 %48
%49 = OpVariable %22 Function
%50 = OpAccessChain %20 %9 %29 %25
%51 = OpAccessChain %20 %49 %25
%52 = OpLoad %3 %50
OpStore %51 %52
%53 = OpAccessChain %20 %9 %29 %29
%54 = OpAccessChain %20 %49 %29
%55 = OpLoad %3 %53
OpStore %54 %55
%56 = OpAccessChain %20 %9 %29 %33
%57 = OpAccessChain %20 %49 %33
%58 = OpLoad %3 %56
OpStore %57 %58
%59 = OpAccessChain %20 %9 %29 %37
%60 = OpAccessChain %20 %49 %37
%61 = OpLoad %3 %59
OpStore %60 %61
%62 = OpLoad %4 %49
%63 = OpLoad %4 %23
%64 = OpLoad %3 %42
%65 = OpFMul %3 %63 %64
%66 = OpFMul %3 %62 %65
OpStore %21 %66
%67 = OpLoad %3 %21
%68 = OpCompositeExtract %2 %67 1
%69 = OpFNegate %2 %68
%71 = OpAccessChain %70 %21 %29
OpStore %71 %69
%77 = OpAccessChain %74 %75 %76
%78 = OpLoad %3 %21
OpStore %77 %78
%79 = OpLoad %6 %13
OpStore %15 %79
OpReturn
OpFunctionEnd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment