| 53 | const uint32_t kMaxCharCount = 1000; |
| 54 | |
| 55 | ref<Vao> createVAO(const ref<Buffer>& pVB) |
| 56 | { |
| 57 | ref<VertexLayout> pLayout = VertexLayout::create(); |
| 58 | ref<VertexBufferLayout> pBufLayout = VertexBufferLayout::create(); |
| 59 | pBufLayout->addElement("POSITION", 0, ResourceFormat::RG32Float, 1, 0); |
| 60 | pBufLayout->addElement("TEXCOORD", 8, ResourceFormat::RG32Float, 1, 1); |
| 61 | pLayout->addBufferLayout(0, pBufLayout); |
| 62 | Vao::BufferVec buffers{pVB}; |
| 63 | |
| 64 | return Vao::create(Vao::Topology::TriangleList, pLayout, buffers); |
| 65 | } |
| 66 | |
| 67 | } // namespace |
| 68 |
no test coverage detected