From 33ec2f26cc629aa91ee8602907708977086ddea6 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Fri, 25 Aug 2023 09:52:33 -0400 Subject: Recreate swapchain and use MAX_FRAMES_IN_FLIGHT Several changes here - use MAX_FRAMES_IN_FLIGHT - recreate swapchain at appropriate points or events - don't need sampler in shader for present because we don't have any other viewports to render yet. (scaling not implemented, etc) - nothing to bind because nothing exists yet - should be ready to implement imgui --- assets/shaders/present.frag | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'assets') diff --git a/assets/shaders/present.frag b/assets/shaders/present.frag index 695f7bd..427468c 100644 --- a/assets/shaders/present.frag +++ b/assets/shaders/present.frag @@ -1,16 +1,10 @@ #version 450 -layout (binding = 0) uniform sampler2D samplerColor; - layout (location = 0) in vec2 inUV; layout (location = 0) out vec4 outFragColor; void main() { - vec4 color = texture(samplerColor, inUV); - if (color.w == 0) { - discard; - } - outFragColor = color; -} \ No newline at end of file + outFragColor = vec4(0, 0, 0, 1); +} -- cgit v1.2.3