Skip to content
Snippets Groups Projects
  • ReinUsesLisp's avatar
    vk_stream_buffer: Implement a stream buffer · 33a05976
    ReinUsesLisp authored
    This manages two kinds of streaming buffers: one for unified memory
    models and one for dedicated GPUs. The first one skips the copy from the
    staging buffer to the real buffer, since it creates an unified buffer.
    
    This implementation waits for all fences to finish their operation
    before "invalidating". This is suboptimal since it should allocate
    another buffer or start searching from the beginning. There is room for
    improvement here.
    
    This could also handle AMD's "pinned" memory (a heap with 256 MiB) that
    seems to be designed for buffer streaming.
    33a05976