diff options
author | Jason Ekstrand <jason.ekstrand@intel.com> | 2016-09-08 11:27:19 -0700 |
---|---|---|
committer | Jason Ekstrand <jason.ekstrand@intel.com> | 2016-09-08 11:27:44 -0700 |
commit | 4e6fc7e6f8b5646eef51edb663289dfd0adff3c4 (patch) | |
tree | e7fb2e2cf9dde063517d08af3fe1a99300d2396f | |
parent | 037ef674f5d46873a0610d84bdcc2d684869c866 (diff) |
tests/func.first: Use an extra function to sample the texture
-rw-r--r-- | src/tests/func/first.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/tests/func/first.c b/src/tests/func/first.c index 7d6d7de..41128f1 100644 --- a/src/tests/func/first.c +++ b/src/tests/func/first.c @@ -51,9 +51,15 @@ create_pipeline(VkDevice device, VkPipelineLayout pipeline_layout, layout(location = 0) out vec4 f_color; layout(location = 0) in vec4 v_color; layout(set = 0, binding = 1) uniform sampler2D tex; + + vec4 sample_at_01_01(sampler2D s) + { + return texture(s, vec2(0.1, 0.1)); + } + void main() { - f_color = v_color + texture(tex, vec2(0.1, 0.1)); + f_color = v_color + sample_at_01_01(tex); } ); |