MCPcopy Create free account
hub / github.com/AryanpurTech/BlueEngine / build_instance

Method build_instance

crates/blue_engine_core/src/definition.rs:491–498  ·  view source on GitHub ↗

Creates a new instance buffer for the object

(&self, instance_data: Vec<InstanceRaw>)

Source from the content-addressed store, hash-verified

489
490 /// Creates a new instance buffer for the object
491 pub fn build_instance(&self, instance_data: Vec<InstanceRaw>) -> wgpu::Buffer {
492 self.device
493 .create_buffer_init(&wgpu::util::BufferInitDescriptor {
494 label: Some("Instance Buffer"),
495 contents: bytemuck::cast_slice(&instance_data),
496 usage: wgpu::BufferUsages::VERTEX,
497 })
498 }
499}
500
501impl crate::SignalStorage {

Callers 2

newMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected