26 lines
863 B
Plaintext
26 lines
863 B
Plaintext
;; Tests diff of unrelated shaders (with different execution models).
|
|
OpCapability Shader
|
|
%1 = OpExtInstImport "GLSL.std.450"
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint Vertex %4 "main" %8 %10
|
|
OpSource ESSL 310
|
|
OpName %4 "main"
|
|
OpName %8 "v"
|
|
OpName %10 "a"
|
|
OpDecorate %8 Location 0
|
|
OpDecorate %10 Location 0
|
|
%2 = OpTypeVoid
|
|
%3 = OpTypeFunction %2
|
|
%6 = OpTypeFloat 32
|
|
%7 = OpTypePointer Output %6
|
|
%8 = OpVariable %7 Output
|
|
%9 = OpTypePointer Input %6
|
|
%10 = OpVariable %9 Input
|
|
%4 = OpFunction %2 None %3
|
|
%5 = OpLabel
|
|
%11 = OpLoad %6 %10
|
|
OpStore %8 %11
|
|
OpReturn
|
|
OpFunctionEnd
|
|
|