blob: d502ddabf49ade7d34ebe224c683fe8b7e881088 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 49
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main"
OpExecutionMode %main OriginUpperLeft
OpName %x_B4_BuildInformation "x_B4_BuildInformation"
OpMemberName %x_B4_BuildInformation 0 "passthru"
OpName %sspp962805860buildInformationS "sspp962805860buildInformationS"
OpMemberName %sspp962805860buildInformationS 0 "footprint"
OpMemberName %sspp962805860buildInformationS 1 "offset"
OpMemberName %sspp962805860buildInformationS 2 "essence"
OpMemberName %sspp962805860buildInformationS 3 "orientation"
OpName %sspp962805860buildInformation "sspp962805860buildInformation"
OpName %main_1 "main_1"
OpName %orientation "orientation"
OpName %main "main"
OpDecorate %x_B4_BuildInformation Block
OpMemberDecorate %x_B4_BuildInformation 0 Offset 0
OpMemberDecorate %sspp962805860buildInformationS 0 Offset 0
OpMemberDecorate %sspp962805860buildInformationS 1 Offset 16
OpMemberDecorate %sspp962805860buildInformationS 2 Offset 32
OpMemberDecorate %sspp962805860buildInformationS 3 Offset 36
OpDecorate %_arr_int_uint_6 ArrayStride 4
OpDecorate %sspp962805860buildInformation NonWritable
OpDecorate %sspp962805860buildInformation DescriptorSet 0
OpDecorate %sspp962805860buildInformation Binding 2
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%int = OpTypeInt 32 1
%uint = OpTypeInt 32 0
%uint_6 = OpConstant %uint 6
%_arr_int_uint_6 = OpTypeArray %int %uint_6
%sspp962805860buildInformationS = OpTypeStruct %v4float %v4float %int %_arr_int_uint_6
%x_B4_BuildInformation = OpTypeStruct %sspp962805860buildInformationS
%_ptr_StorageBuffer_x_B4_BuildInformation = OpTypePointer StorageBuffer %x_B4_BuildInformation
%sspp962805860buildInformation = OpVariable %_ptr_StorageBuffer_x_B4_BuildInformation StorageBuffer
%void = OpTypeVoid
%11 = OpTypeFunction %void
%_ptr_Function__arr_int_uint_6 = OpTypePointer Function %_arr_int_uint_6
%17 = OpConstantNull %_arr_int_uint_6
%uint_0 = OpConstant %uint 0
%uint_3 = OpConstant %uint 3
%_ptr_StorageBuffer__arr_int_uint_6 = OpTypePointer StorageBuffer %_arr_int_uint_6
%int_0 = OpConstant %int 0
%_ptr_Function_int = OpTypePointer Function %int
%int_1 = OpConstant %int 1
%uint_1 = OpConstant %uint 1
%int_2 = OpConstant %int 2
%uint_2 = OpConstant %uint 2
%int_3 = OpConstant %int 3
%int_4 = OpConstant %int 4
%uint_4 = OpConstant %uint 4
%int_5 = OpConstant %int 5
%uint_5 = OpConstant %uint 5
%main_1 = OpFunction %void None %11
%14 = OpLabel
%orientation = OpVariable %_ptr_Function__arr_int_uint_6 Function %17
%21 = OpAccessChain %_ptr_StorageBuffer__arr_int_uint_6 %sspp962805860buildInformation %uint_0 %uint_3
%22 = OpLoad %_arr_int_uint_6 %21
%25 = OpAccessChain %_ptr_Function_int %orientation %int_0
%26 = OpCompositeExtract %int %22 0
OpStore %25 %26
%28 = OpAccessChain %_ptr_Function_int %orientation %int_1
%30 = OpCompositeExtract %int %22 1
OpStore %28 %30
%32 = OpAccessChain %_ptr_Function_int %orientation %int_2
%34 = OpCompositeExtract %int %22 2
OpStore %32 %34
%36 = OpAccessChain %_ptr_Function_int %orientation %int_3
%37 = OpCompositeExtract %int %22 3
OpStore %36 %37
%39 = OpAccessChain %_ptr_Function_int %orientation %int_4
%41 = OpCompositeExtract %int %22 4
OpStore %39 %41
%43 = OpAccessChain %_ptr_Function_int %orientation %int_5
%45 = OpCompositeExtract %int %22 5
OpStore %43 %45
OpReturn
OpFunctionEnd
%main = OpFunction %void None %11
%47 = OpLabel
%48 = OpFunctionCall %void %main_1
OpReturn
OpFunctionEnd