Back to Filament

boneCount

docs/android/dokka/filament-android/com.google.android.filament/-skinning-buffer/-builder/bone-count.md

1.75.0864 B
Original Source

//filament-android/com.google.android.filament/SkinningBuffer/Builder/boneCount

boneCount

[main]
open fun boneCount(boneCount: Int): SkinningBuffer.Builder

Size of the skinning buffer in bones.

Due to limitation in the GLSL, the SkinningBuffer must always by a multiple of 256, this adjustment is done automatically, but can cause some memory overhead. This memory overhead can be mitigated by using the same SkinningBuffer to store the bone information for multiple RenderPrimitives.

Return

this Builder object for chaining calls

Parameters

main

boneCountNumber of bones the skinning buffer can hold.