Back to Filament

Config

docs/android/dokka/filament-android/com.google.android.filament/-engine/-config/index.md

1.75.06.0 KB
Original Source

//filament-android/com.google.android.filament/Engine/Config

Config

[main]
open class Config

Parameters for customizing the initialization of Engine.

Constructors

Config[main]
constructor()

Types

NameSummary
ShaderLanguage[main]
enum ShaderLanguage
Sets a preferred shader language for Filament to use.

Properties

NameSummary
assertNativeWindowIsValid[main]
open var assertNativeWindowIsValid: Boolean
Assert the native window associated to a SwapChain is valid when calling makeCurrent().
commandBufferSizeMB[main]
open var commandBufferSizeMB: Long
Size in MiB of the low-level command buffer arena.
disableHandleUseAfterFreeCheck[main]
open var disableHandleUseAfterFreeCheck: Boolean
Disable backend handles use-after-free checks.
disableParallelShaderCompile[main]
open var disableParallelShaderCompile: Boolean
Set to true to forcibly disable parallel shader compilation in the backend.
driverHandleArenaSizeMB[main]
open var driverHandleArenaSizeMB: Long
Size in MiB of the backend's handle arena.
forceGLES2Context[main]
open var forceGLES2Context: Boolean
When the OpenGL ES backend is used, setting this value to true will force a GLES2.0 context if supported by the Platform, or if not, will have the backend pretend it's a GLES2 context.
gpuContextPriority[main]
open var gpuContextPriority: Engine.GpuContextPriority
GPU context priority level.
jobSystemThreadCount[main]
open var jobSystemThreadCount: Long
Number of threads to use in Engine's JobSystem.
minCommandBufferSizeMB[main]
open var minCommandBufferSizeMB: Long
Minimum size in MiB of a low-level command buffer.
perFrameCommandsSizeMB[main]
open var perFrameCommandsSizeMB: Long
Size in MiB of the per-frame high level command buffer.
perRenderPassArenaSizeMB[main]
open var perRenderPassArenaSizeMB: Long
Size in MiB of the per-frame data arena.
preferredShaderLanguage[main]
open var preferredShaderLanguage: Engine.Config.ShaderLanguage
resourceAllocatorCacheMaxAge[main]
open var resourceAllocatorCacheMaxAge: Long
This value determines how many frames texture entries are kept for in the cache.
resourceAllocatorCacheSizeMB[main]
open var resourceAllocatorCacheSizeMB: Long
sharedUboInitialSizeInBytes[main]
open var sharedUboInitialSizeInBytes: Long
The initial size in bytes of the shared uniform buffer used for material instance batching.
SINGLE_THREADED[main]
val SINGLE_THREADED: Long = 4294967295
Special value for jobSystemThreadCount, forcing the JobSystem to be single-threaded.
stereoscopicEyeCount[main]
open var stereoscopicEyeCount: Long
The number of eyes to render when stereoscopic rendering is enabled.
stereoscopicType[main]
open var stereoscopicType: Engine.StereoscopicType
The type of technique for stereoscopic rendering.
textureUseAfterFreePoolSize[main]
open var textureUseAfterFreePoolSize: Long
Number of most-recently destroyed textures to track for use-after-free.