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[vertex shader passthrough] 16[fragment shader] 17#version 430 18 19layout(set = 0, binding = 0) uniform Uniform { 20 float uniform_value; 21}; 22 23layout(location = 0) out vec4 outColor; 24 25void main() { 26 outColor = vec4(uniform_value, 0.0, 0.0, uniform_value); 27} 28 29[test] 30uniform ubo 0:0 float 0 1.0 31 32clear 33draw rect -1 -1 2 2 34 35probe rect rgba (0, 0, 250, 250) (1.0 0.0 0.0 1.0) 36