| 25 | namespace { |
| 26 | |
| 27 | TEST(TransformationCompositeConstructTest, ConstructArrays) { |
| 28 | std::string shader = R"( |
| 29 | OpCapability Shader |
| 30 | %1 = OpExtInstImport "GLSL.std.450" |
| 31 | OpMemoryModel Logical GLSL450 |
| 32 | OpEntryPoint Fragment %4 "main" |
| 33 | OpExecutionMode %4 OriginUpperLeft |
| 34 | OpSource ESSL 310 |
| 35 | OpName %4 "main" |
| 36 | OpName %11 "floats" |
| 37 | OpName %22 "x" |
| 38 | OpName %39 "vecs" |
| 39 | OpName %49 "bools" |
| 40 | OpName %60 "many_uvec3s" |
| 41 | OpDecorate %60 RelaxedPrecision |
| 42 | %2 = OpTypeVoid |
| 43 | %3 = OpTypeFunction %2 |
| 44 | %6 = OpTypeFloat 32 |
| 45 | %7 = OpTypeInt 32 0 |
| 46 | %8 = OpConstant %7 2 |
| 47 | %9 = OpTypeArray %6 %8 |
| 48 | %10 = OpTypePointer Function %9 |
| 49 | %12 = OpTypeInt 32 1 |
| 50 | %13 = OpConstant %12 0 |
| 51 | %14 = OpConstant %6 1 |
| 52 | %15 = OpTypePointer Function %6 |
| 53 | %17 = OpConstant %12 1 |
| 54 | %18 = OpConstant %6 2 |
| 55 | %20 = OpTypeVector %6 2 |
| 56 | %21 = OpTypePointer Function %20 |
| 57 | %32 = OpTypeBool |
| 58 | %36 = OpConstant %7 3 |
| 59 | %37 = OpTypeArray %20 %36 |
| 60 | %38 = OpTypePointer Private %37 |
| 61 | %39 = OpVariable %38 Private |
| 62 | %40 = OpConstant %6 3 |
| 63 | %41 = OpConstantComposite %20 %40 %40 |
| 64 | %42 = OpTypePointer Private %20 |
| 65 | %44 = OpConstant %12 2 |
| 66 | %47 = OpTypeArray %32 %36 |
| 67 | %48 = OpTypePointer Function %47 |
| 68 | %50 = OpConstantTrue %32 |
| 69 | %51 = OpTypePointer Function %32 |
| 70 | %56 = OpTypeVector %7 3 |
| 71 | %57 = OpTypeArray %56 %8 |
| 72 | %58 = OpTypeArray %57 %8 |
| 73 | %59 = OpTypePointer Function %58 |
| 74 | %61 = OpConstant %7 4 |
| 75 | %62 = OpConstantComposite %56 %61 %61 %61 |
| 76 | %63 = OpTypePointer Function %56 |
| 77 | %65 = OpConstant %7 5 |
| 78 | %66 = OpConstantComposite %56 %65 %65 %65 |
| 79 | %67 = OpConstant %7 6 |
| 80 | %68 = OpConstantComposite %56 %67 %67 %67 |
| 81 | %69 = OpConstantComposite %57 %66 %68 |
| 82 | %100 = OpUndef %57 |
| 83 | %70 = OpTypePointer Function %57 |
| 84 | %4 = OpFunction %2 None %3 |
nothing calls this directly
no test coverage detected