Content-Type: text/x-zim-wiki Wiki-Format: zim 0.4 Creation-Date: 2020-01-21T00:01:37-08:00 ====== VKProcessor ====== ===== Details ===== Vk Processors is a do_all class for interaction with the render window. And the vulkan state and backend. Unfortunately this explodes out to managing all of the textures, kernels, shaders, and fonts. VKProcessor gives out handles to these stored data which can then be used in other parts of the program. [[https://www.draw.io/?lightbox=1&highlight=0000ff&edit=_blank&layers=1&nav=1&title=vkprocessor.drawio#R%3Cmxfile%20pages%3D%222%22%3E%3Cdiagram%20id%3D%22eBoc7Yustm6TUbQq-vnT%22%20name%3D%22VKProcessor%20Overview%22%3E7V1bd5s4EP41Oaf74ByEuD4mzqXppt2cOKfbPspYttli8HLJpb9%2BJYMwIBljG4y8SR5aEBK2Zr75NDO6%2BAwOF6%2B3IVrOvwYT7J2pyuT1DF6dqSqAlkL%2BoyVvWQkwQFoyC91JVrYuGLm%2FcVaYNZwl7gRHpYpxEHixuywXOoHvYyculaEwDF7K1aaBV%2F7UJZpln6isC0YO8jBX7W93Es%2FZtyN%2F6yefsTubx9yjBWL1s4JojibBS6EIXp%2FBYRgEcXq1eB1ijwqQiSZtd7Phaf7dQuzHTRqolwvXhImdzMCvaHb%2Fz%2F3t1esAZK95Rl6SdXqI%2FGcUPeHXOAnxmWp45O2X45BczehV3yUrUcZvTEVhkPgTTLuokMcvczfGoyVy6NMXgkpSNo8XHrkDeeuiyFj3cRjj10JRJsJbHCxwHL6RKtlTjek3w%2FQAQOVcT4teChhh2J8X0aFlhSjD5Sx%2F%2FVpv5CJT3S5qVDeo8W5BIf6hxLISdbuqRGakRRXax1Uh3KDCm4D080ODZQ2anAaBDGZobtBh7%2FLK%2B7ymLZWXliqQFjRakFbwc3nvPH02tLflzWOifPls%2F%2F4%2BMCEnFjwh4292G4TxPJgFPvKu16WXZcGt69wHwTIT1z84jt8yZwIlcVAWJn514x%2BF65%2F0VQQ66d3Va%2Fbm1c0bu%2FFJf3%2BsKioKZAVpS6ibrGDdeHVXav2AQ5eIDYdZYR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8LfPgxBOsvI0A8D%2FBvrIzFrvW2uaw5c39Q107I8w7Vr75i27SqpD9sXjLHjthJLLPts%2FCr1m2DO7Cz%2FPzPW3GvSzeFyMoHUtWp4%2FBMGJH2d%2BXZljHat%2Fae%2Fed1LnvmJ5ZgN4jVQ1cTU8X3lMBV7LXZgqiakXr1sqACkYsMFj9iZTz%2BdHoG%2BGLBlFw4tqUWGU1h0KaK%2B4nXD4jYPvujCbfRg6y4Kr1eb9XCkwMTHFisKp5RVWZZyWVXxXTB%2FtqTd2LOawAgQoCbgrK2qpuTupngjD3Nxet%2FkvdRDVSkQxdn42wBxV4ulEqC2a2ZQFtS%2BYato71K%2F0OAk0lI%2BT93%2FhQY7vvnqSGlpw6sLp9kg7nrewDPLf1bN6qSnNVIbC07C5Np%2BWUzeOyzN5Ha%2Bk3FC%2Fa2stdhU2NqKgc%2FW9lJrc9qu%2BJtSu3gccX5%2Bgi2RtqF2cHOMs7m90tzafn1mXmiUZm47X944sbUE069aXNEBfASTo7vln7fLV4fLvxJofvwP%3C%2Fdiagram%3E%3C%2Fmxfile%3E|VK]] [[./vkprocessor.drawio]] -------------------- ===== Data ===== **Borrowed:** instance device qeueue **Owns:** [[CanvasState]] [[CompuState]] -------------------- ===== CanvasState ===== <[[CanvasState]]> * Is used for storage of texture and image buffers in addition to vertex buffers * Also contains logic for writing the stored buffers to the command_buffer ===== CompuState ===== **Holds:** * A very generic 2d compute buffer for computation * The kernels which will compute them 2D list storage. So all kernels and buffers are indexed by integer handles compute_commands is a fairly benign function which takes the 3 types of