blob: 9c7a9a4715f9c95188b77c9100624ee3b12532d9 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 20
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main"
OpExecutionMode %main OriginUpperLeft
OpName %weights_block "weights_block"
OpMemberName %weights_block 0 "inner"
OpName %weights "weights"
OpName %main "main"
OpName %a "a"
OpDecorate %weights_block Block
OpMemberDecorate %weights_block 0 Offset 0
OpDecorate %weights NonWritable
OpDecorate %weights DescriptorSet 0
OpDecorate %weights Binding 0
%float = OpTypeFloat 32
%v2float = OpTypeVector %float 2
%weights_block = OpTypeStruct %v2float
%_ptr_Uniform_weights_block = OpTypePointer Uniform %weights_block
%weights = OpVariable %_ptr_Uniform_weights_block Uniform
%void = OpTypeVoid
%6 = OpTypeFunction %void
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%int = OpTypeInt 32 1
%13 = OpConstantNull %int
%_ptr_Uniform_float = OpTypePointer Uniform %float
%_ptr_Function_float = OpTypePointer Function %float
%19 = OpConstantNull %float
%main = OpFunction %void None %6
%9 = OpLabel
%a = OpVariable %_ptr_Function_float Function %19
%15 = OpAccessChain %_ptr_Uniform_float %weights %uint_0 %13
%16 = OpLoad %float %15
OpStore %a %16
OpReturn
OpFunctionEnd