1# Copyright 2019 Google LLC. 2# Copyright 2019 The Khronos Group Inc. 3# 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# https://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15 16[require] 17vertexPipelineStoresAndAtomics 18 19[vertex shader] 20#version 430 21 22layout(location = 0) in vec4 position_in; 23layout(binding = 0) buffer DataOut 24{ 25 vec4 values[]; 26} dataOut; 27 28void main() 29{ 30 gl_Position = position_in; 31 dataOut.values[gl_VertexIndex] = position_in; 32} 33 34[vertex data] 350/R32G32B32A32_SFLOAT 360.1 0.2 0.3 0.4 370.5 0.6 0.7 0.8 380.9 1.0 1.1 1.2 39 40[test] 41ssbo 0 48 42draw arrays TRIANGLE_STRIP 0 3 43probe ssbo float 0 0 == 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 1.1 1.2 44