Calls passEncoder.setVertexBuffer and optionally passEncoder.setIndexBuffer for the buffers specified in buffersAndAttributes.
passEncoder.setVertexBuffer
passEncoder.setIndexBuffer
buffersAndAttributes
This is extremely simple function. It is equivalent to
buffersAndAttributes.buffers.forEach((buffer, i) => { passEncoder.setVertexBuffer(firstVertexBufferIndex + i, buffer);});if (buffersAndAttributes.indexBuffer) { passEncoder.setIndexBuffer(buffersAndAttributes.indexBuffer, buffersAndAttributes.indexFormat!);} Copy
buffersAndAttributes.buffers.forEach((buffer, i) => { passEncoder.setVertexBuffer(firstVertexBufferIndex + i, buffer);});if (buffersAndAttributes.indexBuffer) { passEncoder.setIndexBuffer(buffersAndAttributes.indexBuffer, buffersAndAttributes.indexFormat!);}
It exists solely for simple cases. If you have a complex case, call the passEncoder yourself as appropriate.
a render pass encoder
As returned from createBuffersAndAttributesFromArrays
The first vertex buffer index. default = 0.
Generated using TypeDoc
Calls
passEncoder.setVertexBuffer
and optionallypassEncoder.setIndexBuffer
for the buffers specified inbuffersAndAttributes
.This is extremely simple function. It is equivalent to
It exists solely for simple cases. If you have a complex case, call the passEncoder yourself as appropriate.