blob: 6d0f983fba7d6d3e776dbfa27b1de2c79309597f [file] [log] [blame]
# Copyright 2019 The Amber Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
[compute shader]
#version 450
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
layout(binding = 1) buffer data_buf {
int val0;
int val1;
} data;
void main() {
data.val0 = 100;
data.val1 = 200;
}
[test]
ssbo 0:1 8
ssbo 0:1 subdata int 0 0
compute 1 1 1
probe ssbo int 0:1 0 == 100 200