1 spv.imageLoadStoreLod.frag 2 Validation failed 3 // Module Version 10000 4 // Generated by (magic number): 80007 5 // Id's are bound by 82 6 7 Capability Shader 8 Capability ImageCubeArray 9 Capability SparseResidency 10 Capability Image1D 11 Capability ImageReadWriteLodAMD 12 Extension "SPV_AMD_shader_image_load_store_lod" 13 1: ExtInstImport "GLSL.std.450" 14 MemoryModel Logical GLSL450 15 EntryPoint Fragment 4 "main" 77 16 ExecutionMode 4 OriginUpperLeft 17 Source GLSL 450 18 SourceExtension "GL_AMD_shader_image_load_store_lod" 19 Name 4 "main" 20 Name 9 "f4" 21 Name 14 "i1D" 22 Name 24 "i2D" 23 Name 34 "i3D" 24 Name 46 "iiCube" 25 Name 53 "ii1DArray" 26 Name 60 "ui2DArray" 27 Name 64 "u4" 28 Name 65 "ResType" 29 Name 71 "uiCubeArray" 30 Name 77 "fragColor" 31 Decorate 14(i1D) DescriptorSet 0 32 Decorate 14(i1D) Binding 0 33 Decorate 24(i2D) DescriptorSet 0 34 Decorate 24(i2D) Binding 1 35 Decorate 34(i3D) DescriptorSet 0 36 Decorate 34(i3D) Binding 2 37 Decorate 46(iiCube) DescriptorSet 0 38 Decorate 46(iiCube) Binding 3 39 Decorate 53(ii1DArray) DescriptorSet 0 40 Decorate 53(ii1DArray) Binding 4 41 Decorate 60(ui2DArray) DescriptorSet 0 42 Decorate 60(ui2DArray) Binding 5 43 Decorate 71(uiCubeArray) DescriptorSet 0 44 Decorate 71(uiCubeArray) Binding 6 45 Decorate 77(fragColor) Location 0 46 2: TypeVoid 47 3: TypeFunction 2 48 6: TypeFloat 32 49 7: TypeVector 6(float) 4 50 8: TypePointer Function 7(fvec4) 51 10: 6(float) Constant 0 52 11: 7(fvec4) ConstantComposite 10 10 10 10 53 12: TypeImage 6(float) 1D nonsampled format:Rgba32f 54 13: TypePointer UniformConstant 12 55 14(i1D): 13(ptr) Variable UniformConstant 56 16: TypeInt 32 1 57 17: 16(int) Constant 1 58 18: 16(int) Constant 3 59 22: TypeImage 6(float) 2D nonsampled format:Rgba32f 60 23: TypePointer UniformConstant 22 61 24(i2D): 23(ptr) Variable UniformConstant 62 26: TypeVector 16(int) 2 63 27: 16(int) Constant 2 64 28: 26(ivec2) ConstantComposite 27 18 65 32: TypeImage 6(float) 3D nonsampled format:Rgba32f 66 33: TypePointer UniformConstant 32 67 34(i3D): 33(ptr) Variable UniformConstant 68 36: TypeVector 16(int) 3 69 37: 16(int) Constant 4 70 38: 16(int) Constant 5 71 39: 16(int) Constant 6 72 40: 36(ivec3) ConstantComposite 37 38 39 73 44: TypeImage 16(int) Cube nonsampled format:Rgba32i 74 45: TypePointer UniformConstant 44 75 46(iiCube): 45(ptr) Variable UniformConstant 76 49: TypeVector 16(int) 4 77 51: TypeImage 16(int) 1D array nonsampled format:Rgba32i 78 52: TypePointer UniformConstant 51 79 53(ii1DArray): 52(ptr) Variable UniformConstant 80 57: TypeInt 32 0 81 58: TypeImage 57(int) 2D array nonsampled format:Rgba32ui 82 59: TypePointer UniformConstant 58 83 60(ui2DArray): 59(ptr) Variable UniformConstant 84 62: TypeVector 57(int) 4 85 63: TypePointer Function 62(ivec4) 86 65(ResType): TypeStruct 16(int) 62(ivec4) 87 69: TypeImage 57(int) Cube array nonsampled format:Rgba32ui 88 70: TypePointer UniformConstant 69 89 71(uiCubeArray): 70(ptr) Variable UniformConstant 90 76: TypePointer Output 7(fvec4) 91 77(fragColor): 76(ptr) Variable Output 92 4(main): 2 Function None 3 93 5: Label 94 9(f4): 8(ptr) Variable Function 95 64(u4): 63(ptr) Variable Function 96 Store 9(f4) 11 97 15: 12 Load 14(i1D) 98 19: 7(fvec4) ImageRead 15 17 Lod 18 99 20: 7(fvec4) Load 9(f4) 100 21: 7(fvec4) FAdd 20 19 101 Store 9(f4) 21 102 25: 22 Load 24(i2D) 103 29: 7(fvec4) ImageRead 25 28 Lod 18 104 30: 7(fvec4) Load 9(f4) 105 31: 7(fvec4) FAdd 30 29 106 Store 9(f4) 31 107 35: 32 Load 34(i3D) 108 41: 7(fvec4) ImageRead 35 40 Lod 18 109 42: 7(fvec4) Load 9(f4) 110 43: 7(fvec4) FAdd 42 41 111 Store 9(f4) 43 112 47: 44 Load 46(iiCube) 113 48: 7(fvec4) Load 9(f4) 114 50: 49(ivec4) ConvertFToS 48 115 ImageWrite 47 40 50 Lod 18 116 54: 51 Load 53(ii1DArray) 117 55: 7(fvec4) Load 9(f4) 118 56: 49(ivec4) ConvertFToS 55 119 ImageWrite 54 28 56 Lod 18 120 61: 58 Load 60(ui2DArray) 121 66: 65(ResType) ImageSparseRead 61 40 Lod 18 122 67: 62(ivec4) CompositeExtract 66 1 123 Store 64(u4) 67 124 68: 16(int) CompositeExtract 66 0 125 72: 69 Load 71(uiCubeArray) 126 73: 65(ResType) ImageSparseRead 72 40 Lod 18 127 74: 62(ivec4) CompositeExtract 73 1 128 Store 64(u4) 74 129 75: 16(int) CompositeExtract 73 0 130 78: 7(fvec4) Load 9(f4) 131 79: 62(ivec4) Load 64(u4) 132 80: 7(fvec4) ConvertUToF 79 133 81: 7(fvec4) FAdd 78 80 134 Store 77(fragColor) 81 135 Return 136 FunctionEnd 137