MCPcopy Index your code
hub / github.com/processing/p5.js / _getFormatFromSize

Method _getFormatFromSize

src/webgpu/p5.RendererWebGPU.js:1302–1310  ·  view source on GitHub ↗
(size)

Source from the content-addressed store, hash-verified

1300 }
1301
1302 _getFormatFromSize(size) {
1303 switch (size) {
1304 case 1: return 'float32';
1305 case 2: return 'float32x2';
1306 case 3: return 'float32x3';
1307 case 4: return 'float32x4';
1308 default: throw new Error(`Unsupported attribute size: ${size}`);
1309 }
1310 }
1311
1312 _useShader(shader, options) {}
1313

Callers 1

_getVertexLayoutMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected