| spv.qcom.tileShading.0.comp |
| // Module Version 10000 |
| // Generated by (magic number): 8000b |
| // Id's are bound by 104 |
| |
| Capability Shader |
| Capability TileShadingQCOM |
| Extension "SPV_QCOM_tile_shading" |
| 1: ExtInstImport "GLSL.std.450" |
| MemoryModel Logical GLSL450 |
| EntryPoint GLCompute 4 "main" 12 16 19 |
| ExecutionMode 4 LocalSize 16 16 1 |
| Source GLSL 460 |
| SourceExtension "GL_QCOM_tile_shading" |
| Name 4 "main" |
| Name 9 "uoffset" |
| Name 12 "gl_GlobalInvocationID" |
| Name 16 "gl_TileOffsetQCOM" |
| Name 19 "gl_TileDimensionQCOM" |
| Name 30 "offset" |
| Name 36 "colorA" |
| Name 39 "color0" |
| Name 45 "icolorB" |
| Name 48 "color1" |
| Name 52 "colorC" |
| Name 53 "input0" |
| Name 58 "d" |
| Name 59 "depth" |
| Name 66 "s" |
| Name 69 "stencil" |
| Name 75 "outColor" |
| Name 84 "outDepth" |
| Name 88 "outStencil" |
| Decorate 12(gl_GlobalInvocationID) BuiltIn GlobalInvocationId |
| Decorate 16(gl_TileOffsetQCOM) BuiltIn TileOffsetQCOM |
| Decorate 19(gl_TileDimensionQCOM) BuiltIn TileDimensionQCOM |
| Decorate 39(color0) Binding 1 |
| Decorate 39(color0) DescriptorSet 0 |
| Decorate 48(color1) Binding 2 |
| Decorate 48(color1) DescriptorSet 0 |
| Decorate 53(input0) Binding 0 |
| Decorate 53(input0) DescriptorSet 0 |
| Decorate 59(depth) Binding 3 |
| Decorate 59(depth) DescriptorSet 0 |
| Decorate 69(stencil) Binding 4 |
| Decorate 69(stencil) DescriptorSet 0 |
| Decorate 103 BuiltIn WorkgroupSize |
| 2: TypeVoid |
| 3: TypeFunction 2 |
| 6: TypeInt 32 0 |
| 7: TypeVector 6(int) 2 |
| 8: TypePointer Function 7(ivec2) |
| 10: TypeVector 6(int) 3 |
| 11: TypePointer Input 10(ivec3) |
| 12(gl_GlobalInvocationID): 11(ptr) Variable Input |
| 15: TypePointer Input 7(ivec2) |
| 16(gl_TileOffsetQCOM): 15(ptr) Variable Input |
| 19(gl_TileDimensionQCOM): 11(ptr) Variable Input |
| 23: 6(int) Constant 1 |
| 24: 7(ivec2) ConstantComposite 23 23 |
| 27: TypeInt 32 1 |
| 28: TypeVector 27(int) 2 |
| 29: TypePointer Function 28(ivec2) |
| 33: TypeFloat 32 |
| 34: TypeVector 33(float) 4 |
| 35: TypePointer Function 34(fvec4) |
| 37: TypeImage 33(float) 2D nonsampled format:Rgba32f |
| 38: TypePointer TileAttachmentQCOM 37 |
| 39(color0): 38(ptr) Variable TileAttachmentQCOM |
| 43: TypeVector 27(int) 4 |
| 44: TypePointer Function 43(ivec4) |
| 46: TypeImage 27(int) 2D nonsampled format:Rgba32i |
| 47: TypePointer TileAttachmentQCOM 46 |
| 48(color1): 47(ptr) Variable TileAttachmentQCOM |
| 53(input0): 38(ptr) Variable TileAttachmentQCOM |
| 57: TypePointer Function 33(float) |
| 59(depth): 38(ptr) Variable TileAttachmentQCOM |
| 63: 6(int) Constant 0 |
| 65: TypePointer Function 6(int) |
| 67: TypeImage 6(int) 2D nonsampled format:Rgba32ui |
| 68: TypePointer TileAttachmentQCOM 67 |
| 69(stencil): 68(ptr) Variable TileAttachmentQCOM |
| 72: TypeVector 6(int) 4 |
| 82: 33(float) Constant 1051260355 |
| 86: 33(float) Constant 1073741824 |
| 102: 6(int) Constant 16 |
| 103: 10(ivec3) ConstantComposite 102 102 23 |
| 4(main): 2 Function None 3 |
| 5: Label |
| 9(uoffset): 8(ptr) Variable Function |
| 30(offset): 29(ptr) Variable Function |
| 36(colorA): 35(ptr) Variable Function |
| 45(icolorB): 44(ptr) Variable Function |
| 52(colorC): 35(ptr) Variable Function |
| 58(d): 57(ptr) Variable Function |
| 66(s): 65(ptr) Variable Function |
| 75(outColor): 35(ptr) Variable Function |
| 84(outDepth): 57(ptr) Variable Function |
| 88(outStencil): 65(ptr) Variable Function |
| 13: 10(ivec3) Load 12(gl_GlobalInvocationID) |
| 14: 7(ivec2) VectorShuffle 13 13 0 1 |
| 17: 7(ivec2) Load 16(gl_TileOffsetQCOM) |
| 18: 7(ivec2) Load 16(gl_TileOffsetQCOM) |
| 20: 10(ivec3) Load 19(gl_TileDimensionQCOM) |
| 21: 7(ivec2) VectorShuffle 20 20 0 1 |
| 22: 7(ivec2) IAdd 18 21 |
| 25: 7(ivec2) ISub 22 24 |
| 26: 7(ivec2) ExtInst 1(GLSL.std.450) 44(UClamp) 14 17 25 |
| Store 9(uoffset) 26 |
| 31: 7(ivec2) Load 9(uoffset) |
| 32: 28(ivec2) Bitcast 31 |
| Store 30(offset) 32 |
| 40: 37 Load 39(color0) |
| 41: 28(ivec2) Load 30(offset) |
| 42: 34(fvec4) ImageRead 40 41 |
| Store 36(colorA) 42 |
| 49: 46 Load 48(color1) |
| 50: 28(ivec2) Load 30(offset) |
| 51: 43(ivec4) ImageRead 49 50 |
| Store 45(icolorB) 51 |
| 54: 37 Load 53(input0) |
| 55: 28(ivec2) Load 30(offset) |
| 56: 34(fvec4) ImageRead 54 55 |
| Store 52(colorC) 56 |
| 60: 37 Load 59(depth) |
| 61: 28(ivec2) Load 30(offset) |
| 62: 34(fvec4) ImageRead 60 61 |
| 64: 33(float) CompositeExtract 62 0 |
| Store 58(d) 64 |
| 70: 67 Load 69(stencil) |
| 71: 28(ivec2) Load 30(offset) |
| 73: 72(ivec4) ImageRead 70 71 |
| 74: 6(int) CompositeExtract 73 0 |
| Store 66(s) 74 |
| 76: 34(fvec4) Load 36(colorA) |
| 77: 43(ivec4) Load 45(icolorB) |
| 78: 34(fvec4) ConvertSToF 77 |
| 79: 34(fvec4) FAdd 76 78 |
| 80: 34(fvec4) Load 52(colorC) |
| 81: 34(fvec4) FAdd 79 80 |
| 83: 34(fvec4) VectorTimesScalar 81 82 |
| Store 75(outColor) 83 |
| 85: 33(float) Load 58(d) |
| 87: 33(float) FMul 85 86 |
| Store 84(outDepth) 87 |
| 89: 6(int) Load 66(s) |
| 90: 6(int) IAdd 89 23 |
| Store 88(outStencil) 90 |
| 91: 37 Load 39(color0) |
| 92: 28(ivec2) Load 30(offset) |
| 93: 34(fvec4) Load 75(outColor) |
| ImageWrite 91 92 93 |
| 94: 37 Load 59(depth) |
| 95: 28(ivec2) Load 30(offset) |
| 96: 33(float) Load 84(outDepth) |
| 97: 34(fvec4) CompositeConstruct 96 96 96 96 |
| ImageWrite 94 95 97 |
| 98: 67 Load 69(stencil) |
| 99: 28(ivec2) Load 30(offset) |
| 100: 6(int) Load 88(outStencil) |
| 101: 72(ivec4) CompositeConstruct 100 100 100 100 |
| ImageWrite 98 99 101 |
| Return |
| FunctionEnd |