Convert sprite data to vertex data

I’m working on a custom game engine that uses vertex data to render objects. I’d like to be able to export the sprite data to it’s individual vertex components (i.e. a pixel is a square made up of 2 triangles, with 4 vertices and 6 indices). I’m new to aseprite scripting and was wondering if this is possible and how I could go about doing it.

Would really appreciate any help or advice.