1e5c31af7Sopenharmony_ci# Copyright 2018 The Amber Authors.
2e5c31af7Sopenharmony_ci#
3e5c31af7Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
4e5c31af7Sopenharmony_ci# you may not use this file except in compliance with the License.
5e5c31af7Sopenharmony_ci# You may obtain a copy of the License at
6e5c31af7Sopenharmony_ci#
7e5c31af7Sopenharmony_ci#     https://www.apache.org/licenses/LICENSE-2.0
8e5c31af7Sopenharmony_ci#
9e5c31af7Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
10e5c31af7Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
11e5c31af7Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12e5c31af7Sopenharmony_ci# See the License for the specific language governing permissions and
13e5c31af7Sopenharmony_ci# limitations under the License.
14e5c31af7Sopenharmony_ci
15e5c31af7Sopenharmony_ci[require]
16e5c31af7Sopenharmony_cifbsize 800 600
17e5c31af7Sopenharmony_ci
18e5c31af7Sopenharmony_ci[vertex shader]
19e5c31af7Sopenharmony_ci#version 430
20e5c31af7Sopenharmony_ci
21e5c31af7Sopenharmony_cilayout(location = 0) in vec4 position;
22e5c31af7Sopenharmony_cilayout(location = 0) out vec4 frag_color;
23e5c31af7Sopenharmony_ci
24e5c31af7Sopenharmony_cilayout(set = 0, binding = 0) readonly buffer block1 {
25e5c31af7Sopenharmony_ci  vec4 in_color;
26e5c31af7Sopenharmony_ci};
27e5c31af7Sopenharmony_ci
28e5c31af7Sopenharmony_civoid main() {
29e5c31af7Sopenharmony_ci  gl_Position = position;
30e5c31af7Sopenharmony_ci  frag_color = in_color;
31e5c31af7Sopenharmony_ci}
32e5c31af7Sopenharmony_ci
33e5c31af7Sopenharmony_ci[fragment shader]
34e5c31af7Sopenharmony_ci#version 430
35e5c31af7Sopenharmony_ci
36e5c31af7Sopenharmony_cilayout(location = 0) in vec4 frag_color;
37e5c31af7Sopenharmony_cilayout(location = 0) out vec4 final_color;
38e5c31af7Sopenharmony_ci
39e5c31af7Sopenharmony_civoid main() {
40e5c31af7Sopenharmony_ci  final_color = frag_color;
41e5c31af7Sopenharmony_ci}
42e5c31af7Sopenharmony_ci
43e5c31af7Sopenharmony_ci[test]
44e5c31af7Sopenharmony_ciclear
45e5c31af7Sopenharmony_ci
46e5c31af7Sopenharmony_cissbo 0 subdata vec4 0 1.0 0.0 0.0 1.0
47e5c31af7Sopenharmony_cidraw rect -1 -1 1 1
48e5c31af7Sopenharmony_ci
49e5c31af7Sopenharmony_cissbo 0 subdata vec4 0 0.0 1.0 0.0 1.0
50e5c31af7Sopenharmony_cidraw rect -1  0 1 1
51e5c31af7Sopenharmony_ci
52e5c31af7Sopenharmony_cissbo 0 subdata vec4 0 0.0 0.0 1.0 1.0
53e5c31af7Sopenharmony_cidraw rect  0 -1 1 1
54e5c31af7Sopenharmony_ci
55e5c31af7Sopenharmony_cissbo 0 subdata vec4 0 0.5 0.0 0.5 1.0
56e5c31af7Sopenharmony_cidraw rect  0  0 1 1
57e5c31af7Sopenharmony_ci
58e5c31af7Sopenharmony_cirelative probe rect rgba (0.0, 0.0, 0.5, 0.5) (1.0,   0,   0, 1.0)
59e5c31af7Sopenharmony_cirelative probe rect rgba (0.0, 0.5, 0.5, 0.5) (  0, 1.0,   0, 1.0)
60e5c31af7Sopenharmony_cirelative probe rect rgba (0.5, 0.0, 0.5, 0.5) (  0,   0, 1.0, 1.0)
61e5c31af7Sopenharmony_cirelative probe rect rgba (0.5, 0.5, 0.5, 0.5) (0.5,   0, 0.5, 1.0)
62