• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1### Compilation failed:
2
3error: SPIR-V validation error: Operand 3 of TypeImage requires one of these capabilities: Sampled1D Image1D
4  %13 = OpTypeImage %float 1D 0 0 0 1 Unknown
5
6OpCapability Shader
7%1 = OpExtInstImport "GLSL.std.450"
8OpMemoryModel Logical GLSL450
9OpEntryPoint Fragment %main "main" %sk_FragColor %sk_Clockwise
10OpExecutionMode %main OriginUpperLeft
11OpName %sk_FragColor "sk_FragColor"
12OpName %sk_Clockwise "sk_Clockwise"
13OpName %tex "tex"
14OpName %main "main"
15OpName %a "a"
16OpName %b "b"
17OpDecorate %sk_FragColor RelaxedPrecision
18OpDecorate %sk_FragColor Location 0
19OpDecorate %sk_FragColor Index 0
20OpDecorate %sk_Clockwise BuiltIn FrontFacing
21OpDecorate %tex RelaxedPrecision
22OpDecorate %tex Binding 0
23OpDecorate %tex DescriptorSet 0
24OpDecorate %20 RelaxedPrecision
25OpDecorate %24 RelaxedPrecision
26OpDecorate %29 RelaxedPrecision
27OpDecorate %30 RelaxedPrecision
28OpDecorate %33 RelaxedPrecision
29OpDecorate %34 RelaxedPrecision
30OpDecorate %35 RelaxedPrecision
31%float = OpTypeFloat 32
32%v4float = OpTypeVector %float 4
33%_ptr_Output_v4float = OpTypePointer Output %v4float
34%sk_FragColor = OpVariable %_ptr_Output_v4float Output
35%bool = OpTypeBool
36%_ptr_Input_bool = OpTypePointer Input %bool
37%sk_Clockwise = OpVariable %_ptr_Input_bool Input
38%13 = OpTypeImage %float 1D 0 0 0 1 Unknown
39%12 = OpTypeSampledImage %13
40%_ptr_UniformConstant_12 = OpTypePointer UniformConstant %12
41%tex = OpVariable %_ptr_UniformConstant_12 UniformConstant
42%void = OpTypeVoid
43%15 = OpTypeFunction %void
44%_ptr_Function_v4float = OpTypePointer Function %v4float
45%float_0 = OpConstant %float 0
46%v2float = OpTypeVector %float 2
47%26 = OpConstantComposite %v2float %float_0 %float_0
48%main = OpFunction %void None %15
49%16 = OpLabel
50%a = OpVariable %_ptr_Function_v4float Function
51%b = OpVariable %_ptr_Function_v4float Function
52%20 = OpLoad %12 %tex
53%19 = OpImageSampleImplicitLod %v4float %20 %float_0
54OpStore %a %19
55%24 = OpLoad %12 %tex
56%23 = OpImageSampleProjImplicitLod %v4float %24 %26
57OpStore %b %23
58%27 = OpLoad %v4float %a
59%28 = OpVectorShuffle %v2float %27 %27 0 1
60%29 = OpCompositeExtract %float %28 0
61%30 = OpCompositeExtract %float %28 1
62%31 = OpLoad %v4float %b
63%32 = OpVectorShuffle %v2float %31 %31 2 3
64%33 = OpCompositeExtract %float %32 0
65%34 = OpCompositeExtract %float %32 1
66%35 = OpCompositeConstruct %v4float %29 %30 %33 %34
67OpStore %sk_FragColor %35
68OpReturn
69OpFunctionEnd
70
711 error
72