50 lines
1.6 KiB
Plaintext
50 lines
1.6 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.3
|
|
; Generator: Google Tint Compiler; 0
|
|
; Bound: 21
|
|
; Schema: 0
|
|
OpCapability Shader
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint GLCompute %main "main"
|
|
OpExecutionMode %main LocalSize 1 1 1
|
|
OpName %x_block "x_block"
|
|
OpMemberName %x_block 0 "inner"
|
|
OpName %x "x"
|
|
OpName %main "main"
|
|
OpDecorate %x_block Block
|
|
OpMemberDecorate %x_block 0 Offset 0
|
|
OpDecorate %x NonWritable
|
|
OpDecorate %x DescriptorSet 0
|
|
OpDecorate %x Binding 0
|
|
%int = OpTypeInt 32 1
|
|
%x_block = OpTypeStruct %int
|
|
%_ptr_Uniform_x_block = OpTypePointer Uniform %x_block
|
|
%x = OpVariable %_ptr_Uniform_x_block Uniform
|
|
%void = OpTypeVoid
|
|
%5 = OpTypeFunction %void
|
|
%uint = OpTypeInt 32 0
|
|
%uint_0 = OpConstant %uint 0
|
|
%_ptr_Uniform_int = OpTypePointer Uniform %int
|
|
%main = OpFunction %void None %5
|
|
%8 = OpLabel
|
|
%13 = OpAccessChain %_ptr_Uniform_int %x %uint_0
|
|
%14 = OpLoad %int %13
|
|
OpSelectionMerge %9 None
|
|
OpSwitch %14 %15 0 %16
|
|
%16 = OpLabel
|
|
OpBranch %17
|
|
%17 = OpLabel
|
|
OpLoopMerge %18 %19 None
|
|
OpBranch %20
|
|
%20 = OpLabel
|
|
OpReturn
|
|
%19 = OpLabel
|
|
OpBranch %17
|
|
%18 = OpLabel
|
|
OpBranch %9
|
|
%15 = OpLabel
|
|
OpBranch %9
|
|
%9 = OpLabel
|
|
OpReturn
|
|
OpFunctionEnd
|