MCPcopy Create free account
hub / github.com/ElectroZybr/LatticeLab / initMemoryOrderBuffer

Method initMemoryOrderBuffer

Rendering/layers/MemLine.cpp:7–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include "Rendering/backend/WGPUContext.h"
6
7void RendererWGPU::initMemoryOrderBuffer() {
8 lineLayer_.memoryOrderVb = WGPUContext::instance().createBuffer(128, wgpu::BufferUsage::Vertex | wgpu::BufferUsage::CopyDst, "Memory_Order_Geometry");
9 lineLayer_.memoryOrderVbCapacity = 128;
10}
11
12void RendererWGPU::drawMemoryOrderImpl(const View::RenderAtomsView& atoms) {
13 if (atoms.count < 2 || !atoms.hasPositions()) {

Callers

nothing calls this directly

Calls 1

createBufferMethod · 0.45

Tested by

no test coverage detected