Files
wgpu/tests/out/spv/workgroup-uniform-load.spvasm
T

66 lines
1.5 KiB
Plaintext

; SPIR-V
; Version: 1.1
; Generator: rspirv
; Bound: 40
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %14 "test_workgroupUniformLoad" %11 %19
OpExecutionMode %14 LocalSize 4 1 1
OpDecorate %5 ArrayStride 4
OpDecorate %11 BuiltIn WorkgroupId
OpDecorate %19 BuiltIn LocalInvocationId
%2 = OpTypeVoid
%3 = OpTypeInt 32 0
%4 = OpTypeInt 32 1
%6 = OpConstant %3 128
%5 = OpTypeArray %4 %6
%7 = OpTypeVector %3 3
%9 = OpTypePointer Workgroup %5
%8 = OpVariable %9 Workgroup
%12 = OpTypePointer Input %7
%11 = OpVariable %12 Input
%15 = OpTypeFunction %2
%16 = OpConstant %4 10
%18 = OpConstantNull %5
%20 = OpTypePointer Input %7
%19 = OpVariable %20 Input
%22 = OpConstantNull %7
%24 = OpTypeBool
%23 = OpTypeVector %24 3
%29 = OpConstant %3 2
%30 = OpConstant %3 264
%33 = OpTypePointer Workgroup %4
%14 = OpFunction %2 None %15
%10 = OpLabel
%13 = OpLoad %7 %11
OpBranch %17
%17 = OpLabel
%21 = OpLoad %7 %19
%25 = OpIEqual %23 %21 %22
%26 = OpAll %24 %25
OpSelectionMerge %27 None
OpBranchConditional %26 %28 %27
%28 = OpLabel
OpStore %8 %18
OpBranch %27
%27 = OpLabel
OpControlBarrier %29 %29 %30
OpBranch %31
%31 = OpLabel
%32 = OpCompositeExtract %3 %13 0
OpControlBarrier %29 %29 %30
%34 = OpAccessChain %33 %8 %32
%35 = OpLoad %4 %34
OpControlBarrier %29 %29 %30
%36 = OpSGreaterThan %24 %35 %16
OpSelectionMerge %37 None
OpBranchConditional %36 %38 %39
%38 = OpLabel
OpControlBarrier %29 %29 %30
OpReturn
%39 = OpLabel
OpReturn
%37 = OpLabel
OpReturn
OpFunctionEnd