Debian Codegraph @

third_party/spirv-cross/shaders-no-opt/asm/vert/semantic-decoration.asm.vert

raw
1 ; SPIR-V
2 ; Version: 1.0
3 ; Generator: Khronos Glslang Reference Front End; 6
4 ; Bound: 36
5 ; Schema: 0
6 OpCapability Shader
7 OpExtension "SPV_GOOGLE_decorate_string"
8 OpExtension "SPV_GOOGLE_hlsl_functionality1"
9 %1 = OpExtInstImport "GLSL.std.450"
10 OpMemoryModel Logical GLSL450
11 OpEntryPoint Vertex %main "main" %_entryPointOutput_p %_entryPointOutput_c
12 OpSource HLSL 500
13 OpName %main "main"
14 OpName %VOut "VOut"
15 OpMemberName %VOut 0 "p"
16 OpMemberName %VOut 1 "c"
17 OpName %_main_ "@main("
18 OpName %v "v"
19 OpName %flattenTemp "flattenTemp"
20 OpName %_entryPointOutput_p "@entryPointOutput.p"
21 OpName %_entryPointOutput_c "@entryPointOutput.c"
22 OpMemberDecorateStringGOOGLE %VOut 0 HlslSemanticGOOGLE "SV_POSITION"
23 OpMemberDecorateStringGOOGLE %VOut 1 HlslSemanticGOOGLE "COLOR"
24 OpDecorate %_entryPointOutput_p BuiltIn Position
25 OpDecorateStringGOOGLE %_entryPointOutput_p HlslSemanticGOOGLE "SV_POSITION"
26 OpDecorate %_entryPointOutput_c Location 0
27 OpDecorateStringGOOGLE %_entryPointOutput_c HlslSemanticGOOGLE "COLOR"
28 %void = OpTypeVoid
29 %3 = OpTypeFunction %void
30 %float = OpTypeFloat 32
31 %v4float = OpTypeVector %float 4
32 %VOut = OpTypeStruct %v4float %v4float
33 %9 = OpTypeFunction %VOut
34 %_ptr_Function_VOut = OpTypePointer Function %VOut
35 %int = OpTypeInt 32 1
36 %int_0 = OpConstant %int 0
37 %float_1 = OpConstant %float 1
38 %17 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1
39 %_ptr_Function_v4float = OpTypePointer Function %v4float
40 %int_1 = OpConstant %int 1
41 %float_2 = OpConstant %float 2
42 %22 = OpConstantComposite %v4float %float_2 %float_2 %float_2 %float_2
43 %_ptr_Output_v4float = OpTypePointer Output %v4float
44 %_entryPointOutput_p = OpVariable %_ptr_Output_v4float Output
45 %_entryPointOutput_c = OpVariable %_ptr_Output_v4float Output
46 %main = OpFunction %void None %3
47 %5 = OpLabel
48 %flattenTemp = OpVariable %_ptr_Function_VOut Function
49 %28 = OpFunctionCall %VOut %_main_
50 OpStore %flattenTemp %28
51 %31 = OpAccessChain %_ptr_Function_v4float %flattenTemp %int_0
52 %32 = OpLoad %v4float %31
53 OpStore %_entryPointOutput_p %32
54 %34 = OpAccessChain %_ptr_Function_v4float %flattenTemp %int_1
55 %35 = OpLoad %v4float %34
56 OpStore %_entryPointOutput_c %35
57 OpReturn
58 OpFunctionEnd
59 %_main_ = OpFunction %VOut None %9
60 %11 = OpLabel
61 %v = OpVariable %_ptr_Function_VOut Function
62 %19 = OpAccessChain %_ptr_Function_v4float %v %int_0
63 OpStore %19 %17
64 %23 = OpAccessChain %_ptr_Function_v4float %v %int_1
65 OpStore %23 %22
66 %24 = OpLoad %VOut %v
67 OpReturnValue %24
68 OpFunctionEnd