diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2023-08-25 09:52:33 -0400 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2023-08-25 09:52:33 -0400 |
| commit | 33ec2f26cc629aa91ee8602907708977086ddea6 (patch) | |
| tree | 55a4fa34739a8dace6e15ffb82a89b27c518eb94 /assets | |
| parent | 1642e319e241b41246442adc3bc780261dd612c0 (diff) | |
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
Diffstat (limited to 'assets')
| -rw-r--r-- | assets/shaders/present.frag | 10 |
1 files changed, 2 insertions, 8 deletions
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); +} |
