1# Copyright 2019 The Amber Authors.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#     https://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15[compute shader]
16#version 450
17
18layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
19layout(binding = 1) buffer data_buf {
20    int val0;
21    int val1;
22} data;
23
24void main() {
25    data.val0 = 100;
26    data.val1 = 200;
27}
28
29[test]
30ssbo 0:1 8
31ssbo 0:1 subdata int 0 0
32
33compute 1 1 1
34
35probe ssbo int 0:1 0 == 100 200
36