From 0eefdb7bc5ddfd08ad8723c9c51f4866f34f5799 Mon Sep 17 00:00:00 2001 From: hunterk Date: Fri, 19 Aug 2016 15:28:03 -0500 Subject: [PATCH] update stock with push constants; makes it easier to work from --- stock.slang | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/stock.slang b/stock.slang index 3814272..bf3cf6b 100644 --- a/stock.slang +++ b/stock.slang @@ -1,11 +1,16 @@ #version 450 +layout(push_constant) uniform Push +{ + vec4 SourceSize; + vec4 OriginalSize; + vec4 OutputSize; + uint FrameCount; +} params; + layout(std140, set = 0, binding = 0) uniform UBO { - mat4 MVP; - vec4 OutputSize; - vec4 OriginalSize; - vec4 SourceSize; + mat4 MVP; } global; #pragma stage vertex