Skip to content

Draw the first things in the vulkan testing window - #3523

Merged
IntegratedQuantum merged 16 commits into
PixelGuys:masterfrom
IntegratedQuantum:firstDraw
Aug 16, 2026
Merged

Draw the first things in the vulkan testing window#3523
IntegratedQuantum merged 16 commits into
PixelGuys:masterfrom
IntegratedQuantum:firstDraw

Conversation

@IntegratedQuantum

@IntegratedQuantum IntegratedQuantum commented Aug 16, 2026

Copy link
Copy Markdown
Member

This required several more changes to get working:

  • support for push constants (I decided to only make the size configurable, we don't need multiple with offset for now, and as far as I can tell there is not going to be much of a performance impact from this, and from always specifying all stage flags)
  • support for vertex/index buffers (this was easy after Allocate and upload data to the GPU #3510)
  • Configuration of input assembly stage (fixing two TODOs from the code)
  • To make it easier to introduce the new configs, I decided to finally use a struct parameter for pipeline creation which holds all the vulkan stuff
  • empty star VAO is not easily convertible to vulkan (vulkan does not like empty stuff at all)
  • some small fixes

Apart from the push constant config, everything else takes the exact same lines of code as the previous OpenGL config. However a most of the drawing logic (uniforms, bindings, draw command) is currently duplicated. But I don't think it's worth creating a unified API for these things, as we are going to get rid of OpenGL once the vulkan rewrite is complete.

progress towards #102
Screenshot at 2026-08-16 09-32-41

@IntegratedQuantum
IntegratedQuantum merged commit c5b0930 into PixelGuys:master Aug 16, 2026
1 check passed
@IntegratedQuantum
IntegratedQuantum deleted the firstDraw branch August 16, 2026 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant