| 28 | static bgfx::VertexLayout vertex_layout; |
| 29 | |
| 30 | DebugLine::DebugLine(Allocator &a, ShaderData *shader) |
| 31 | : _marker(DEBUG_LINE_MARKER) |
| 32 | , _lines(a) |
| 33 | , _shader(shader) |
| 34 | { |
| 35 | if (vertex_layout.m_hash == 0) { |
| 36 | vertex_layout.begin(); |
| 37 | vertex_layout.add(bgfx::Attrib::Position, 3, bgfx::AttribType::Float); |
| 38 | vertex_layout.add(bgfx::Attrib::Color0, 4, bgfx::AttribType::Uint8, true); |
| 39 | vertex_layout.end(); |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | DebugLine::~DebugLine() |
| 44 | { |