Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- OpCapability Shader
- OpCapability ImageQuery
- OpCapability StorageImageReadWithoutFormat
- OpCapability StorageImageWriteWithoutFormat
- %1 = OpExtInstImport "GLSL.std.450"
- OpMemoryModel Logical GLSL450
- OpEntryPoint GLCompute %main "main" %vThreadId
- OpExecutionMode %main LocalSize 32 16 1
- OpName %s0 "s0"
- OpName %t0 "t0"
- OpName %t0_bound "t0_bound"
- OpName %u0 "u0"
- OpName %u0_bound "u0_bound"
- OpName %vThreadId "vThreadId"
- OpName %main "main"
- OpDecorate %s0 DescriptorSet 0
- OpDecorate %s0 Binding 824
- OpDecorate %t0 DescriptorSet 0
- OpDecorate %t0 Binding 840
- OpDecorate %t0_bound SpecId 840
- OpDecorate %u0 DescriptorSet 0
- OpDecorate %u0 Binding 968
- OpDecorate %u0_bound SpecId 968
- OpDecorate %vThreadId BuiltIn GlobalInvocationId
- %void = OpTypeVoid
- %5 = OpTypeFunction %void
- %7 = OpTypeSampler
- %_ptr_UniformConstant_7 = OpTypePointer UniformConstant %7
- %float = OpTypeFloat 32
- %11 = OpTypeImage %float 2D 0 0 0 1 Unknown
- %_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
- %bool = OpTypeBool
- %t0_bound = OpSpecConstantTrue %bool
- %16 = OpTypeImage %float 2D 1 0 0 1 Unknown
- %17 = OpTypeImage %float 2D 0 0 0 2 Unknown
- %_ptr_UniformConstant_17 = OpTypePointer UniformConstant %17
- %u0_bound = OpSpecConstantTrue %bool
- %uint = OpTypeInt 32 0
- %v3uint = OpTypeVector %uint 3
- %_ptr_Input_v3uint = OpTypePointer Input %v3uint
- %v4float = OpTypeVector %float 4
- %_ptr_Private_v4float = OpTypePointer Private %v4float
- %uint_0 = OpConstant %uint 0
- %int = OpTypeInt 32 1
- %v2uint = OpTypeVector %uint 2
- %uint_0_0 = OpConstant %uint 0
- %v4uint = OpTypeVector %uint 4
- %v2float = OpTypeVector %float 2
- %uint_3212836864 = OpConstant %uint 3212836864
- %66 = OpTypeSampledImage %11
- %v3float = OpTypeVector %float 3
- %v2int = OpTypeVector %int 2
- %s0 = OpVariable %_ptr_UniformConstant_7 UniformConstant
- %t0 = OpVariable %_ptr_UniformConstant_11 UniformConstant
- %u0 = OpVariable %_ptr_UniformConstant_17 UniformConstant
- %vThreadId = OpVariable %_ptr_Input_v3uint Input
- %r0 = OpVariable %_ptr_Private_v4float Private
- %cs_main = OpFunction %void None %5
- %6 = OpLabel
- %30 = OpBitcast %int %uint_0
- %31 = OpLoad %17 %u0
- %33 = OpImageQuerySizeLod %v2uint %31 %30
- %34 = OpLoad %17 %u0
- %35 = OpImageQueryLevels %uint %34
- %38 = OpCompositeConstruct %v4uint %33 %uint_0_0 %35
- %39 = OpVectorShuffle %v2uint %38 %38 0 1
- %41 = OpBitcast %v2float %39
- %42 = OpLoad %v4float %r0
- %43 = OpVectorShuffle %v4float %42 %41 4 5 2 3
- OpStore %r0 %43
- %44 = OpLoad %v4float %r0
- %45 = OpVectorShuffle %v2float %44 %44 0 1
- %46 = OpBitcast %v2uint %45
- %47 = OpConvertUToF %v2float %46
- %48 = OpLoad %v4float %r0
- %49 = OpVectorShuffle %v4float %48 %47 4 5 2 3
- OpStore %r0 %49
- %50 = OpLoad %v3uint %vThreadId
- %51 = OpVectorShuffle %v2uint %50 %50 0 1
- %52 = OpConvertUToF %v2float %51
- %53 = OpLoad %v4float %r0
- %54 = OpVectorShuffle %v4float %53 %52 0 1 4 5
- OpStore %r0 %54
- %55 = OpLoad %v4float %r0
- %56 = OpVectorShuffle %v2float %55 %55 2 3
- %57 = OpLoad %v4float %r0
- %58 = OpVectorShuffle %v2float %57 %57 0 1
- %59 = OpFDiv %v2float %56 %58
- %60 = OpLoad %v4float %r0
- %61 = OpVectorShuffle %v4float %60 %59 4 5 2 3
- OpStore %r0 %61
- %62 = OpLoad %v4float %r0
- %63 = OpVectorShuffle %v2float %62 %62 0 1
- %65 = OpBitcast %float %uint_3212836864
- %67 = OpLoad %7 %s0
- %68 = OpLoad %11 %t0
- %69 = OpSampledImage %66 %68 %67
- %70 = OpImageSampleExplicitLod %v4float %69 %63 Lod %65
- %72 = OpVectorShuffle %v3float %70 %70 0 1 2
- %73 = OpLoad %v4float %r0
- %74 = OpVectorShuffle %v4float %73 %72 4 5 6 3
- OpStore %r0 %74
- %75 = OpLoad %v3uint %vThreadId
- %76 = OpVectorShuffle %v2uint %75 %75 0 1
- %78 = OpBitcast %v2int %76
- %79 = OpLoad %v4float %r0
- %80 = OpVectorShuffle %v4float %79 %79 0 1 2 0
- %81 = OpLoad %17 %u0
- OpImageWrite %81 %78 %80
- OpReturn
- OpFunctionEnd
- %main = OpFunction %void None %5
- %82 = OpLabel
- %83 = OpFunctionCall %void %cs_main
- OpReturn
- OpFunctionEnd
Advertisement
Add Comment
Please, Sign In to add comment