Debian Codegraph @

third_party/spirv-cross/shaders-hlsl/asm/frag/cbuffer-stripped.asm.frag

raw
1 ; SPIR-V
2 ; Version: 1.0
3 ; Generator: Khronos Glslang Reference Front End; 1
4 ; Bound: 34
5 ; Schema: 0
6 OpCapability Shader
7 %1 = OpExtInstImport "GLSL.std.450"
8 OpMemoryModel Logical GLSL450
9 OpEntryPoint Fragment %main "main" %_entryPointOutput
10 OpExecutionMode %main OriginUpperLeft
11 OpSource HLSL 500
12 OpMemberDecorate %UBO 0 RowMajor
13 OpMemberDecorate %UBO 0 Offset 0
14 OpMemberDecorate %UBO 0 MatrixStride 16
15 OpMemberDecorate %UBO 1 Offset 64
16 OpDecorate %UBO Block
17 OpDecorate %_ DescriptorSet 0
18 OpDecorate %_ Binding 0
19 OpDecorate %_entryPointOutput Location 0
20 %void = OpTypeVoid
21 %3 = OpTypeFunction %void
22 %float = OpTypeFloat 32
23 %v2float = OpTypeVector %float 2
24 %8 = OpTypeFunction %v2float
25 %_ptr_Function_v2float = OpTypePointer Function %v2float
26 %v4float = OpTypeVector %float 4
27 %mat2v4float = OpTypeMatrix %v4float 2
28 %UBO = OpTypeStruct %mat2v4float %v4float
29 %_ptr_Uniform_UBO = OpTypePointer Uniform %UBO
30 %_ = OpVariable %_ptr_Uniform_UBO Uniform
31 %int = OpTypeInt 32 1
32 %int_1 = OpConstant %int 1
33 %_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
34 %int_0 = OpConstant %int 0
35 %_ptr_Uniform_mat2v4float = OpTypePointer Uniform %mat2v4float
36 %_ptr_Output_v2float = OpTypePointer Output %v2float
37 %_entryPointOutput = OpVariable %_ptr_Output_v2float Output
38 %main = OpFunction %void None %3
39 %5 = OpLabel
40 %33 = OpFunctionCall %v2float %_main_
41 OpStore %_entryPointOutput %33
42 OpReturn
43 OpFunctionEnd
44 %_main_ = OpFunction %v2float None %8
45 %10 = OpLabel
46 %a0 = OpVariable %_ptr_Function_v2float Function
47 %21 = OpAccessChain %_ptr_Uniform_v4float %_ %int_1
48 %22 = OpLoad %v4float %21
49 %25 = OpAccessChain %_ptr_Uniform_mat2v4float %_ %int_0
50 %26 = OpLoad %mat2v4float %25
51 %27 = OpVectorTimesMatrix %v2float %22 %26
52 OpStore %a0 %27
53 %28 = OpLoad %v2float %a0
54 OpReturnValue %28
55 OpFunctionEnd