

graphics pipeline:
    - [] shader stages
        * shader module
    - [] vertex input attributes
        - loc id
        - binding id
        - format
        - offset
    - [] vertex input binding
        - stride
        - rate
    - input assembly
        - topo
    - tess
    - viewports
        - [] rect
        - [] scissor
    - raster
        - front face, cull
        - wireframe
    - !! multisample
    - depth/stencil
        - test, write, op
    - blend
        - [] op for each attachement (of subpass)
            - src dst op opfactor
    - [] dynamic state:
        - viewport, or
        - line width, or
        - blend/stencil constant (no op)
    * pipeline layout (uniforms)
    * render pass for compat
    * subpass for compat
    * parent/inherit/base pipeline

pipeline layout (uniforms):
    * [] descriptor set layout
    - [] push constant layout
        - stage, offset, size

descriptor set layout:
    - [] descriptor set layout binding
        - binding
        - type (sampler, image, uniform buffer, input att ...)
        - count
        - stages

descriptor set:
    * [] descriptor set layout

render pass:
    - [] attachment desc
        - format            !! for compat
        - sample count      !! for compat
        - load store op     (ncb) non-compat-breaker
        - initial and final image layout (ncb)
    - [] subpass desc
        - [] input attachment index !! + layout(ncb)
        - [] output/color attachment index !! + layout(ncb)
        - [] resolved attachment index !! + layout(ncb) ([] matches output/color)
        - [] preserved attachment index !!
        - stencil depth depth attachment index !! + layout
    - [] subpass dep
        - src dst sub pass index
        - src dst stage
        - src dst access (uniform, texture, ...)

frame buffer:
    * render pass for compat
    - x y z dim
    - [] image views (attachments)
        * image
        - format
        - view type (1d, 2d, 3d, cube)
        - swizzle rgba
        - range (num mip + num layer/array + color/depth/stenc)

cmd render pass begin
    * render pass
    * frame buffer

cmd buffer:
    - opt: render pass + sub pass where to be submited

descriptor set:
    * descriptor pool
    * [] descriptor set layout

update/write descriptor set:
    * dst descriptor set
    - dst binding index
    - dst array index
    - descriptor count
    - descriptor type
    * [] image/buffer/texel

copy descriptor set:
    * src descriptor set
    - src binding index
    - src array index
    * dst descriptor set
    - dst binding index
    - dst array index
    - count

shader:
    - vertex in         > graphics pipeline
    - vertex to frag    > shader
    - frag out          > render pass
    - defines           > all

    - vert uniforms     > pipeline layout + more
    - frag uniforms     > pipeline layout + more

render pass:
    - subpasses
    - uniforms
    - defines

    - override material stuff ? blending, wireframe

shader:
    - uniforms
    - defines
    - all vertex inputs
    - all vertex to frag

material:
    - blending
    - vertex inputs
    (- vertex to frag)
    - defines
    - uniforms

    - pass name

