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

Method initBoxBuffer

Rendering/layers/Box.cpp:5–7  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#include "Rendering/backend/WGPUContext.h"
4
5void RendererWGPU::initBoxBuffer() {
6 lineLayer_.boxVb = WGPUContext::instance().createBuffer(24 * 3 * sizeof(float), wgpu::BufferUsage::Vertex | wgpu::BufferUsage::CopyDst, "Box_Geometry");
7}
8
9void RendererWGPU::drawBoxImpl(const glm::vec3& worldSize) {
10 if (worldSize != lineLayer_.cachedBoxSize) {

Callers

nothing calls this directly

Calls 1

createBufferMethod · 0.45

Tested by

no test coverage detected