Appearance
@tmrw-realityos/charm • Docs
@tmrw-realityos/charm / WebGPUSceneToRenderables
Class: WebGPUSceneToRenderables
Constructors
new WebGPUSceneToRenderables()
new WebGPUSceneToRenderables(
device
):WebGPUSceneToRenderables
Parameters
• device: GPUDevice
Returns
Defined in
packages/charm/src/graphics/WebGPU/WebGPUSceneToRenderables.ts:13
Methods
createRenderableFromPrimitive()
createRenderableFromPrimitive(
node
,material
,topology
,primitive
,primIndex
):null
|RenderableDescriptor
Parameters
• node: Node
• material: Material
• topology: GPUPrimitiveTopology
• primitive: WebGPUPrimitive
• primIndex: number
Returns
null
| RenderableDescriptor
Defined in
packages/charm/src/graphics/WebGPU/WebGPUSceneToRenderables.ts:70
getRenderables()
getRenderables(
camera
,scene
):RenderableDescriptor
[]
Parameters
• camera: Camera
• scene: Scene
Returns
Defined in
packages/charm/src/graphics/WebGPU/WebGPUSceneToRenderables.ts:17
getRenderablesFromNode()
getRenderablesFromNode(
node
,renderables
):RenderableDescriptor
[]
Parameters
• node: Node
• renderables: RenderableDescriptor
[] = []
Returns
Defined in
packages/charm/src/graphics/WebGPU/WebGPUSceneToRenderables.ts:34
getVisibleNodes()
getVisibleNodes(
camera
,scene
):Node
[]
Parameters
• camera: Camera
• scene: Scene
Returns
Node
[]
Defined in
packages/charm/src/graphics/WebGPU/WebGPUSceneToRenderables.ts:104