Ryan Harrison dbc13af287 tint->dawn: Shuffle source tree in preperation of merging repos
docs/    -> docs/tint/
fuzzers/ -> src/tint/fuzzers/
samples/ -> src/tint/cmd/
src/     -> src/tint/
test/    -> test/tint/

BUG=tint:1418,tint:1433

Change-Id: Id2aa79f989aef3245b80ef4aa37a27ff16cd700b
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/80482
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
2022-02-21 15:19:07 +00:00

69 lines
2.8 KiB
Plaintext

OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %_GLF_color
OpExecutionMode %main OriginUpperLeft
OpSource ESSL 310
OpName %main "main"
OpName %buf0 "buf0"
OpMemberName %buf0 0 "_GLF_uniform_int_values"
OpName %_ ""
OpName %_GLF_color "_GLF_color"
OpDecorate %_arr_int_uint_2 ArrayStride 16
OpMemberDecorate %buf0 0 Offset 0
OpDecorate %buf0 Block
OpDecorate %_ DescriptorSet 0
OpDecorate %_ Binding 0
OpDecorate %_GLF_color Location 0
%void = OpTypeVoid
%8 = OpTypeFunction %void
%int = OpTypeInt 32 1
%int_1 = OpConstant %int 1
%uint = OpTypeInt 32 0
%uint_2 = OpConstant %uint 2
%_arr_int_uint_2 = OpTypeArray %int %uint_2
%buf0 = OpTypeStruct %_arr_int_uint_2
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
%_ = OpVariable %_ptr_Uniform_buf0 Uniform
%int_0 = OpConstant %int 0
%_ptr_Uniform_int = OpTypePointer Uniform %int
%bool = OpTypeBool
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%_GLF_color = OpVariable %_ptr_Output_v4float Output
%main = OpFunction %void None %8
%20 = OpLabel
%21 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_0
%22 = OpLoad %int %21
%23 = OpShiftRightArithmetic %int %int_1 %22
%24 = OpSGreaterThan %bool %23 %int_0
OpSelectionMerge %25 None
OpBranchConditional %24 %26 %27
%26 = OpLabel
%28 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_1
%29 = OpLoad %int %28
%30 = OpConvertSToF %float %29
%31 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_0
%32 = OpLoad %int %31
%33 = OpConvertSToF %float %32
%34 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_0
%35 = OpLoad %int %34
%36 = OpConvertSToF %float %35
%37 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_1
%38 = OpLoad %int %37
%39 = OpConvertSToF %float %38
%40 = OpCompositeConstruct %v4float %30 %33 %36 %39
OpStore %_GLF_color %40
OpBranch %25
%27 = OpLabel
%41 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_0
%42 = OpLoad %int %41
%43 = OpConvertSToF %float %42
%44 = OpCompositeConstruct %v4float %43 %43 %43 %43
OpStore %_GLF_color %44
OpBranch %25
%25 = OpLabel
OpReturn
OpFunctionEnd