Files
SPIRV-Interpreter/example/shader.spv.txt
Kbz-8 0f35c35fd1
All checks were successful
Build / build (push) Successful in 1m36s
Test / build (push) Successful in 5m51s
ye
2026-01-18 23:17:26 +01:00

89 lines
2.6 KiB
Plaintext

Version 1.0
Generator: 2560130
Bound: 51
Schema: 0
OpCapability Capability(Shader)
OpMemoryModel AddressingModel(Logical) MemoryModel(GLSL450)
OpEntryPoint ExecutionModel(Fragment) %20 "main" %11 %12
OpExecutionMode %20 ExecutionMode(OriginUpperLeft)
OpSource SourceLanguage(NZSL) 4198400
OpSourceExtension "Version: 1.1"
OpName %13 "FragOut"
OpMemberName %13 0 "value"
OpMemberName %13 1 "value2"
OpName %11 "value"
OpName %12 "value2"
OpName %19 "Half"
OpName %20 "main"
OpDecorate %11 Decoration(Location) 0
OpDecorate %12 Decoration(Location) 1
OpMemberDecorate %13 0 Decoration(Offset) 0
OpMemberDecorate %13 1 Decoration(Offset) 4
%1 = OpTypeVoid
%2 = OpTypeFloat 32
%3 = OpTypeVector %2 3
%4 = OpTypePointer StorageClass(Function) %3
%5 = OpTypePointer StorageClass(Function) %2
%6 = OpTypeFunction %1 %4 %5 %5 %5
%7 = OpConstant %2 f32(2)
%8 = OpConstant %2 f32(10)
%9 = OpTypeFunction %1
%10 = OpTypePointer StorageClass(Output) %2
%13 = OpTypeStruct %2 %2
%14 = OpTypePointer StorageClass(Function) %13
%15 = OpConstant %2 f32(1)
%16 = OpTypeInt 32 1
%17 = OpConstant %16 i32(1)
%18 = OpConstant %16 i32(0)
%11 = OpVariable %10 StorageClass(Output)
%12 = OpVariable %10 StorageClass(Output)
%19 = OpFunction %1 FunctionControl(0) %6
%21 = OpFunctionParameter %4
%22 = OpFunctionParameter %5
%23 = OpFunctionParameter %5
%24 = OpFunctionParameter %5
%25 = OpLabel
%26 = OpLoad %3 %21
%27 = OpVectorTimesScalar %3 %26 %7
OpStore %21 %27
OpStore %22 %8
OpReturn
OpFunctionEnd
%20 = OpFunction %1 FunctionControl(0) %9
%28 = OpLabel
%29 = OpVariable %14 StorageClass(Function)
%30 = OpVariable %4 StorageClass(Function)
%31 = OpVariable %5 StorageClass(Function)
%32 = OpVariable %5 StorageClass(Function)
%33 = OpVariable %4 StorageClass(Function)
%34 = OpVariable %5 StorageClass(Function)
%35 = OpVariable %5 StorageClass(Function)
%36 = OpVariable %5 StorageClass(Function)
%37 = OpCompositeConstruct %3 %15 %15 %15
OpStore %30 %37
OpStore %31 %7
OpStore %32 %15
%38 = OpLoad %3 %30
OpStore %33 %38
%39 = OpLoad %2 %31
OpStore %35 %39
%40 = OpLoad %2 %32
OpStore %36 %40
%41 = OpFunctionCall %1 %19 %33 %34 %35 %36
%42 = OpLoad %3 %33
OpStore %30 %42
%43 = OpLoad %2 %34
%44 = OpAccessChain %5 %29 %17
OpStore %44 %43
%45 = OpLoad %3 %30
%46 = OpCompositeExtract %2 %45 0
%47 = OpAccessChain %5 %29 %18
OpStore %47 %46
%48 = OpLoad %13 %29
%49 = OpCompositeExtract %2 %48 0
OpStore %11 %49
%50 = OpCompositeExtract %2 %48 1
OpStore %12 %50
OpReturn
OpFunctionEnd